Show More
@@ -71,12 +71,6 b' def _closelog(vfs):' | |||
|
71 | 71 | del filehandles[path] |
|
72 | 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 | 74 | def wrapui(ui): |
|
81 | 75 | class blackboxui(ui.__class__): |
|
82 | 76 | def __init__(self, src=None): |
@@ -173,16 +167,13 b' def wrapui(ui):' | |||
|
173 | 167 | changed = '' |
|
174 | 168 | if ui._bbrepo: |
|
175 | 169 | ctx = ui._bbrepo[None] |
|
176 |
|
|
|
177 |
|
|
|
178 | else: | |
|
179 |
|
|
|
180 | rev = ('+'.join([hexfn(p.node()) for p in parents])) | |
|
181 | if (ui.configbool('blackbox', 'dirty', False) and ( | |
|
182 |
|
|
|
183 | any(ctx.sub(s).dirty() for s in ctx.substate) | |
|
184 | )): | |
|
185 | changed = '+' | |
|
170 | parents = ctx.parents() | |
|
171 | rev = ('+'.join([hex(p.node()) for p in parents])) | |
|
172 | if (ui.configbool('blackbox', 'dirty', False) and ( | |
|
173 | any(ui._bbrepo.status()) or | |
|
174 | any(ctx.sub(s).dirty() for s in ctx.substate) | |
|
175 | )): | |
|
176 | changed = '+' | |
|
186 | 177 | try: |
|
187 | 178 | ui._bbwrite('%s %s @%s%s (%s)> %s', |
|
188 | 179 | date, user, rev, changed, pid, formattedmsg) |
General Comments 0
You need to be logged in to leave comments.
Login now