diff mercurial/cmdutil.py @ 3718:7db88b094b14

fix hg log -r ''
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 27 Nov 2006 22:56:26 -0200
parents 67f44b825784
children cb48cd27d3f4
line wrap: on
line diff
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -45,7 +45,7 @@ def revrange(repo, revs):
     """Yield revision as strings from a list of revision specifications."""
 
     def revfix(repo, val, defval):
-        if not val and val != 0:
+        if not val and val != 0 and defval is not None:
             return defval
         return repo.changelog.rev(repo.lookup(val))