Submitter | Siddharth Agarwal |
---|---|
Date | Nov. 18, 2015, 1:13 a.m. |
Message ID | <0177a83b0a029bc9ea5d.1447809205@dev666.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/11454/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1168,8 +1168,7 @@ class localrepository(object): else: ui.status(_('working directory now based on ' 'revision %d\n') % parents) - ms = mergemod.mergestate(self) - ms.reset(self['.'].node()) + mergemod.mergestate.clean(self, self['.'].node()) # TODO: if we know which new heads may result from this rollback, pass # them to destroy(), which will prevent the branchhead cache from being