Skip to content

Commit 190106e

Browse files
committed
refactor (sync[svn}): Remove convert_pip_url
1 parent 37d21bd commit 190106e

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/libvcs/sync/svn.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
1010
The following are pypa/pip (MIT license):
1111
12-
- [`SvnSync.convert_pip_url`](libvcs.svn.SvnSync.convert_pip_url)
1312
- [`SvnSync.get_url`](libvcs.svn.SvnSync.get_url)
1413
- [`SvnSync.get_revision`](libvcs.svn.SvnSync.get_revision)
1514
- [`get_rev_options`](libvcs.svn.get_rev_options)
@@ -24,19 +23,11 @@
2423
from libvcs._internal.run import run
2524
from libvcs._internal.types import StrOrBytesPath, StrPath
2625

27-
from .base import BaseSync, VCSLocation, convert_pip_url as base_convert_pip_url
26+
from .base import BaseSync
2827

2928
logger = logging.getLogger(__name__)
3029

3130

32-
def convert_pip_url(pip_url: str) -> VCSLocation:
33-
# hotfix the URL scheme after removing svn+ from svn+ssh:// re-add it
34-
url, rev = base_convert_pip_url(pip_url)
35-
if url.startswith("ssh://"):
36-
url = "svn+" + url
37-
return VCSLocation(url=url, rev=rev)
38-
39-
4031
class SvnSync(BaseSync):
4132
bin_name = "svn"
4233
schemes = ("svn", "svn+ssh", "svn+http", "svn+https", "svn+svn")

0 commit comments

Comments
 (0)