##// END OF EJS Templates
branches: quiet option observes other parameters
Travis Herrick -
r16612:726dd0fc default
parent child Browse files
Show More
@@ -919,9 +919,6 b' def branches(ui, repo, active=False, clo'
919
919
920 for isactive, node, tag in branches:
920 for isactive, node, tag in branches:
921 if (not active) or isactive:
921 if (not active) or isactive:
922 if ui.quiet:
923 ui.write("%s\n" % tag)
924 else:
925 hn = repo.lookup(node)
922 hn = repo.lookup(node)
926 if isactive:
923 if isactive:
927 label = 'branches.active'
924 label = 'branches.active'
@@ -939,6 +936,9 b' def branches(ui, repo, active=False, clo'
939 rev = str(node).rjust(31 - encoding.colwidth(tag))
936 rev = str(node).rjust(31 - encoding.colwidth(tag))
940 rev = ui.label('%s:%s' % (rev, hexfunc(hn)), 'log.changeset')
937 rev = ui.label('%s:%s' % (rev, hexfunc(hn)), 'log.changeset')
941 tag = ui.label(tag, label)
938 tag = ui.label(tag, label)
939 if ui.quiet:
940 ui.write("%s\n" % tag)
941 else:
942 ui.write("%s %s%s\n" % (tag, rev, notice))
942 ui.write("%s %s%s\n" % (tag, rev, notice))
943
943
944 @command('bundle',
944 @command('bundle',
@@ -241,6 +241,11 b''
241 default 0:19709c5a4e75 (inactive)
241 default 0:19709c5a4e75 (inactive)
242 $ hg branches -a
242 $ hg branches -a
243 a branch name much longer than the default justification used by branches 7:10ff5895aa57
243 a branch name much longer than the default justification used by branches 7:10ff5895aa57
244 $ hg branches -q
245 a branch name much longer than the default justification used by branches
246 c
247 a
248 default
244 $ hg heads b
249 $ hg heads b
245 no open branch heads found on branches b
250 no open branch heads found on branches b
246 [1]
251 [1]
General Comments 0
You need to be logged in to leave comments. Login now