diff 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
line wrap: on
line diff
--- 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()