Submitter | Matt Harbison |
---|---|
Date | July 9, 2017, 11:34 p.m. |
Message ID | <fca94a77d9cac7b60a44.1499643291@Envy> |
Download | mbox | patch |
Permalink | /patch/22187/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -197,10 +197,8 @@ ctx = ui._bbrepo[None] parents = ctx.parents() rev = ('+'.join([hex(p.node()) for p in parents])) - if (ui.configbool('blackbox', 'dirty') and ( - any(ui._bbrepo.status()) or - any(ctx.sub(s).dirty() for s in ctx.substate) - )): + if (ui.configbool('blackbox', 'dirty') and + ctx.dirty(missing=True, merge=False, branch=False)): changed = '+' if ui.configbool('blackbox', 'logsource'): src = ' [%s]' % event