diff --git a/docs/api/api.rst b/docs/api/api.rst --- a/docs/api/api.rst +++ b/docs/api/api.rst @@ -491,7 +491,8 @@ INPUT:: "owner_name" : "", "description" : " = ''", "repo_type" : " = 'hg'", - "private" : " = False" + "private" : " = False", + "clone_uri" : " = None", } OUTPUT:: diff --git a/rhodecode/controllers/api/api.py b/rhodecode/controllers/api/api.py --- a/rhodecode/controllers/api/api.py +++ b/rhodecode/controllers/api/api.py @@ -439,16 +439,17 @@ class ApiController(JSONRPCController): @HasPermissionAnyDecorator('hg.admin', 'hg.create.repository') def create_repo(self, apiuser, repo_name, owner_name, description='', - repo_type='hg', private=False): + repo_type='hg', private=False, clone_uri=None): """ - Create a repository + Create repository, if clone_url is given it makes a remote clone :param apiuser: :param repo_name: + :param owner_name: :param description: - :param type: + :param repo_type: :param private: - :param owner_name: + :param clone_uri: """ try: @@ -477,7 +478,7 @@ class ApiController(JSONRPCController): private=private, repo_type=repo_type, repo_group=parent_id, - clone_uri=None + clone_uri=clone_uri ), owner ) diff --git a/rhodecode/lib/db_manage.py b/rhodecode/lib/db_manage.py --- a/rhodecode/lib/db_manage.py +++ b/rhodecode/lib/db_manage.py @@ -177,7 +177,7 @@ class DbManage(object): def step_5(self): pass - + upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE