# HG changeset patch # User Martin von Zweigbergk # Date 1523636788 25200 # Node ID 0caa272598008491d6a7b7228e6f09f01d0056b3 # Parent 61fdd25542a65873d328802a43c7f39461fb56b4 evolve: don't pass stringified int to repo.__getitem__ We were doing repo['-1'], which is now deprecated. Switch to repo['tip'], which is much clearer anyway (I initially thought this was nullrev and sent an incorrect patch until Pierre-Yves corrected me). diff -r 61fdd25542a6 -r 0caa27259800 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Wed Apr 11 07:23:34 2018 +0200 +++ b/hgext3rd/evolve/__init__.py Fri Apr 13 09:26:28 2018 -0700 @@ -1217,7 +1217,7 @@ obsoleted = repo.set('%lr', obsoleted) result = orig(ui, repo, *arg, **kwargs) if not result: # commit succeeded - new = repo['-1'] + new = repo['tip'] oldbookmarks = [] markers = [] for old in obsoleted: