[Updated] D8737: mergestate: remove unnecessary recordactions() from mergestate class
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun Jul 19 10:39:10 UTC 2020
Closed by commit rHG7f41e824a02b: mergestate: remove unnecessary recordactions() from mergestate class (authored by pulkit).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8737?vs=21889&id=21972
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8737/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8737
AFFECTED FILES
mercurial/commands.py
mercurial/mergestate.py
CHANGE DETAILS
diff --git a/mercurial/mergestate.py b/mercurial/mergestate.py
--- a/mercurial/mergestate.py
+++ b/mercurial/mergestate.py
@@ -756,11 +756,6 @@
actions[action].append((f, None, b"merge result"))
return actions
- def recordactions(self):
- """record remove/add/get actions in the dirstate"""
- branchmerge = self._repo.dirstate.p2() != nullid
- recordupdates(self._repo, self.actions(), branchmerge, None)
-
def queueremove(self, f):
"""queues a file to be removed from the dirstate
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -6129,7 +6129,8 @@
raise
ms.commit()
- ms.recordactions()
+ branchmerge = repo.dirstate.p2() != nullid
+ mergestatemod.recordupdates(repo, ms.actions(), branchmerge, None)
if not didwork and pats:
hint = None
To: pulkit, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200719/dbd7e46e/attachment-0002.html>
More information about the Mercurial-patches
mailing list