Submitter | Katsunori FUJIWARA |
---|---|
Date | March 28, 2013, 10:36 a.m. |
Message ID | <294831b57a899d60d116.1364467018@feefifofum> |
Download | mbox | patch |
Permalink | /patch/1205/ |
State | Superseded |
Headers | show |
Comments
Patch
diff -r 53691948fe03 -r 294831b57a89 mercurial/context.py --- a/mercurial/context.py Thu Mar 28 18:48:44 2013 +0900 +++ b/mercurial/context.py Thu Mar 28 18:48:44 2013 +0900 @@ -698,7 +698,8 @@ needed = {base: 1} while visit: f = visit[-1] - if f not in pcache: + pcached = f in pcache + if not pcached: pcache[f] = parents(f) ready = True @@ -707,6 +708,7 @@ if p not in hist: ready = False visit.append(p) + if not pcached: needed[p] = needed.get(p, 0) + 1 if ready: visit.pop()