File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def set_remotes(self, overwrite: bool = False):
241
241
if not existing_remote or existing_remote .fetch_url != url :
242
242
self .set_remote (name = remote_name , url = url , overwrite = overwrite )
243
243
244
- def obtain (self ):
244
+ def obtain (self , * args , ** kwargs ):
245
245
"""Retrieve the repository, clone if doesn't exist."""
246
246
self .ensure_dir ()
247
247
@@ -264,7 +264,7 @@ def obtain(self):
264
264
265
265
self .set_remotes ()
266
266
267
- def update_repo (self , set_remotes : bool = False ):
267
+ def update_repo (self , set_remotes : bool = False , * args , ** kwargs ):
268
268
self .ensure_dir ()
269
269
270
270
if not os .path .isdir (os .path .join (self .path , ".git" )):
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class MercurialRepo(BaseRepo):
23
23
def __init__ (self , url , repo_dir , ** kwargs ):
24
24
BaseRepo .__init__ (self , url , repo_dir , ** kwargs )
25
25
26
- def obtain (self ):
26
+ def obtain (self , * args , ** kwargs ):
27
27
self .ensure_dir ()
28
28
29
29
# Double hyphens between [OPTION]... -- SOURCE [DEST] prevent command injections
@@ -34,7 +34,7 @@ def obtain(self):
34
34
def get_revision (self ):
35
35
return self .run (["parents" , "--template={rev}" ])
36
36
37
- def update_repo (self ):
37
+ def update_repo (self , * args , ** kwargs ):
38
38
self .ensure_dir ()
39
39
if not os .path .isdir (os .path .join (self .path , ".hg" )):
40
40
self .obtain ()
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def get_revision(self, location=None):
120
120
revision = max (revision , localrev )
121
121
return revision
122
122
123
- def update_repo (self , dest = None ):
123
+ def update_repo (self , dest = None , * args , ** kwargs ):
124
124
self .ensure_dir ()
125
125
if os .path .isdir (os .path .join (self .path , ".svn" )):
126
126
dest = self .path if not dest else dest
You can’t perform that action at this time.
0 commit comments