Changeset - 4a0bce848ed8
[Not reviewed]
default
0 1 0
Mads Kiilerich - 12 years ago 2013-06-14 16:27:34
madski@unity3d.com
Grafted from: a0c471218d07
changelog: use unknown branch names as revisions

Makes the system more resilient
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/changelog.py
Show inline comments
 
@@ -136,6 +136,13 @@ class ChangelogController(BaseRepoContro
 
        c.size = max(c.size, 1)
 
        p = safe_int(request.GET.get('page', 1), 1)
 
        branch_name = request.GET.get('branch', None)
 
        if (branch_name and
 
            branch_name not in c.rhodecode_repo.branches and
 
            branch_name not in c.rhodecode_repo.closed_branches and
 
            not revision):
 
            return redirect(url('changelog_file_home', repo_name=c.repo_name,
 
                                    revision=branch_name, f_path=f_path or ''))
 

	
 
        c.changelog_for_path = f_path
 
        try:
 

	
0 comments (0 inline, 0 general)