diff options
author | Shawn O. Pearce <sop@google.com> | 2010-12-07 10:31:19 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2010-12-07 11:13:29 -0800 |
commit | 13f3da50d40b89ee5b05f5f3de9542c20edac6d1 (patch) | |
tree | d085b6f6b498bde85a1969fce884dd24e88d03d5 /subcmds/branches.py | |
parent | 3218c13205694434edb2375ab8a8515554eed366 (diff) | |
parent | 2b8db3ce3e7344b9f3b5216637c5af0d54be5656 (diff) | |
download | git-repo-13f3da50d40b89ee5b05f5f3de9542c20edac6d1.tar.gz |
Merge branch 'stable'
* stable: (33 commits)
Added feature to print a <notice> from manifest at the end of a sync.
sync: Use --force-broken to continue other projects
upload: Remove --replace option
sync --quiet: be more quiet
sync: Enable use of git clone --reference
Only delete corrupt pickle config files if they exist
Don't allow git fetch to start ControlMaster
Check for existing SSH ControlMaster
Fix for handling values of EDITOR which contain a space.
upload: Fix --replace flag
rebase: Pass through more options
upload: Allow review.HOST.username to override email
upload -t: Automatically include local branch name
Warn users before uploading if there are local changes
sync: Try fetching a tag as a last resort before giving up
rebase: Automatically rebase branch on upstrea
upload: Automatically --cc folks in review.URL.autocopy
Fix format string bugs in grep
Do not invoke ssh with -p argument when no port has been specified.
Allow files to be copied into new folders
...
Conflicts:
git_config.py
manifest_xml.py
subcmds/init.py
subcmds/sync.py
subcmds/upload.py
Change-Id: I4756a6908277e91505c35287a122a775b68f4df5
Diffstat (limited to 'subcmds/branches.py')
-rw-r--r-- | subcmds/branches.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/subcmds/branches.py b/subcmds/branches.py index 0e3ab3c2..a4f8d360 100644 --- a/subcmds/branches.py +++ b/subcmds/branches.py | |||
@@ -136,7 +136,7 @@ is shown, then the branch appears in all projects. | |||
136 | hdr('%c%c %-*s' % (current, published, width, name)) | 136 | hdr('%c%c %-*s' % (current, published, width, name)) |
137 | out.write(' |') | 137 | out.write(' |') |
138 | 138 | ||
139 | if in_cnt < project_cnt and (in_cnt == 1): | 139 | if in_cnt < project_cnt: |
140 | fmt = out.write | 140 | fmt = out.write |
141 | paths = [] | 141 | paths = [] |
142 | if in_cnt < project_cnt - in_cnt: | 142 | if in_cnt < project_cnt - in_cnt: |
@@ -150,15 +150,17 @@ is shown, then the branch appears in all projects. | |||
150 | for b in i.projects: | 150 | for b in i.projects: |
151 | have.add(b.project) | 151 | have.add(b.project) |
152 | for p in projects: | 152 | for p in projects: |
153 | paths.append(p.relpath) | 153 | if not p in have: |
154 | paths.append(p.relpath) | ||
154 | 155 | ||
155 | s = ' %s %s' % (type, ', '.join(paths)) | 156 | s = ' %s %s' % (type, ', '.join(paths)) |
156 | if width + 7 + len(s) < 80: | 157 | if width + 7 + len(s) < 80: |
157 | fmt(s) | 158 | fmt(s) |
158 | else: | 159 | else: |
159 | out.nl() | 160 | fmt(' %s:' % type) |
160 | fmt(' %s:' % type) | ||
161 | for p in paths: | 161 | for p in paths: |
162 | out.nl() | 162 | out.nl() |
163 | fmt(' %s' % p) | 163 | fmt(width*' ' + ' %s' % p) |
164 | else: | ||
165 | out.write(' in all projects') | ||
164 | out.nl() | 166 | out.nl() |