Mercurial > hg
changeset 14034:1f667030b139
shrink-revlog: defend against null first parents
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 29 Apr 2011 09:28:45 -0500 |
parents | 33e04d3d17f6 |
children | 865c30d54c30 |
files | contrib/shrink-revlog.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/shrink-revlog.py Fri Apr 29 12:46:56 2011 -0500 +++ b/contrib/shrink-revlog.py Fri Apr 29 09:28:45 2011 -0500 @@ -30,7 +30,10 @@ while visit: cur = visit[-1] for p in edges[cur]: - if p not in finished: + # defend against node.nullrev because it's occasionally + # possible for a node to have parents (null, something) + # rather than (something, null) + if p not in finished and p != node.nullrev: visit.append(p) break else: