[Request] [+ ] D11857: mergestate: inline `_resolve()` into `resolve()`
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Dec 4 07:07:21 UTC 2021
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The caller is now trivial, so the indirection is pointless.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11857
AFFECTED FILES
mercurial/mergestate.py
CHANGE DETAILS
diff --git a/mercurial/mergestate.py b/mercurial/mergestate.py
--- a/mercurial/mergestate.py
+++ b/mercurial/mergestate.py
@@ -313,10 +313,10 @@
"""return extras stored with the mergestate for the given filename"""
return self._stateextras[filename]
- def _resolve(self, dfile, wctx):
- """rerun merge process for file path `dfile`.
- Returns the return value of merge obtained from filemerge._filemerge().
- """
+ def resolve(self, dfile, wctx):
+ """run merge process for dfile
+
+ Returns the exit code of the merge."""
if self[dfile] in (
MERGE_RECORD_RESOLVED,
LEGACY_RECORD_DRIVER_RESOLVED,
@@ -405,12 +405,6 @@
return merge_ret
- def resolve(self, dfile, wctx):
- """run merge process for dfile
-
- Returns the exit code of the merge."""
- return self._resolve(dfile, wctx)
-
def counts(self):
"""return counts for updated, merged and removed files in this
session"""
To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211204/2121fdb5/attachment.html>
More information about the Mercurial-patches
mailing list