diff -r 6fabc9317b78 -r 88c4e97b9669 mercurial/scmutil.py --- a/mercurial/scmutil.py Sun Nov 01 15:24:57 2015 -0200 +++ b/mercurial/scmutil.py Sat Oct 31 21:45:46 2015 -0400 @@ -717,6 +717,9 @@ if first is None: raise error.Abort(_('empty revision range')) + if (first == second and len(revs) >= 2 + and not all(revrange(repo, [r]) for r in revs)): + raise error.Abort(_('empty revision on one side of range')) # if top-level is range expression, the result must always be a pair if first == second and len(revs) == 1 and not _pairspec(revs[0]):