Mercurial > hg
changeset 3440:0f1fd9854cdc
commit: read branch with workingctx
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 17 Oct 2006 22:26:14 -0500 |
parents | a7ef6b6cc311 |
children | ef2e990f9047 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Oct 17 22:09:56 2006 -0500 +++ b/mercurial/localrepo.py Tue Oct 17 22:26:14 2006 -0500 @@ -610,10 +610,7 @@ m1 = self.manifest.read(c1[0]).copy() m2 = self.manifest.read(c2[0]) - try: - branchname = self.opener("branch").read().rstrip() - except IOError: - branchname = "" + branchname = self.workingctx().branch() oldname = c1[5].get("branch", "") if not commit and not remove and not force and p2 == nullid and \