##// END OF EJS Templates
discovery: explicitly use `undecided` for the children mapping...
marmoute -
r42052:a05f0bbe default
parent child Browse files
Show More
@@ -172,7 +172,7 b' class partialdiscovery(object):'
172 return getrev(r)[5:6]
172 return getrev(r)[5:6]
173 return getparents
173 return getparents
174
174
175 def _childrengetter(self, revs):
175 def _childrengetter(self):
176
176
177 if self._childrenmap is not None:
177 if self._childrenmap is not None:
178 return self._childrenmap.__getitem__
178 return self._childrenmap.__getitem__
@@ -184,6 +184,7 b' class partialdiscovery(object):'
184 self._childrenmap = children = {}
184 self._childrenmap = children = {}
185
185
186 parentrevs = self._parentsgetter()
186 parentrevs = self._parentsgetter()
187 revs = self.undecided
187
188
188 for rev in sorted(revs):
189 for rev in sorted(revs):
189 # Always ensure revision has an entry so we don't need to worry
190 # Always ensure revision has an entry so we don't need to worry
@@ -232,7 +233,7 b' class partialdiscovery(object):'
232 # update from roots
233 # update from roots
233 revsroots = set(repo.revs('roots(%ld)', revs))
234 revsroots = set(repo.revs('roots(%ld)', revs))
234
235
235 childrenrevs = self._childrengetter(revs)
236 childrenrevs = self._childrengetter()
236
237
237 _updatesample(revs, revsroots, sample, childrenrevs)
238 _updatesample(revs, revsroots, sample, childrenrevs)
238 assert sample
239 assert sample
General Comments 0
You need to be logged in to leave comments. Login now