# HG changeset patch # User Pierre-Yves David # Date 1412817441 25200 # Node ID 1a39b1b8e0926325dcc81650bd00760bbc1730c6 # Parent 9bc4857f573b30cae2055d6cc99d6bab184d00dd drophack: use `first` and `last` on smartset This matches the new changes in mercurial core. diff -r 9bc4857f573b -r 1a39b1b8e092 hgext/drophack.py --- a/hgext/drophack.py Wed Oct 08 18:16:52 2014 -0700 +++ b/hgext/drophack.py Wed Oct 08 18:17:21 2014 -0700 @@ -119,7 +119,7 @@ newrevs = repo.revs('max(::. - %ld)', revs) if newrevs: assert len(newrevs) == 1 - newrev = newrevs[0] + newrev = newrevs.first() else: newrev = -1 commands.update(ui, repo, newrev)