##// END OF EJS Templates
convert: fetch less revisions when looking for a branch parent
Patrick Mezard -
r5875:f1504d33 default
parent child Browse files
Show More
@@ -292,7 +292,15 class svn_source(converter_source):
292 uuid, module, revnum = self.revsplit(rev)
292 uuid, module, revnum = self.revsplit(rev)
293 self.module = module
293 self.module = module
294 self.reparent(module)
294 self.reparent(module)
295 # We assume that:
296 # - requests for revisions after "stop" come from the
297 # revision graph backward traversal. Cache all of them
298 # down to stop, they will be used eventually.
299 # - requests for revisions before "stop" come to get
300 # isolated branches parents. Just fetch what is needed.
295 stop = self.lastrevs.get(module, 0)
301 stop = self.lastrevs.get(module, 0)
302 if revnum < stop:
303 stop = revnum + 1
296 self._fetch_revisions(revnum, stop)
304 self._fetch_revisions(revnum, stop)
297 commit = self.commits[rev]
305 commit = self.commits[rev]
298 # caller caches the result, so free it here to release memory
306 # caller caches the result, so free it here to release memory
General Comments 0
You need to be logged in to leave comments. Login now