Mercurial > hg
diff hgext/mq.py @ 10773:bd36e5c0ccb1
merge with stable
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Fri, 26 Mar 2010 17:09:56 +0100 |
parents | 68a7b9ed3c71 fe39f0160c74 |
children | e8611ef6bdfb |
line wrap: on
line diff
--- a/hgext/mq.py Wed Mar 24 19:44:53 2010 +0100 +++ b/hgext/mq.py Fri Mar 26 17:09:56 2010 +0100 @@ -2577,7 +2577,8 @@ start = lrev + 1 if start < qbase: # update the cache (excluding the patches) and save it - self._updatebranchcache(partial, lrev + 1, qbase) + ctxgen = (self[r] for r in xrange(lrev + 1, qbase)) + self._updatebranchcache(partial, ctxgen) self._writebranchcache(partial, cl.node(qbase - 1), qbase - 1) start = qbase # if start = qbase, the cache is as updated as it should be. @@ -2585,7 +2586,8 @@ # we might as well use it, but we won't save it. # update the cache up to the tip - self._updatebranchcache(partial, start, len(cl)) + ctxgen = (self[r] for r in xrange(start, len(cl))) + self._updatebranchcache(partial, ctxgen) return partial