D4338: beautifygraph: don't warn about busted terminal if HGPLAIN is set
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Aug 20 18:25:34 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG362cb82385ea: beautifygraph: don't warn about busted terminal if HGPLAIN is set (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4338?vs=10478&id=10479
REVISION DETAIL
https://phab.mercurial-scm.org/D4338
AFFECTED FILES
hgext/beautifygraph.py
CHANGE DETAILS
diff --git a/hgext/beautifygraph.py b/hgext/beautifygraph.py
--- a/hgext/beautifygraph.py
+++ b/hgext/beautifygraph.py
@@ -77,6 +77,9 @@
return orig(ui, graph, *args, **kwargs)
def extsetup(ui):
+ if ui.plain('graph'):
+ return
+
if encoding.encoding != 'UTF-8':
ui.warn(_('beautifygraph: unsupported encoding, UTF-8 required\n'))
return
@@ -86,8 +89,5 @@
'monospace narrow text required\n'))
return
- if ui.plain('graph'):
- return
-
extensions.wrapfunction(graphmod, 'outputgraph', outputprettygraph)
extensions.wrapfunction(templatekw, 'getgraphnode', getprettygraphnode)
To: durin42, #hg-reviewers, martinvonz
Cc: martinvonz, mercurial-devel
More information about the Mercurial-devel
mailing list