mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
understand 'tip' as meaning Subversion 'HEAD'
This commit is contained in:
parent
d22af9a2df
commit
ec66e00a4f
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user