##// END OF EJS Templates
commitablectx: move ancestors from workingctx
Sean Farley -
r19698:8d4a8f4e default
parent child Browse files
Show More
@@ -1038,6 +1038,11 b' class commitablectx(basectx):'
1038 return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
1038 return sorted(self._repo.dirstate.walk(match, sorted(self.substate),
1039 True, False))
1039 True, False))
1040
1040
1041 def ancestors(self):
1042 for a in self._repo.changelog.ancestors(
1043 [p.rev() for p in self._parents]):
1044 yield changectx(self._repo, a)
1045
1041 class workingctx(commitablectx):
1046 class workingctx(commitablectx):
1042 """A workingctx object makes access to data related to
1047 """A workingctx object makes access to data related to
1043 the current working directory convenient.
1048 the current working directory convenient.
@@ -1133,11 +1138,6 b' class workingctx(commitablectx):'
1133 finally:
1138 finally:
1134 wlock.release()
1139 wlock.release()
1135
1140
1136 def ancestors(self):
1137 for a in self._repo.changelog.ancestors(
1138 [p.rev() for p in self._parents]):
1139 yield changectx(self._repo, a)
1140
1141 def undelete(self, list):
1141 def undelete(self, list):
1142 pctxs = self.parents()
1142 pctxs = self.parents()
1143 wlock = self._repo.wlock()
1143 wlock = self._repo.wlock()
General Comments 0
You need to be logged in to leave comments. Login now