Show More
@@ -676,9 +676,9 b' class GitRepository(BaseRepository):' | |||
|
676 | 676 | self._remote.sync_fetch(url, refs=commit_ids, **kwargs) |
|
677 | 677 | self._remote.invalidate_vcs_cache() |
|
678 | 678 | |
|
679 | def push(self, url): | |
|
679 | def push(self, url, **kwargs): | |
|
680 | 680 | refs = None |
|
681 | self._remote.sync_push(url, refs=refs) | |
|
681 | self._remote.sync_push(url, refs=refs, **kwargs) | |
|
682 | 682 | |
|
683 | 683 | def set_refs(self, ref_name, commit_id): |
|
684 | 684 | self._remote.set_refs(ref_name, commit_id) |
@@ -583,7 +583,7 b' class MercurialRepository(BaseRepository' | |||
|
583 | 583 | """ |
|
584 | 584 | return self.pull(url, commit_ids=commit_ids) |
|
585 | 585 | |
|
586 | def push(self, url): | |
|
586 | def push(self, url, **kwargs): | |
|
587 | 587 | url = self._get_url(url) |
|
588 | 588 | self._remote.sync_push(url) |
|
589 | 589 |
@@ -416,7 +416,7 b' class ScmModel(BaseModel):' | |||
|
416 | 416 | log.error(traceback.format_exc()) |
|
417 | 417 | raise |
|
418 | 418 | |
|
419 | def push_changes(self, repo, username, remote_uri=None, validate_uri=True): | |
|
419 | def push_changes(self, repo, username, remote_uri=None, validate_uri=True, **kwargs): | |
|
420 | 420 | dbrepo = self._get_repo(repo) |
|
421 | 421 | remote_uri = remote_uri or dbrepo.push_uri |
|
422 | 422 | if not remote_uri: |
@@ -436,7 +436,7 b' class ScmModel(BaseModel):' | |||
|
436 | 436 | raise |
|
437 | 437 | |
|
438 | 438 | try: |
|
439 | repo.push(remote_uri) | |
|
439 | repo.push(remote_uri, **kwargs) | |
|
440 | 440 | except Exception: |
|
441 | 441 | log.error(traceback.format_exc()) |
|
442 | 442 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now