Mercurial > evolve
changeset 1120:9bc4857f573b
evolve: use `first` and `last` on revset
this match change in mercurial core.
G: changed hgext/evolve.py
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 08 Oct 2014 18:16:52 -0700 |
parents | 7068ccfed963 |
children | 1a39b1b8e092 |
files | hgext/evolve.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/evolve.py Thu Oct 02 15:53:54 2014 -0500 +++ b/hgext/evolve.py Wed Oct 08 18:16:52 2014 -0700 @@ -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()