##// END OF EJS Templates
context: add "descendant()" to changectx for efficient descendant examination...
FUJIWARA Katsunori -
r17626:3a524b64 default
parent child Browse files
Show More
@@ -288,6 +288,10 b' class changectx(object):'
288 288 n = self._repo.changelog.ancestor(self._node, n2)
289 289 return changectx(self._repo, n)
290 290
291 def descendant(self, other):
292 """True if other is descendant of this changeset"""
293 return self._repo.changelog.descendant(self._rev, other._rev)
294
291 295 def walk(self, match):
292 296 fset = set(match.files())
293 297 # for dirstate.walk, files=['.'] means "walk the whole tree".
General Comments 0
You need to be logged in to leave comments. Login now