##// END OF EJS Templates
formatter: make debug style match Python syntax
Matt Mackall -
r22424:1f722260 default
parent child Browse files
Show More
@@ -67,12 +67,12 class plainformatter(baseformatter):
67 67 class debugformatter(baseformatter):
68 68 def __init__(self, ui, topic, opts):
69 69 baseformatter.__init__(self, ui, topic, opts)
70 self._ui.write("%s = {\n" % self._topic)
70 self._ui.write("%s = [\n" % self._topic)
71 71 def _showitem(self):
72 72 self._ui.write(" " + repr(self._item) + ",\n")
73 73 def end(self):
74 74 baseformatter.end(self)
75 self._ui.write("}\n")
75 self._ui.write("]\n")
76 76
77 77 def formatter(ui, topic, opts):
78 78 if ui.configbool('ui', 'formatdebug'):
@@ -350,6 +350,11 warning message about such pattern.
350 350 $ hg status -A --rev 1 1
351 351 R 1/2/3/4/5/b.txt
352 352
353 $ hg status --config ui.formatdebug=True --rev 1 1
354 status = [
355 {*'path': '1/2/3/4/5/b.txt'*}, (glob)
356 ]
357
353 358 #if windows
354 359 $ hg --config ui.slash=false status -A --rev 1 1
355 360 R 1\2\3\4\5\b.txt
General Comments 0
You need to be logged in to leave comments. Login now