mercurial/scmutil.py
changeset 25386 a5a95642144b
parent 25385 a26a55406c0a
child 25418 c0995cd8ff6f
--- a/mercurial/scmutil.py	Sun May 24 18:11:33 2015 +0900
+++ b/mercurial/scmutil.py	Sun May 24 18:30:27 2015 +0900
@@ -737,8 +737,10 @@
                 end = revfix(repo, end, len(repo) - 1)
                 if end == nullrev and start < 0:
                     start = nullrev
-                rangeiter = repo.changelog.revs(start, end)
-                l = revset.baseset(rangeiter)
+                if start < end:
+                    l = revset.spanset(repo, start, end + 1)
+                else:
+                    l = revset.spanset(repo, start, end - 1)
                 subsets.append(l)
                 continue
             elif spec and spec in repo: # single unquoted rev