hgext/bookmarks.py
changeset 9459 3b283adcc720
parent 9282 f9087eea293a
child 9643 013cc052a926
equal deleted inserted replaced
9456:c564dbb2a6d5 9459:3b283adcc720
   191                 if ui.configbool('bookmarks', 'track.current'):
   191                 if ui.configbool('bookmarks', 'track.current'):
   192                     prefix = (bmark == current(repo) and n == cur) and '*' or ' '
   192                     prefix = (bmark == current(repo) and n == cur) and '*' or ' '
   193                 else:
   193                 else:
   194                     prefix = (n == cur) and '*' or ' '
   194                     prefix = (n == cur) and '*' or ' '
   195 
   195 
   196                 ui.write(" %s %-25s %d:%s\n" % (
   196                 if ui.quiet:
   197                     prefix, bmark, repo.changelog.rev(n), hexfn(n)))
   197                     ui.write("%s\n" % bmark)
       
   198                 else:
       
   199                     ui.write(" %s %-25s %d:%s\n" % (
       
   200                         prefix, bmark, repo.changelog.rev(n), hexfn(n)))
   198         return
   201         return
   199 
   202 
   200 def _revstostrip(changelog, node):
   203 def _revstostrip(changelog, node):
   201     srev = changelog.rev(node)
   204     srev = changelog.rev(node)
   202     tostrip = [srev]
   205     tostrip = [srev]