Mercurial > hgsubversion
changeset 975:9ffa1daf7b08 stable
understand 'tip' as meaning Subversion 'HEAD'
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sun, 04 Nov 2012 11:34:43 +0100 |
parents | 336f4bce479a |
children | ea8ef4dd967e 74d9aa42b28f |
files | hgsubversion/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -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?