Show More
@@ -787,7 +787,7 b' class Repository(Base, BaseModel):' | |||||
787 | from rhodecode.lib.vcs.backends.git import GitRepository |
|
787 | from rhodecode.lib.vcs.backends.git import GitRepository | |
788 | required = (MercurialRepository, GitRepository) |
|
788 | required = (MercurialRepository, GitRepository) | |
789 | if not isinstance(repo, required): |
|
789 | if not isinstance(repo, required): | |
790 | raise Exception('repo must be instance of %s' % required) |
|
790 | raise Exception('repo must be instance of %s' % (','.join(required))) | |
791 |
|
791 | |||
792 | # inject ui extra param to log this action via push logger |
|
792 | # inject ui extra param to log this action via push logger | |
793 | for k, v in extras.items(): |
|
793 | for k, v in extras.items(): |
@@ -807,7 +807,7 b' class Repository(Base, BaseModel):' | |||||
807 | from rhodecode.lib.vcs.backends.git import GitRepository |
|
807 | from rhodecode.lib.vcs.backends.git import GitRepository | |
808 | required = (MercurialRepository, GitRepository) |
|
808 | required = (MercurialRepository, GitRepository) | |
809 | if not isinstance(repo, required): |
|
809 | if not isinstance(repo, required): | |
810 | raise Exception('repo must be instance of %s' % required) |
|
810 | raise Exception('repo must be instance of %s' % (','.join(required))) | |
811 |
|
811 | |||
812 | # inject ui extra param to log this action via push logger |
|
812 | # inject ui extra param to log this action via push logger | |
813 | for k, v in extras.items(): |
|
813 | for k, v in extras.items(): |
@@ -873,7 +873,7 b' class Repository(Base, BaseModel):' | |||||
873 | from rhodecode.lib.vcs.backends.git import GitRepository |
|
873 | from rhodecode.lib.vcs.backends.git import GitRepository | |
874 | required = (MercurialRepository, GitRepository) |
|
874 | required = (MercurialRepository, GitRepository) | |
875 | if not isinstance(repo, required): |
|
875 | if not isinstance(repo, required): | |
876 | raise Exception('repo must be instance of %s' % required) |
|
876 | raise Exception('repo must be instance of %s' % (','.join(required))) | |
877 |
|
877 | |||
878 | # inject ui extra param to log this action via push logger |
|
878 | # inject ui extra param to log this action via push logger | |
879 | for k, v in extras.items(): |
|
879 | for k, v in extras.items(): |
General Comments 0
You need to be logged in to leave comments.
Login now