comparison mercurial/cmdutil.py @ 3824: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
comparison
equal deleted inserted replaced
3823:b3b868113d24 3824:3674ca805a5b
259 parents = [(p, hexfunc(log.node(p))) for p in parents] 259 parents = [(p, hexfunc(log.node(p))) for p in parents]
260 260
261 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode))) 261 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)))
262 262
263 if branch: 263 if branch:
264 branch = util.tolocal(branch)
264 self.ui.write(_("branch: %s\n") % branch) 265 self.ui.write(_("branch: %s\n") % branch)
265 for tag in self.repo.nodetags(changenode): 266 for tag in self.repo.nodetags(changenode):
266 self.ui.write(_("tag: %s\n") % tag) 267 self.ui.write(_("tag: %s\n") % tag)
267 for parent in parents: 268 for parent in parents:
268 self.ui.write(_("parent: %d:%s\n") % parent) 269 self.ui.write(_("parent: %d:%s\n") % parent)
402 yield self.t(endname, **args) 403 yield self.t(endname, **args)
403 404
404 def showbranches(**args): 405 def showbranches(**args):
405 branch = changes[5].get("branch") 406 branch = changes[5].get("branch")
406 if branch: 407 if branch:
408 branch = util.tolocal(branch)
407 return showlist('branch', [branch], plural='branches', **args) 409 return showlist('branch', [branch], plural='branches', **args)
408 # add old style branches if requested 410 # add old style branches if requested
409 if self.brinfo: 411 if self.brinfo:
410 br = self.repo.branchlookup([changenode]) 412 br = self.repo.branchlookup([changenode])
411 if changenode in br: 413 if changenode in br: