diff 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
line wrap: on
line diff
--- a/rhodecode/controllers/admin/repos.py	Sat Jul 14 18:53:39 2012 +0200
+++ b/rhodecode/controllers/admin/repos.py	Sat Jul 14 19:09:35 2012 +0200
@@ -211,6 +211,10 @@
         self.__load_defaults()
         repo_model = RepoModel()
         changed_name = repo_name
+        #override the choices with extracted revisions !
+        choices, c.landing_revs = ScmModel().get_repo_landing_revs(repo_name)
+        c.landing_revs_choices = choices
+
         _form = RepoForm(edit=True, old_data={'repo_name': repo_name},
                          repo_groups=c.repo_groups_choices,
                          landing_revs=c.landing_revs_choices)()