comparison 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
comparison
equal deleted inserted replaced
19508:e9396dbfafe1 19509:8963a706e075
554 else: 554 else:
555 _rcpath = osrcpath() 555 _rcpath = osrcpath()
556 return _rcpath 556 return _rcpath
557 557
558 def revsingle(repo, revspec, default='.'): 558 def revsingle(repo, revspec, default='.'):
559 if not revspec: 559 if not revspec and revspec != 0:
560 return repo[default] 560 return repo[default]
561 561
562 l = revrange(repo, [revspec]) 562 l = revrange(repo, [revspec])
563 if len(l) < 1: 563 if len(l) < 1:
564 raise util.Abort(_('empty revision set')) 564 raise util.Abort(_('empty revision set'))