understand 'tip' as meaning Subversion 'HEAD'

This commit is contained in:
Dan Villiom Podlaski Christiansen 2012-11-04 11:34:43 +01:00
parent d22af9a2df
commit ec66e00a4f

View File

@ -382,7 +382,7 @@ def parse_revnum(svnrepo, r):
try:
return int(r or 0)
except ValueError:
if isinstance(r, str) and r.upper() == 'HEAD':
if isinstance(r, str) and r.lower() in ('head', 'tip'):
return svnrepo.last_changed_rev
else:
# TODO: use error.RepoLookupError when we drop 1.3?