Skip to content
Snippets Groups Projects
Commit 1f667030b139 authored by Augie Fackler's avatar Augie Fackler
Browse files

shrink-revlog: defend against null first parents

parent 33e04d3d17f6
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment