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