aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Lopez <simon.lopez@slopez.org>2013-05-12 23:41:40 +0200
committerSimon Lopez <simon.lopez@slopez.org>2013-05-12 23:41:40 +0200
commit45e0fa1ae6b05f4785cde57bf217bfa39b582b36 (patch)
tree403c96bb374b2714c870fe752c8dd2f9e18da797
parent2e978a6cdf3a3d94ad45982cf8314571006e49ef (diff)
downloadrhodecode-45e0fa1ae6b05f4785cde57bf217bfa39b582b36.tar.gz
Repo type can't be changed. Fixes issue 836
-rw-r--r--rhodecode/model/repo.py2
-rw-r--r--rhodecode/templates/admin/repos/repo_edit.html8
2 files changed, 1 insertions, 9 deletions
diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py
index fcfece76..799441b7 100644
--- 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
index ebf60226..fba1207c 100644
--- a/rhodecode/templates/admin/repos/repo_edit.html
+++ b/rhodecode/templates/admin/repos/repo_edit.html
@@ -55,14 +55,6 @@ ${self.context_bar('options')}
</div>
<div class="field">
<div class="label">
- <label for="repo_type">${_('Type')}:</label>
- </div>
- <div class="input">
- ${h.select('repo_type','hg',c.backends,class_="medium")}
- </div>
- </div>
- <div class="field">
- <div class="label">
<label for="repo_landing_rev">${_('Landing revision')}:</label>
</div>
<div class="input">