mercurial/scmutil.py
branchstable
changeset 18466 ac0c12123743
parent 18450 4f9a52858512
child 18558 eb95cf4e219d
child 18617 227479f61db9
--- a/mercurial/scmutil.py	Tue Jan 22 18:40:23 2013 -0600
+++ b/mercurial/scmutil.py	Wed Jan 23 00:12:52 2013 -0600
@@ -6,6 +6,7 @@
 # GNU General Public License version 2 or any later version.
 
 from i18n import _
+from mercurial.node import nullrev
 import util, error, osutil, revset, similar, encoding, phases
 import match as matchmod
 import os, errno, re, stat, sys, glob
@@ -647,6 +648,8 @@
                 start, end = spec.split(_revrangesep, 1)
                 start = revfix(repo, start, 0)
                 end = revfix(repo, end, len(repo) - 1)
+                if end == nullrev and start <= 0:
+                    start = nullrev
                 rangeiter = repo.changelog.revs(start, end)
                 if not seen and not l:
                     # by far the most common case: revs = ["-1:0"]