Chromium Code Reviews| Index: git_cl.py |
| =================================================================== |
| --- git_cl.py (revision 207032) |
| +++ git_cl.py (working copy) |
| @@ -605,6 +605,8 @@ |
| def GetIssueURL(self): |
| """Get the URL for a particular issue.""" |
| + if not self.GetIssue(): |
| + return None |
| return '%s/%s' % (self.GetRietveldServer(), self.GetIssue()) |
| def GetDescription(self, pretty=False): |
| @@ -1047,10 +1049,10 @@ |
| if show_branches: |
| branches = RunGit(['for-each-ref', '--format=%(refname)', 'refs/heads']) |
| if branches: |
| - print 'Branches associated with reviews:' |
| changes = (Changelist(branchref=b) for b in branches.splitlines()) |
| - branches = dict((cl.GetBranch(), cl.GetIssue()) for cl in changes) |
| + branches = dict((cl.GetBranch(), cl.GetIssueURL()) for cl in changes) |
| alignment = max(5, max(len(b) for b in branches)) |
| + print 'Branches associated with reviews:' |
| for branch in sorted(branches): |
| print " %*s: %s" % (alignment, branch, branches[branch]) |
|
M-A Ruel
2013/06/18 18:48:45
if branches[branch]:
...
else:
don't print the bra
Dan Beam
2013/06/18 18:55:01
Done.
|