# HG changeset patch # User Simon Lopez # Date 2013-05-12 23:41:40 # Node ID d11ecf2f63278b725c7b60c8fd5f96012041fa14 # Parent c480e62f44d37b9d0f72a4b59e1b57e3481485a6 Repo type can't be changed. Fixes issue 836 diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py --- a/rhodecode/model/repo.py +++ b/rhodecode/model/repo.py @@ -286,7 +286,7 @@ class RepoModel(BaseModel): if 'repo_group' in kwargs: cur_repo.group = RepoGroup.get(kwargs['repo_group']) - for strip, k in [(0, 'repo_type'), (1, 'repo_enable_downloads'), + for strip, k in [(1, 'repo_enable_downloads'), (1, 'repo_description'), (1, 'repo_enable_locking'), (1, 'repo_landing_rev'), (0, 'clone_uri'), (1, 'repo_private'), (1, 'repo_enable_statistics')]: diff --git a/rhodecode/templates/admin/repos/repo_edit.html b/rhodecode/templates/admin/repos/repo_edit.html --- a/rhodecode/templates/admin/repos/repo_edit.html +++ b/rhodecode/templates/admin/repos/repo_edit.html @@ -55,14 +55,6 @@ ${self.context_bar('options')}
- -
-
- ${h.select('repo_type','hg',c.backends,class_="medium")} -
-
-
-