Show More
@@ -1143,7 +1143,6 b' class ApiController(JSONRPCController):' | |||||
1143 | if not HasRepoPermissionLevel('read')(repo.repo_name): |
|
1143 | if not HasRepoPermissionLevel('read')(repo.repo_name): | |
1144 | raise JSONRPCError('repository `%s` does not exist' % (repoid,)) |
|
1144 | raise JSONRPCError('repository `%s` does not exist' % (repoid,)) | |
1145 |
|
1145 | |||
1146 | ret_type = ret_type |
|
|||
1147 | _map = {} |
|
1146 | _map = {} | |
1148 | try: |
|
1147 | try: | |
1149 | _d, _f = ScmModel().get_nodes(repo, revision, root_path, |
|
1148 | _d, _f = ScmModel().get_nodes(repo, revision, root_path, |
@@ -321,8 +321,6 b' class RepoModel(object):' | |||||
321 | fork_of = db.Repository.guess_instance(fork_of) |
|
321 | fork_of = db.Repository.guess_instance(fork_of) | |
322 | repo_group = db.RepoGroup.guess_instance(repo_group) |
|
322 | repo_group = db.RepoGroup.guess_instance(repo_group) | |
323 | try: |
|
323 | try: | |
324 | repo_name = repo_name |
|
|||
325 | description = description |
|
|||
326 | # repo name is just a name of repository |
|
324 | # repo name is just a name of repository | |
327 | # while repo_name_full is a full qualified name that is combined |
|
325 | # while repo_name_full is a full qualified name that is combined | |
328 | # with name and path of group |
|
326 | # with name and path of group |
@@ -451,7 +451,6 b' class ScmModel(object):' | |||||
451 | content = content.read() |
|
451 | content = content.read() | |
452 | processed_nodes.append((f_path, content)) |
|
452 | processed_nodes.append((f_path, content)) | |
453 |
|
453 | |||
454 | message = message |
|
|||
455 | committer = user.full_contact |
|
454 | committer = user.full_contact | |
456 | if not author: |
|
455 | if not author: | |
457 | author = committer |
|
456 | author = committer | |
@@ -493,7 +492,6 b' class ScmModel(object):' | |||||
493 | user = db.User.guess_instance(user) |
|
492 | user = db.User.guess_instance(user) | |
494 | scm_instance = repo.scm_instance_no_cache() |
|
493 | scm_instance = repo.scm_instance_no_cache() | |
495 |
|
494 | |||
496 | message = message |
|
|||
497 | committer = user.full_contact |
|
495 | committer = user.full_contact | |
498 | if not author: |
|
496 | if not author: | |
499 | author = committer |
|
497 | author = committer | |
@@ -572,7 +570,6 b' class ScmModel(object):' | |||||
572 | content = nodes[f_path].get('content') |
|
570 | content = nodes[f_path].get('content') | |
573 | processed_nodes.append((f_path, content)) |
|
571 | processed_nodes.append((f_path, content)) | |
574 |
|
572 | |||
575 | message = message |
|
|||
576 | committer = user.full_contact |
|
573 | committer = user.full_contact | |
577 | if not author: |
|
574 | if not author: | |
578 | author = committer |
|
575 | author = committer |
@@ -83,7 +83,6 b' urllib.request.install_opener(o)' | |||||
83 | def _get_repo(proj): |
|
83 | def _get_repo(proj): | |
84 | if isinstance(proj, str): |
|
84 | if isinstance(proj, str): | |
85 | repo = vcs.get_repo(os.path.join(PROJECT_PATH, proj)) |
|
85 | repo = vcs.get_repo(os.path.join(PROJECT_PATH, proj)) | |
86 | proj = proj |
|
|||
87 | else: |
|
86 | else: | |
88 | repo = proj |
|
87 | repo = proj | |
89 | proj = repo.name |
|
88 | proj = repo.name |
General Comments 0
You need to be logged in to leave comments.
Login now