# HG changeset patch # User Benoit Boissinot # Date 2009-12-01 00:08:16 # Node ID da5209afe1bcb9792b271821e6b2dfaed9cadfeb # Parent d1319ad5071b8560668e9ae3ced766ca64bcbfb0 context: parents() already filters nullid diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -439,12 +439,11 @@ class filectx(object): for f in sorted(visit, key=lambda x: x.rev()): curr = decorate(f.data(), f) for p in parents(f): - if p != nullid: - curr = pair(hist[p], curr) - # trim the history of unneeded revs - needed[p] -= 1 - if not needed[p]: - del hist[p] + curr = pair(hist[p], curr) + # trim the history of unneeded revs + needed[p] -= 1 + if not needed[p]: + del hist[p] hist[f] = curr return zip(hist[f][0], hist[f][1].splitlines(True))