# HG changeset patch # User Pierre-Yves David # Date 1412817412 25200 # Node ID 9bc4857f573b30cae2055d6cc99d6bab184d00dd # Parent 7068ccfed963f65680583660c4b54d5d425dae6c evolve: use `first` and `last` on revset this match change in mercurial core. G: changed hgext/evolve.py diff --git a/hgext/evolve.py b/hgext/evolve.py --- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -2154,14 +2154,14 @@ if len(roots) > 1: raise util.Abort(_("cannot fold non-linear revisions " "(multiple roots given)")) - root = repo[roots[0]] + root = repo[roots.first()] if root.phase() <= phases.public: raise util.Abort(_("cannot fold public revisions")) heads = repo.revs('heads(%ld)', revs) if len(heads) > 1: raise util.Abort(_("cannot fold non-linear revisions " "(multiple heads given)")) - head = repo[heads[0]] + head = repo[heads.first()] wlock = lock = None try: wlock = repo.wlock()