comparison hgext/convert/convcmd.py @ 37888:73ca1c5e65f8

convcmd: make a copy of heads before mutating it Differential Revision: https://phab.mercurial-scm.org/D3486
author Augie Fackler <augie@google.com>
date Fri, 27 Apr 2018 01:27:22 -0400
parents c6061cadb400
children 79dd61a4554f
comparison
equal deleted inserted replaced
37887:dd071b34e60b 37888:73ca1c5e65f8
232 232
233 233
234 def walktree(self, heads): 234 def walktree(self, heads):
235 '''Return a mapping that identifies the uncommitted parents of every 235 '''Return a mapping that identifies the uncommitted parents of every
236 uncommitted changeset.''' 236 uncommitted changeset.'''
237 visit = heads 237 visit = list(heads)
238 known = set() 238 known = set()
239 parents = {} 239 parents = {}
240 numcommits = self.source.numcommits() 240 numcommits = self.source.numcommits()
241 while visit: 241 while visit:
242 n = visit.pop(0) 242 n = visit.pop(0)