# HG changeset patch # User Matt Mackall # Date 1374871330 18000 # Node ID 8963a706e075e25e0b65ce2f3372f9aba2c2f8a6 # Parent e9396dbfafe137e91ff5f282879b19df8e1b0e72 revsingle: fix silly API issue (issue2992) diff -r e9396dbfafe1 -r 8963a706e075 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])