diff -r db36a4f490f6 -r 46abbed02b2d mercurial/commands.py --- a/mercurial/commands.py Sun Dec 10 23:03:53 2006 +0100 +++ b/mercurial/commands.py Sun Dec 10 20:35:28 2006 -0200 @@ -256,9 +256,9 @@ """ if label is not None: - repo.opener("branch", "w").write(label) + repo.opener("branch", "w").write(util.fromlocal(label) + '\n') else: - b = repo.workingctx().branch() + b = util.tolocal(repo.workingctx().branch()) if b: ui.write("%s\n" % b) @@ -1433,7 +1433,7 @@ if not ui.quiet: - branch = repo.workingctx().branch() + branch = util.tolocal(repo.workingctx().branch()) if branch: output.append("(%s)" % branch)