Mercurial > kallithea
changeset 4523:b696fd411a0b
files: file path is mandatory in URLs for 2-way diff
It would crash with an internal error when trying to process an empty file
name. Processing of other non-existing file names is still weird.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 24 Sep 2014 14:24:40 +0200 |
parents | a9a1560dad79 |
children | cfd7894f2d00 |
files | kallithea/config/routing.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/config/routing.py Wed Sep 24 14:24:40 2014 +0200 +++ b/kallithea/config/routing.py Wed Sep 24 14:24:40 2014 +0200 @@ -799,7 +799,7 @@ controller='files', action='diff', revision='tip', f_path='', conditions=dict(function=check_repo)) - rmap.connect('files_diff_2way_home', '/{repo_name:.*?}/diff-2way/{f_path:.*}', + rmap.connect('files_diff_2way_home', '/{repo_name:.*?}/diff-2way/{f_path:.+}', controller='files', action='diff_2way', revision='tip', f_path='', conditions=dict(function=check_repo))