diff mercurial/cmdutil.py @ 3827:3674ca805a5b

log: convert branch names to the local encoding
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 08 Dec 2006 01:36:50 -0200
parents 000d122071b5
children 7df171ea50cd
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Dec 07 14:35:43 2006 -0200
+++ b/mercurial/cmdutil.py	Fri Dec 08 01:36:50 2006 -0200
@@ -261,6 +261,7 @@
         self.ui.write(_("changeset:   %d:%s\n") % (rev, hexfunc(changenode)))
 
         if branch:
+            branch = util.tolocal(branch)
             self.ui.write(_("branch:      %s\n") % branch)
         for tag in self.repo.nodetags(changenode):
             self.ui.write(_("tag:         %s\n") % tag)
@@ -404,6 +405,7 @@
         def showbranches(**args):
             branch = changes[5].get("branch")
             if branch:
+                branch = util.tolocal(branch)
                 return showlist('branch', [branch], plural='branches', **args)
             # add old style branches if requested
             if self.brinfo: