mercurial/scmutil.py
branchstable
changeset 26836 88c4e97b9669
parent 26587 56b2bcea2529
child 26906 e40af07e518e
child 27571 6a6e78f84cc6
--- 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]):