##// END OF EJS Templates
commitablectx: move ancestor from workingctx
Sean Farley -
r19696:210cc42a default
parent child Browse files
Show More
@@ -1030,6 +1030,10 b' class commitablectx(basectx):'
1030 except OSError:
1030 except OSError:
1031 return ''
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 class workingctx(commitablectx):
1037 class workingctx(commitablectx):
1034 """A workingctx object makes access to data related to
1038 """A workingctx object makes access to data related to
1035 the current working directory convenient.
1039 the current working directory convenient.
@@ -1061,10 +1065,6 b' class workingctx(commitablectx):'
1061 return workingfilectx(self._repo, path, workingctx=self,
1065 return workingfilectx(self._repo, path, workingctx=self,
1062 filelog=filelog)
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 def walk(self, match):
1068 def walk(self, match):
1069 return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
1069 return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
1070 True, False))
1070 True, False))
General Comments 0
You need to be logged in to leave comments. Login now