Changeset - 57a2b792a3a1
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-01-31 16:57:29
marcin@python-works.com
fixed error for single changeset
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/changeset.py
Show inline comments
 
@@ -98,16 +98,17 @@ class ChangesetController(BaseController
 
        try:
 
            repo = hg_model.get_repo(c.repo_name)
 
            if len(rev_range) == 2:
 
                rev_start = rev_range[0]
 
                rev_end = rev_range[1]
 
                rev_ranges = get_cs_range(repo, rev_start, rev_end)
 
                c.cs_ranges = list(rev_ranges)
 

	
 
            else:
 
                rev_ranges = [repo.get_changeset(revision)]
 

	
 
            c.cs_ranges = list(rev_ranges)
 

	
 
        except (RepositoryError, ChangesetDoesNotExistError, Exception), e:
 
            log.error(traceback.format_exc())
 
            h.flash(str(e), category='warning')
 
            return redirect(url('home'))
 

	
 
        c.changes = OrderedDict()
0 comments (0 inline, 0 general)