hgext/mq.py
branchstable
changeset 10770 fe39f0160c74
parent 10755 32023a0a389b
child 10773 bd36e5c0ccb1
child 10796 ce2ae8bf3ae3
child 10808 1ebba857b371
equal deleted inserted replaced
10768:95b7a15b2f05 10770:fe39f0160c74
  2601 
  2601 
  2602             qbase = cl.rev(qbasenode)
  2602             qbase = cl.rev(qbasenode)
  2603             start = lrev + 1
  2603             start = lrev + 1
  2604             if start < qbase:
  2604             if start < qbase:
  2605                 # update the cache (excluding the patches) and save it
  2605                 # update the cache (excluding the patches) and save it
  2606                 self._updatebranchcache(partial, lrev + 1, qbase)
  2606                 ctxgen = (self[r] for r in xrange(lrev + 1, qbase))
       
  2607                 self._updatebranchcache(partial, ctxgen)
  2607                 self._writebranchcache(partial, cl.node(qbase - 1), qbase - 1)
  2608                 self._writebranchcache(partial, cl.node(qbase - 1), qbase - 1)
  2608                 start = qbase
  2609                 start = qbase
  2609             # if start = qbase, the cache is as updated as it should be.
  2610             # if start = qbase, the cache is as updated as it should be.
  2610             # if start > qbase, the cache includes (part of) the patches.
  2611             # if start > qbase, the cache includes (part of) the patches.
  2611             # we might as well use it, but we won't save it.
  2612             # we might as well use it, but we won't save it.
  2612 
  2613 
  2613             # update the cache up to the tip
  2614             # update the cache up to the tip
  2614             self._updatebranchcache(partial, start, len(cl))
  2615             ctxgen = (self[r] for r in xrange(start, len(cl)))
       
  2616             self._updatebranchcache(partial, ctxgen)
  2615 
  2617 
  2616             return partial
  2618             return partial
  2617 
  2619 
  2618     if repo.local():
  2620     if repo.local():
  2619         repo.__class__ = mqrepo
  2621         repo.__class__ = mqrepo