Mercurial > hgsubversion
changeset 1120:8a734c3e9b8d
wrappers: remove pre-1.9 code from clone
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Thu, 05 Sep 2013 16:20:59 -0500 |
parents | 2efc4abd4602 |
children | 7a4d8525737a |
files | hgsubversion/wrappers.py |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -602,14 +602,11 @@ def clone(orig, ui, source, dest=None, * dstrepo = data.get('dstrepo') srcrepo = data.get('srcrepo') + dst = dstrepo.local() if dstrepo.local() and srcrepo.capable('subversion'): dst = dstrepo.local() - if isinstance(dst, bool): - # Apparently <= hg@1.9 - fd = dstrepo.opener("hgrc", "a", text=True) - else: - fd = dst.opener("hgrc", "a", text=True) + fd = dst.opener("hgrc", "a", text=True) preservesections = set(s for s, v in optionmap.itervalues()) preservesections |= extrasections for section in preservesections: