diff mercurial/scmutil.py @ 19509:8963a706e075 stable

revsingle: fix silly API issue (issue2992)
author Matt Mackall <mpm@selenic.com>
date Fri, 26 Jul 2013 15:42:10 -0500
parents 0c7cf411b390
children 1d07bf106c2a
line wrap: on
line diff
--- a/mercurial/scmutil.py	Fri Jul 26 15:05:48 2013 -0500
+++ b/mercurial/scmutil.py	Fri Jul 26 15:42:10 2013 -0500
@@ -556,7 +556,7 @@
     return _rcpath
 
 def revsingle(repo, revspec, default='.'):
-    if not revspec:
+    if not revspec and revspec != 0:
         return repo[default]
 
     l = revrange(repo, [revspec])