mercurial/cmdutil.py
changeset 3825 000d122071b5
parent 3814 120be84f33de
child 3827 3674ca805a5b
--- a/mercurial/cmdutil.py	Thu Dec 07 11:22:17 2006 +0100
+++ b/mercurial/cmdutil.py	Thu Dec 07 14:15:11 2006 -0200
@@ -18,7 +18,7 @@
     be None, meaning use working dir.'''
 
     def revfix(repo, val, defval):
-        if not val and val != 0:
+        if not val and val != 0 and defval is not None:
             val = defval
         return repo.lookup(val)