# HG changeset patch # User Benoit Boissinot # Date 1259626096 -3600 # Node ID da5209afe1bcb9792b271821e6b2dfaed9cadfeb # Parent d1319ad5071b8560668e9ae3ced766ca64bcbfb0 context: parents() already filters nullid diff -r d1319ad5071b -r da5209afe1bc mercurial/context.py --- a/mercurial/context.py Tue Dec 01 01:03:54 2009 +0100 +++ b/mercurial/context.py Tue Dec 01 01:08:16 2009 +0100 @@ -439,12 +439,11 @@ 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))