# HG changeset patch # User Boris Feld # Date 1516190498 -3600 # Node ID e711906aa42cbb4493e6d45acc224731d16762eb # Parent 134ef400cb1112b0491ad95cbcb7d1d8816f8733 patchbomb: use 'tiprev' when appropriate This is cleaner than the current 'len(repo) - 1' form. diff -r 134ef400cb11 -r e711906aa42c hgext/patchbomb.py --- a/hgext/patchbomb.py Thu May 04 02:28:19 2017 +0200 +++ b/hgext/patchbomb.py Wed Jan 17 13:01:38 2018 +0100 @@ -454,7 +454,7 @@ revs = [r for r in revs if r >= 0] if not revs: - revs = [len(repo) - 1] + revs = [repo.changelog.tiprev()] revs = repo.revs('outgoing(%s) and ::%ld', dest or '', revs) if not revs: ui.status(_("no changes found\n"))