diff -r d0ec3800101a -r 17da326fd041 mercurial/commands.py --- a/mercurial/commands.py Tue May 27 15:13:13 2014 -0700 +++ b/mercurial/commands.py Tue May 27 15:16:52 2014 -0700 @@ -951,8 +951,9 @@ if ui.quiet: ui.write("%s\n" % bmark, label=label) else: - ui.write(" %s %-25s %d:%s\n" % ( - prefix, bmark, repo.changelog.rev(n), hexfn(n)), + pad = " " * (25 - encoding.colwidth(bmark)) + ui.write(" %s %s%s %d:%s\n" % ( + prefix, bmark, pad, repo.changelog.rev(n), hexfn(n)), label=label) @command('branch',