changeset 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 dd071b34e60b
children d4aad0dd69ed
files hgext/convert/convcmd.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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()