diff options
author | Doug Anderson <dianders@google.com> | 2010-11-01 15:08:06 -0700 |
---|---|---|
committer | Doug Anderson <dianders@google.com> | 2010-11-01 15:08:06 -0700 |
commit | 2b8db3ce3e7344b9f3b5216637c5af0d54be5656 (patch) | |
tree | 10f0c759efdade6a556eac16b46160b4843135d5 /subcmds/sync.py | |
parent | 5df6de075e5fb674368d38f858419425bc8d8d07 (diff) | |
download | git-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.py | 5 |
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 | |||
364 | def _PostRepoUpgrade(manifest): | 369 | def _PostRepoUpgrade(manifest): |
365 | for project in manifest.projects.values(): | 370 | for project in manifest.projects.values(): |
366 | if project.Exists: | 371 | if project.Exists: |