Skip to content
  • Pierre-Yves David's avatar
    graft: do not use `.remove` on a smart set (regression) · a1381eea7c7d
    Pierre-Yves David authored
    Revset calls use to return a list. Graft use to mutate that list. We cannot do
    this anymore leading to a crash when grafting multiple changeset with a revset.
    
        File ".../mercurial/commands.py", line 3117, in graft
          revs.remove(rev)
        AttributeError: '_addset' object has no attribute 'remove'
    
    We are late in code-freeze so we make the shortest possible fix by turning it
    back to a list.
    a1381eea7c7d