diff --git a/hgext/convert/cvs.py b/hgext/convert/cvs.py --- a/hgext/convert/cvs.py +++ b/hgext/convert/cvs.py @@ -201,7 +201,7 @@ class convert_cvs(converter_source): if not passw: passw = "A" - pf = open(os.path.join(os.environ["HOME"], ".cvspass")) + pf = open(os.path.expanduser("~/.cvspass")) for line in pf.read().splitlines(): part1, part2 = line.split(' ', 1) if part1 == '/1': diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -389,10 +389,10 @@ def branches(ui, repo, active=False): if ui.quiet: ui.write("%s\n" % tag) else: - rev = str(node).rjust(32 - util.locallen(tag)) + rev = str(node).rjust(31 - util.locallen(tag)) isinactive = ((not isactive) and " (inactive)") or '' data = tag, rev, hexfunc(repo.lookup(node)), isinactive - ui.write("%s%s:%s%s\n" % data) + ui.write("%s %s:%s%s\n" % data) def bundle(ui, repo, fname, dest=None, **opts): """create a changegroup file diff --git a/tests/test-branches b/tests/test-branches --- a/tests/test-branches +++ b/tests/test-branches @@ -33,7 +33,7 @@ hg commit -d '5 0' -u test -m "Adding c echo 'd' >d hg add d -hg branch d +hg branch 'a branch name much longer than the default justification used by branches' hg commit -d '6 0' -u test -m "Adding d branch" hg branches diff --git a/tests/test-branches.out b/tests/test-branches.out --- a/tests/test-branches.out +++ b/tests/test-branches.out @@ -5,14 +5,14 @@ created new head 0 files updated, 0 files merged, 1 files removed, 0 files unresolved created new head marked working directory as branch c -marked working directory as branch d -d 6:9c581c5ff105 +marked working directory as branch a branch name much longer than the default justification used by branches +a branch name much longer than the default justification used by branches 6:b8cb5af34c4d b 4:22df7444f7c1 a 1:dd6b440dd85a c 5:5ca481e59b8c (inactive) default 0:19709c5a4e75 (inactive) ------- -d 6:9c581c5ff105 +a branch name much longer than the default justification used by branches 6:b8cb5af34c4d b 4:22df7444f7c1 a 1:dd6b440dd85a --- Branch a