diff mercurial/cmdutil.py @ 3822:000d122071b5

fix hg diff -r ''
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Thu, 07 Dec 2006 14:15:11 -0200
parents 120be84f33de
children 3674ca805a5b
line wrap: on
line diff
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -18,7 +18,7 @@ def revpair(repo, revs):
     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)