Show More
@@ -491,7 +491,8 b' INPUT::' | |||||
491 | "owner_name" : "<ownername>", |
|
491 | "owner_name" : "<ownername>", | |
492 | "description" : "<description> = ''", |
|
492 | "description" : "<description> = ''", | |
493 | "repo_type" : "<type> = 'hg'", |
|
493 | "repo_type" : "<type> = 'hg'", | |
494 | "private" : "<bool> = False" |
|
494 | "private" : "<bool> = False", | |
|
495 | "clone_uri" : "<clone_uri> = None", | |||
495 | } |
|
496 | } | |
496 |
|
497 | |||
497 | OUTPUT:: |
|
498 | OUTPUT:: |
@@ -439,16 +439,17 b' class ApiController(JSONRPCController):' | |||||
439 |
|
439 | |||
440 | @HasPermissionAnyDecorator('hg.admin', 'hg.create.repository') |
|
440 | @HasPermissionAnyDecorator('hg.admin', 'hg.create.repository') | |
441 | def create_repo(self, apiuser, repo_name, owner_name, description='', |
|
441 | def create_repo(self, apiuser, repo_name, owner_name, description='', | |
442 | repo_type='hg', private=False): |
|
442 | repo_type='hg', private=False, clone_uri=None): | |
443 | """ |
|
443 | """ | |
444 | Create a repository |
|
444 | Create repository, if clone_url is given it makes a remote clone | |
445 |
|
445 | |||
446 | :param apiuser: |
|
446 | :param apiuser: | |
447 | :param repo_name: |
|
447 | :param repo_name: | |
|
448 | :param owner_name: | |||
448 | :param description: |
|
449 | :param description: | |
449 | :param type: |
|
450 | :param repo_type: | |
450 | :param private: |
|
451 | :param private: | |
451 |
:param |
|
452 | :param clone_uri: | |
452 | """ |
|
453 | """ | |
453 |
|
454 | |||
454 | try: |
|
455 | try: | |
@@ -477,7 +478,7 b' class ApiController(JSONRPCController):' | |||||
477 | private=private, |
|
478 | private=private, | |
478 | repo_type=repo_type, |
|
479 | repo_type=repo_type, | |
479 | repo_group=parent_id, |
|
480 | repo_group=parent_id, | |
480 |
clone_uri= |
|
481 | clone_uri=clone_uri | |
481 | ), |
|
482 | ), | |
482 | owner |
|
483 | owner | |
483 | ) |
|
484 | ) |
@@ -177,7 +177,7 b' class DbManage(object):' | |||||
177 |
|
177 | |||
178 | def step_5(self): |
|
178 | def step_5(self): | |
179 | pass |
|
179 | pass | |
180 |
|
180 | |||
181 | upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) |
|
181 | upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) | |
182 |
|
182 | |||
183 | # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE |
|
183 | # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE |
General Comments 0
You need to be logged in to leave comments.
Login now