##// END OF EJS Templates
commitablectx: move ancestor from workingctx
Sean Farley -
r19696:210cc42a default
parent child Browse files
Show More
@@ -1030,6 +1030,10 class commitablectx(basectx):
1030 1030 except OSError:
1031 1031 return ''
1032 1032
1033 def ancestor(self, c2):
1034 """return the ancestor context of self and c2"""
1035 return self._parents[0].ancestor(c2) # punt on two parents for now
1036
1033 1037 class workingctx(commitablectx):
1034 1038 """A workingctx object makes access to data related to
1035 1039 the current working directory convenient.
@@ -1061,10 +1065,6 class workingctx(commitablectx):
1061 1065 return workingfilectx(self._repo, path, workingctx=self,
1062 1066 filelog=filelog)
1063 1067
1064 def ancestor(self, c2):
1065 """return the ancestor context of self and c2"""
1066 return self._parents[0].ancestor(c2) # punt on two parents for now
1067
1068 1068 def walk(self, match):
1069 1069 return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
1070 1070 True, False))
General Comments 0
You need to be logged in to leave comments. Login now