[Updated] D11351: dirstate: drop the `_merge` method
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Aug 27 12:40:50 UTC 2021
Closed by commit rHG65e3d8028f2e: dirstate: drop the `_merge` method (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11351?vs=30067&id=30109
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11351/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11351
AFFECTED FILES
mercurial/dirstate.py
CHANGE DETAILS
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -733,7 +733,7 @@
if entry.merged_removed or entry.from_p2_removed:
source = self._map.copymap.get(f)
if entry.merged_removed:
- self._merge(f)
+ self._otherparent(f)
elif entry.from_p2_removed:
self._otherparent(f)
if source is not None:
@@ -762,11 +762,6 @@
self._addpath(filename, added=True)
self._map.copymap.pop(filename, None)
- def _merge(self, f):
- if not self.in_merge:
- return self._normallookup(f)
- return self._otherparent(f)
-
def _drop(self, filename):
"""internal function to drop a file from the dirstate"""
if self._map.dropfile(filename):
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210827/a033d1f9/attachment-0002.html>
More information about the Mercurial-patches
mailing list