changeset 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 e9396dbfafe1
children 8b190adb7ee3
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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])