comparison mercurial/commands.py @ 479:7293cb91bf2a

Cleaned up command alias handling in help. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cleaned up command alias handling in help. manifest hash: cfff5b739437073beddbc6e1f4c47ca958eeb1b2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCvqocW7P1GVgWeRoRAkM/AJ9iXHfhyAJH8kL167OiG95EJSsAKwCfWZFt 5S2AiXffxtPLIzxb/evzHZQ= =ppvs -----END PGP SIGNATURE-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 26 Jun 2005 14:14:04 +0100
parents 520540fd6b64
children 430a10669928
comparison
equal deleted inserted replaced
478:f1804f2e7f35 479:7293cb91bf2a
170 show_version(ui) 170 show_version(ui)
171 ui.write('\n') 171 ui.write('\n')
172 ui.write('hg commands:\n\n') 172 ui.write('hg commands:\n\n')
173 173
174 h = {} 174 h = {}
175 for c,e in table.items(): 175 for c, e in table.items():
176 f = c 176 f = c.split("|")[0]
177 aliases = None 177 if f.startswith("debug"):
178 if "|" in f: 178 continue
179 l = f.split("|")
180 f, aliases = l[0], l[1:]
181 if f.startswith("debug"): continue
182 d = "" 179 d = ""
183 if e[0].__doc__: 180 if e[0].__doc__:
184 d = e[0].__doc__.splitlines(0)[0].rstrip() 181 d = e[0].__doc__.splitlines(0)[0].rstrip()
185 h[f] = d 182 h[f] = d
186 183