# HG changeset patch # User Marcin Kuzminski # Date 2011-02-10 23:44:22 # Node ID 22c147726ea6a3ef5c9f1d6511af73d849d772a5 # Parent e7478ac19f9fcb33e47570d0c716d683ddf4eb09 hidden compare view link for single revision push diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -476,7 +476,8 @@ def action_parser(user_log): repo_name=repo_name, revision=rev), title=message(rev), class_='tooltip') for rev in revs[revs_limit:revs_top_limit]])) - cs_links += compare_view + if len(revs) > 1: + cs_links += compare_view return cs_links def get_fork_name():