##// END OF EJS Templates
changectx: add ancestor function
Matt Mackall -
r3125:02b22fef default
parent child Browse files
Show More
@@ -67,6 +67,13 b' class changectx(object):'
67 67 for f in m:
68 68 yield self.filectx(f, fileid=mf[f])
69 69
70 def ancestor(self, c2):
71 """
72 return the ancestor context of self and c2
73 """
74 n = self._repo.changelog.ancestor(self._node, c2._node)
75 return changectx(self._repo, n)
76
70 77 class filectx(object):
71 78 """A filecontext object makes access to data related to a particular
72 79 filerevision convenient."""
General Comments 0
You need to be logged in to leave comments. Login now