Mercurial > hgsubversion
changeset 1174:a22d4972e01f
push: fix obsolete feature detection
The obsolete feature detection didn't work with demandimport, breaking
hgsubversion when running against 2.0-2.3.
author | Dan Villiom Podlaski Christiansen <dan@cabo.dk> |
---|---|
date | Tue, 22 Apr 2014 15:53:11 +0200 |
parents | b04758acf410 |
children | cdad3b3e4a09 |
files | hgsubversion/wrappers.py tests/test_util.py |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -192,7 +192,10 @@ def push(repo, dest, force, revs): ui = repo.ui old_encoding = util.swap_out_encoding() - hasobsolete = obsolete and obsolete._enabled + try: + hasobsolete = obsolete._enabled + except: + hasobsolete = False temporary_commits = [] try: