summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorDoug Anderson <dianders@google.com>2010-11-01 15:08:06 -0700
committerDoug Anderson <dianders@google.com>2010-11-01 15:08:06 -0700
commit2b8db3ce3e7344b9f3b5216637c5af0d54be5656 (patch)
tree10f0c759efdade6a556eac16b46160b4843135d5 /subcmds/sync.py
parent5df6de075e5fb674368d38f858419425bc8d8d07 (diff)
downloadgit-repo-2b8db3ce3e7344b9f3b5216637c5af0d54be5656.tar.gz
Added feature to print a <notice> from manifest at the end of a sync.v1.7.1
This feature is used to convey information on a when a branch has ceased development or if it is an experimental branch with a few gotchas, etc. You add it to your manifest XML by doing something like this: <manifest> <notice> NOTE TO DEVELOPERS: If you checkin code, you have to pinky-swear that it contains no bugs. Anyone who breaks their promise will have tomatoes thrown at them in the team meeting. Be sure to bring an extra set of clothes. </notice> <remote ... /> ... </manifest> Carriage returns and indentation are relevant for the text in this tag. This feature was requested by Anush Elangovan on the ChromiumOS team.
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index ca78467b..d6ea442a 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -361,6 +361,11 @@ uncommitted changes are present' % project.relpath
361 if not syncbuf.Finish(): 361 if not syncbuf.Finish():
362 sys.exit(1) 362 sys.exit(1)
363 363
364 # If there's a notice that's supposed to print at the end of the sync, print
365 # it now...
366 if self.manifest.notice:
367 print self.manifest.notice
368
364def _PostRepoUpgrade(manifest): 369def _PostRepoUpgrade(manifest):
365 for project in manifest.projects.values(): 370 for project in manifest.projects.values():
366 if project.Exists: 371 if project.Exists: