D4368: treemanifest: avoid unnecessary copies/processing when using alwaysmatcher
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Mon Sep 10 14:45:32 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa7f65983f395: treemanifest: avoid unnecessary copies/processing when using alwaysmatcher (authored by spectral, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4368?vs=10834&id=10872
REVISION DETAIL
https://phab.mercurial-scm.org/D4368
AFFECTED FILES
mercurial/manifest.py
CHANGE DETAILS
diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -940,7 +940,7 @@
def filesnotin(self, m2, match=None):
'''Set of files in this manifest that are not in the other'''
- if match:
+ if match and not match.always():
m1 = self.matches(match)
m2 = m2.matches(match)
return m1.filesnotin(m2)
@@ -1085,7 +1085,7 @@
the nodeid will be None and the flags will be the empty
string.
'''
- if match:
+ if match and not match.always():
m1 = self.matches(match)
m2 = m2.matches(match)
return m1.diff(m2, clean=clean)
To: spectral, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list