revsingle: fix silly API issue (issue2992) stable
authorMatt Mackall <mpm@selenic.com>
Fri, 26 Jul 2013 15:42:10 -0500
branchstable
changeset 19509 8963a706e075
parent 19508 e9396dbfafe1
child 19510 8b190adb7ee3
revsingle: fix silly API issue (issue2992)
mercurial/scmutil.py
--- 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])