##// END OF EJS Templates
blackbox: remove hexfn...
timeless -
r28304:6b38888a default
parent child Browse files
Show More
@@ -71,12 +71,6 b' def _closelog(vfs):'
71 del filehandles[path]
71 del filehandles[path]
72 fp.close()
72 fp.close()
73
73
74 def hexfn(node):
75 if node is None:
76 return None
77 else:
78 return hex(node)
79
80 def wrapui(ui):
74 def wrapui(ui):
81 class blackboxui(ui.__class__):
75 class blackboxui(ui.__class__):
82 def __init__(self, src=None):
76 def __init__(self, src=None):
@@ -173,11 +167,8 b' def wrapui(ui):'
173 changed = ''
167 changed = ''
174 if ui._bbrepo:
168 if ui._bbrepo:
175 ctx = ui._bbrepo[None]
169 ctx = ui._bbrepo[None]
176 if ctx.rev() is not None:
177 rev = hexfn(ctx.node())
178 else:
179 parents = ctx.parents()
170 parents = ctx.parents()
180 rev = ('+'.join([hexfn(p.node()) for p in parents]))
171 rev = ('+'.join([hex(p.node()) for p in parents]))
181 if (ui.configbool('blackbox', 'dirty', False) and (
172 if (ui.configbool('blackbox', 'dirty', False) and (
182 any(ui._bbrepo.status()) or
173 any(ui._bbrepo.status()) or
183 any(ctx.sub(s).dirty() for s in ctx.substate)
174 any(ctx.sub(s).dirty() for s in ctx.substate)
General Comments 0
You need to be logged in to leave comments. Login now