# HG changeset patch # User Hannes Oldenburg # Date 1473064176 0 # Node ID a9b92164a1f4075f09736ad68166f7b77083c3e0 # Parent 7203400f91b0dd86a39c36e00729246386125c5b commands: remove unecessary copying of list in graft() diff -r 7203400f91b0 -r a9b92164a1f4 mercurial/commands.py --- a/mercurial/commands.py Sun Aug 07 16:36:08 2016 +0900 +++ b/mercurial/commands.py Mon Sep 05 08:29:36 2016 +0000 @@ -4140,9 +4140,7 @@ # check for ancestors of dest branch crev = repo['.'].rev() ancestors = repo.changelog.ancestors([crev], inclusive=True) - # Cannot use x.remove(y) on smart set, this has to be a list. # XXX make this lazy in the future - revs = list(revs) # don't mutate while iterating, create a copy for rev in list(revs): if rev in ancestors: