equal
deleted
inserted
replaced
33 refuri = "hg.1.html#%s" % cmd |
33 refuri = "hg.1.html#%s" % cmd |
34 if cmd == 'help' and args: |
34 if cmd == 'help' and args: |
35 if args[0] == 'config': |
35 if args[0] == 'config': |
36 # :hg:`help config` |
36 # :hg:`help config` |
37 refuri = "hgrc.5.html" |
37 refuri = "hgrc.5.html" |
|
38 elif args[0].startswith('config.'): |
|
39 # :hg:`help config.SECTION...` |
|
40 refuri = "hgrc.5.html#%s" % args[0].split('.', 2)[1] |
38 elif len(args) >= 2 and args[0] == '-c': |
41 elif len(args) >= 2 and args[0] == '-c': |
39 # :hg:`help -c COMMAND ...` is equivalent to :hg:`COMMAND` |
42 # :hg:`help -c COMMAND ...` is equivalent to :hg:`COMMAND` |
40 # (mainly for :hg:`help -c config`) |
43 # (mainly for :hg:`help -c config`) |
41 refuri = "hg.1.html#%s" % args[1] |
44 refuri = "hg.1.html#%s" % args[1] |
42 else: |
45 else: |