Show More
@@ -77,6 +77,9 def outputprettygraph(orig, ui, graph, * | |||||
77 | return orig(ui, graph, *args, **kwargs) |
|
77 | return orig(ui, graph, *args, **kwargs) | |
78 |
|
78 | |||
79 | def extsetup(ui): |
|
79 | def extsetup(ui): | |
|
80 | if ui.plain('graph'): | |||
|
81 | return | |||
|
82 | ||||
80 | if encoding.encoding != 'UTF-8': |
|
83 | if encoding.encoding != 'UTF-8': | |
81 | ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n')) |
|
84 | ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n')) | |
82 | return |
|
85 | return | |
@@ -86,8 +89,5 def extsetup(ui): | |||||
86 | 'monospace narrow text required\n')) |
|
89 | 'monospace narrow text required\n')) | |
87 | return |
|
90 | return | |
88 |
|
91 | |||
89 | if ui.plain('graph'): |
|
|||
90 | return |
|
|||
91 |
|
||||
92 | extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph) |
|
92 | extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph) | |
93 | extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode) |
|
93 | extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode) |
General Comments 0
You need to be logged in to leave comments.
Login now