diff mercurial/scmutil.py @ 20699:58c32a9c8e7b stable

hg log: solves bug regarding hg log -r 0:null (issue4039) 'hg log -r 0:null' was showing only one changeset(the '-1' one) instead of the first two changesets.
author Cristian Zamfir <cristi_zmf@yahoo.com>
date Wed, 12 Mar 2014 10:26:48 +0200
parents 88d8e568add1
children 2764148aa088
line wrap: on
line diff
--- a/mercurial/scmutil.py	Mon Mar 10 01:01:43 2014 +0900
+++ b/mercurial/scmutil.py	Wed Mar 12 10:26:48 2014 +0200
@@ -496,7 +496,7 @@
                 start, end = spec.split(_revrangesep, 1)
                 start = revfix(repo, start, 0)
                 end = revfix(repo, end, len(repo) - 1)
-                if end == nullrev and start <= 0:
+                if end == nullrev and start < 0:
                     start = nullrev
                 rangeiter = repo.changelog.revs(start, end)
                 if not seen and not l: