equal
deleted
inserted
replaced
25 "module is missing\n") |
25 "module is missing\n") |
26 sys.stderr.write("please install python-docutils or see " |
26 sys.stderr.write("please install python-docutils or see " |
27 "http://docutils.sourceforge.net/\n") |
27 "http://docutils.sourceforge.net/\n") |
28 sys.exit(-1) |
28 sys.exit(-1) |
29 |
29 |
30 def role_hg(name, rawtext, text, lineno, inliner, |
30 def role_hg(name, rawtext, text, lineno, inliner, options=None, content=None): |
31 options={}, content=[]): |
|
32 text = "hg " + utils.unescape(text) |
31 text = "hg " + utils.unescape(text) |
33 linktext = nodes.literal(rawtext, text) |
32 linktext = nodes.literal(rawtext, text) |
34 parts = text.split() |
33 parts = text.split() |
35 cmd, args = parts[1], parts[2:] |
34 cmd, args = parts[1], parts[2:] |
36 refuri = "hg.1.html#%s" % cmd |
35 refuri = "hg.1.html#%s" % cmd |