# HG changeset patch # User Mads Kiilerich # Date 1411561480 -7200 # Node ID 5f310a5597bfa94d22dae8f73bfb4303650ed2ba # Parent bc2e030bff7f226273f6d31857211edd3a257318 files: use current revision as default for 'show at' (Issue #31) Before, clicking 'show at' before selecting a changeset would fail when looking for 'no revision'. diff -r bc2e030bff7f -r 5f310a5597bf kallithea/controllers/files.py --- a/kallithea/controllers/files.py Wed Sep 24 14:24:40 2014 +0200 +++ b/kallithea/controllers/files.py Wed Sep 24 14:24:40 2014 +0200 @@ -605,8 +605,8 @@ def diff(self, repo_name, f_path): ignore_whitespace = request.GET.get('ignorews') == '1' line_context = request.GET.get('context', 3) - diff1 = request.GET.get('diff1', '') diff2 = request.GET.get('diff2', '') + diff1 = request.GET.get('diff1', '') or diff2 c.action = request.GET.get('diff') c.no_changes = diff1 == diff2 c.f_path = f_path