[PATCH 02 of 19] basectx: add _manifestmatches method that is a duplicate of mfmatches
Sean Farley
sean.michael.farley at gmail.com
Thu May 15 21:16:20 UTC 2014
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1398304330 18000
# Wed Apr 23 20:52:10 2014 -0500
# Node ID 4f3d70781a6031841ed191b360b7971af948977f
# Parent ac2d57df1c2160e6da43d112b9eadfe688415472
basectx: add _manifestmatches method that is a duplicate of mfmatches
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -61,10 +61,19 @@ class basectx(object):
def __iter__(self):
for f in sorted(self._manifest):
yield f
+ def _manifestmatches(self, match, s):
+ mf = self.manifest().copy()
+ if match.always():
+ return mf
+ for fn in mf.keys():
+ if not match(fn):
+ del mf[fn]
+ return mf
+
@propertycache
def substate(self):
return subrepo.state(self, self._repo.ui)
def rev(self):
More information about the Mercurial-devel
mailing list