mercurial/commands.py
changeset 3862 46abbed02b2d
parent 3859 8c24b6fd5866
child 3876 1e0b94cfba0e
child 3885 6081b4c68baf
--- 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)