1. David Ripton
  2. hgcollapse

Commits

David Ripton  committed 4f29355

Use the more Pythonic -1 for the last item in a list.

  • Participants
  • Parent commits 26f08c5
  • Branches default

Comments (0)

Files changed (1)

File hgext/collapse.py

View file
         raise util.Abort(_('no revisions specified'))
 
     first = rng[0]
-    last = rng[len(rng) - 1]
+    last = rng[-1]
     revs = inbetween(repo, first, last)
 
     if not revs: