Mercurial > evolve
changeset 2505:7fd55c5efffb
debugstablerange: cleanly "Abort" when no revision are specified
Previously we had a traceback from a max on an empty sequence.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 30 May 2017 11:49:00 +0200 |
parents | d95006fe4dd0 |
children | 747dc7067751 |
files | hgext3rd/evolve/stablerange.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)