diff mercurial/commands.py @ 7449:f848d7f96195

help: try topics before commands to avoid "diffs" showing help for diffstat
author Georg Brandl <georg@python.org>
date Mon, 01 Dec 2008 13:44:34 +0100
parents 6163ef936a00
children 62e5d41b0a8b 5a14a8f3b909
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Dec 01 12:11:28 2008 +0100
+++ b/mercurial/commands.py	Mon Dec 01 13:44:34 2008 +0100
@@ -1428,7 +1428,7 @@
 
     if name and name != 'shortlist':
         i = None
-        for f in (helpcmd, helptopic, helpext):
+        for f in (helptopic, helpcmd, helpext):
             try:
                 f(name)
                 i = None