# HG changeset patch # User Thomas Arendsen Hein # Date 2007-01-11 22:12:21 # Node ID 1590558e9f607c045946c377de7dfd325b92cc29 # Parent dbf250b80cc2adb797db555caed6f639cdbc83b4 Use local encoding for "HG: branch" line in commit editor. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -762,7 +762,7 @@ class localrepository(repo.repository): if p2 != nullid: edittext.append("HG: branch merge") if branchname: - edittext.append("HG: branch %s" % branchname) + edittext.append("HG: branch %s" % util.tolocal(branchname)) edittext.extend(["HG: changed %s" % f for f in changed]) edittext.extend(["HG: removed %s" % f for f in removed]) if not changed and not remove: