# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1270050512 -7200 # Node ID a42e9c9bbb8af8f5a6040bc43c801a243ae79601 # Parent 408869906fbf380596be9ccb4e4815417aa2abd7 wrappers: remove unused code for compatibility with Subversion 1.4. diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py --- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -8,7 +8,6 @@ from mercurial import node from mercurial import i18n from svn import core -from svn import delta import replay import pushmod @@ -222,15 +221,7 @@ def pull(repo, source, heads=[], force=F 'only numbers work.' % checkout) have_replay = not repo.ui.configbool('hgsubversion', 'stupid') - if have_replay and not callable( - delta.svn_txdelta_apply(None, None, None)[0]): #pragma: no cover - repo.ui.status('You are using old Subversion SWIG bindings. Replay ' - 'will not work until you upgrade to 1.5.0 or newer. ' - 'Falling back to a slower method that may be buggier. ' - 'Please upgrade, or contribute a patch to use the ' - 'ctypes bindings instead of SWIG.\n') - have_replay = False - elif not have_replay: + if not have_replay: repo.ui.note('fetching stupidly...\n') # TODO: do credentials specified in the URL still work?