Mercurial > hg
diff mercurial/commands.py @ 7695:deec6628e62b
Also find correct column width of wide characters.
Use unicodedata.east_asian_width() to determine wide/full width
characters if available. Otherwise, return character count as before.
author | Shun-ichi GOTO <shunichi.goto@gmail.com> |
---|---|
date | Wed, 21 Jan 2009 20:29:47 +0900 |
parents | e040f9d6b2f3 |
children | 9f73bddb9d0b 26bdb7109170 |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Jan 22 10:48:37 2009 -0700 +++ b/mercurial/commands.py Wed Jan 21 20:29:47 2009 +0900 @@ -448,7 +448,7 @@ notice = ' (closed)' else: notice = ' (inactive)' - rev = str(node).rjust(31 - util.locallen(tag)) + rev = str(node).rjust(31 - util.colwidth(tag)) data = tag, rev, hexfunc(hn), notice ui.write("%s %s:%s%s\n" % data) @@ -2833,7 +2833,7 @@ except error.LookupError: r = " ?:%s" % hn else: - spaces = " " * (30 - util.locallen(t)) + spaces = " " * (30 - util.colwidth(t)) if ui.verbose: if repo.tagtype(t) == 'local': tagtype = " local"