Mercurial > kallithea
comparison rhodecode/controllers/admin/repos.py @ 2603:370ed7829168 beta
Readme renderer now uses landing_rev parameter to render the readme based on
given revision, rather than tip
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 14 Jul 2012 19:09:35 +0200 |
parents | 94ae02ca5f00 |
children | d2901d906ef3 |
comparison
equal
deleted
inserted
replaced
2602:17083006a33d | 2603:370ed7829168 |
---|---|
209 # method='put') | 209 # method='put') |
210 # url('repo', repo_name=ID) | 210 # url('repo', repo_name=ID) |
211 self.__load_defaults() | 211 self.__load_defaults() |
212 repo_model = RepoModel() | 212 repo_model = RepoModel() |
213 changed_name = repo_name | 213 changed_name = repo_name |
214 #override the choices with extracted revisions ! | |
215 choices, c.landing_revs = ScmModel().get_repo_landing_revs(repo_name) | |
216 c.landing_revs_choices = choices | |
217 | |
214 _form = RepoForm(edit=True, old_data={'repo_name': repo_name}, | 218 _form = RepoForm(edit=True, old_data={'repo_name': repo_name}, |
215 repo_groups=c.repo_groups_choices, | 219 repo_groups=c.repo_groups_choices, |
216 landing_revs=c.landing_revs_choices)() | 220 landing_revs=c.landing_revs_choices)() |
217 try: | 221 try: |
218 form_result = _form.to_python(dict(request.POST)) | 222 form_result = _form.to_python(dict(request.POST)) |