Skip to content

Commit 3fa0c45

Browse files
committed
chore(hg,git,svn): Pass through positional args
1 parent a061c6f commit 3fa0c45

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

libvcs/git.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ class GitRepo(BaseRepo):
138138
bin_name = "git"
139139
schemes = ("git", "git+http", "git+https", "git+ssh", "git+git", "git+file")
140140

141-
def __init__(self, url: str, repo_dir: str, remotes: RemotesArgs = None, **kwargs):
141+
def __init__(
142+
self, url: str, repo_dir: str, remotes: RemotesArgs = None, *args, **kwargs
143+
):
142144
"""A git repository.
143145
144146
Parameters
@@ -203,7 +205,7 @@ def __init__(self, url: str, repo_dir: str, remotes: RemotesArgs = None, **kwarg
203205
"push": url,
204206
}
205207

206-
BaseRepo.__init__(self, url, repo_dir, **kwargs)
208+
BaseRepo.__init__(self, url, repo_dir, *args, **kwargs)
207209

208210
@classmethod
209211
def from_pip_url(cls, pip_url, *args, **kwargs):

libvcs/hg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class MercurialRepo(BaseRepo):
2020
bin_name = "hg"
2121
schemes = ("hg", "hg+http", "hg+https", "hg+file")
2222

23-
def __init__(self, url, repo_dir, **kwargs):
24-
BaseRepo.__init__(self, url, repo_dir, **kwargs)
23+
def __init__(self, url, repo_dir, *args, **kwargs):
24+
BaseRepo.__init__(self, url, repo_dir, *args, **kwargs)
2525

2626
def obtain(self, *args, **kwargs):
2727
self.ensure_dir()

libvcs/svn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SubversionRepo(BaseRepo):
3434
bin_name = "svn"
3535
schemes = ("svn", "svn+ssh", "svn+http", "svn+https", "svn+svn")
3636

37-
def __init__(self, url, repo_dir, **kwargs):
37+
def __init__(self, url, repo_dir, *args, **kwargs):
3838
"""A svn repository.
3939
4040
Parameters
@@ -55,7 +55,7 @@ def __init__(self, url, repo_dir, **kwargs):
5555
self.svn_trust_cert = False
5656

5757
self.rev = kwargs.get("rev")
58-
BaseRepo.__init__(self, url, repo_dir, **kwargs)
58+
BaseRepo.__init__(self, url, repo_dir, *args, **kwargs)
5959

6060
def _user_pw_args(self):
6161
args = []

0 commit comments

Comments
 (0)