debugstablerange: cleanly "Abort" when no revision are specified
Previously we had a traceback from a max on an empty sequence.
--- a/hgext3rd/evolve/stablerange.py Tue May 30 11:12:02 2017 +0200
+++ b/hgext3rd/evolve/stablerange.py Tue May 30 11:49:00 2017 +0200
@@ -196,6 +196,8 @@
depth = stablerange.depthrev
length = stablerange.rangelength
subranges = stablerange.subranges
+ if not revs:
+ raise error.Abort('no revisions specified')
repo.stablerange.warmup(repo, max(revs))
if opts['subranges']:
ranges = subrangesclosure(repo, revs)