##// END OF EJS Templates
configitems: register the 'blackbox.dirty' config
marmoute -
r33186:1df74b71 default
parent child Browse files
Show More
@@ -61,6 +61,9 b' command = registrar.command(cmdtable)'
61 configtable = {}
61 configtable = {}
62 configitem = registrar.configitem(configtable)
62 configitem = registrar.configitem(configtable)
63
63
64 configitem('blackbox', 'dirty',
65 default=False,
66 )
64 configitem('blackbox', 'maxsize',
67 configitem('blackbox', 'maxsize',
65 default='1 MB',
68 default='1 MB',
66 )
69 )
@@ -191,7 +194,7 b' def wrapui(ui):'
191 ctx = ui._bbrepo[None]
194 ctx = ui._bbrepo[None]
192 parents = ctx.parents()
195 parents = ctx.parents()
193 rev = ('+'.join([hex(p.node()) for p in parents]))
196 rev = ('+'.join([hex(p.node()) for p in parents]))
194 if (ui.configbool('blackbox', 'dirty', False) and (
197 if (ui.configbool('blackbox', 'dirty') and (
195 any(ui._bbrepo.status()) or
198 any(ui._bbrepo.status()) or
196 any(ctx.sub(s).dirty() for s in ctx.substate)
199 any(ctx.sub(s).dirty() for s in ctx.substate)
197 )):
200 )):
General Comments 0
You need to be logged in to leave comments. Login now