##// 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,16 +167,13 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:
170 parents = ctx.parents()
177 rev = hexfn(ctx.node())
171 rev = ('+'.join([hex(p.node()) for p in parents]))
178 else:
172 if (ui.configbool('blackbox', 'dirty', False) and (
179 parents = ctx.parents()
173 any(ui._bbrepo.status()) or
180 rev = ('+'.join([hexfn(p.node()) for p in parents]))
174 any(ctx.sub(s).dirty() for s in ctx.substate)
181 if (ui.configbool('blackbox', 'dirty', False) and (
175 )):
182 any(ui._bbrepo.status()) or
176 changed = '+'
183 any(ctx.sub(s).dirty() for s in ctx.substate)
184 )):
185 changed = '+'
186 try:
177 try:
187 ui._bbwrite('%s %s @%s%s (%s)> %s',
178 ui._bbwrite('%s %s @%s%s (%s)> %s',
188 date, user, rev, changed, pid, formattedmsg)
179 date, user, rev, changed, pid, formattedmsg)
General Comments 0
You need to be logged in to leave comments. Login now