comparison mercurial/graphmod.py @ 18467:e441657b372b stable

graphmod: don't try to visit nullrev (issue3772)
author Bryan O'Sullivan <bryano@fb.com>
date Wed, 23 Jan 2013 00:20:26 -0600
parents 0849d725e2f9
children e87bd3485a07
comparison
equal deleted inserted replaced
18466:ac0c12123743 18467:e441657b372b
179 newparents.append(parent) 179 newparents.append(parent)
180 180
181 ncols = len(seen) 181 ncols = len(seen)
182 nextseen = seen[:] 182 nextseen = seen[:]
183 nextseen[nodeidx:nodeidx + 1] = newparents 183 nextseen[nodeidx:nodeidx + 1] = newparents
184 edges = [(nodeidx, nextseen.index(p)) for p in knownparents] 184 edges = [(nodeidx, nextseen.index(p)) for p in knownparents if p != nullrev]
185 185
186 while len(newparents) > 2: 186 while len(newparents) > 2:
187 # ascii() only knows how to add or remove a single column between two 187 # ascii() only knows how to add or remove a single column between two
188 # calls. Nodes with more than two parents break this constraint so we 188 # calls. Nodes with more than two parents break this constraint so we
189 # introduce intermediate expansion lines to grow the active node list 189 # introduce intermediate expansion lines to grow the active node list