Mercurial > hg
changeset 33361:66fe60d5f291
blackbox: simplify the dirty check
Same idea (and possibly incorrect behavior) as the previous commit.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 09 Jul 2017 00:23:03 -0400 |
parents | 4a70985805c6 |
children | e48fb90f80c8 |
files | hgext/blackbox.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/blackbox.py Sun Jul 09 00:19:03 2017 -0400 +++ b/hgext/blackbox.py Sun Jul 09 00:23:03 2017 -0400 @@ -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