convcmd: make a copy of heads before mutating it
authorAugie Fackler <augie@google.com>
Fri, 27 Apr 2018 01:27:22 -0400
changeset 37932 73ca1c5e65f8
parent 37931 dd071b34e60b
child 37933 d4aad0dd69ed
convcmd: make a copy of heads before mutating it Differential Revision: https://phab.mercurial-scm.org/D3486
hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py	Fri Apr 27 01:26:23 2018 -0400
+++ b/hgext/convert/convcmd.py	Fri Apr 27 01:27:22 2018 -0400
@@ -234,7 +234,7 @@
     def walktree(self, heads):
         '''Return a mapping that identifies the uncommitted parents of every
         uncommitted changeset.'''
-        visit = heads
+        visit = list(heads)
         known = set()
         parents = {}
         numcommits = self.source.numcommits()