diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2775,8 +2775,7 @@ def identify(ui, repo, source=None, rev= taglist.extend(p.tags()) dirty = "" - if (any(repo.status()) - or any(ctx.sub(s).dirty() for s in ctx.substate)): + if ctx.dirty(missing=True, merge=False, branch=False): dirty = '+' fm.data(dirty=dirty)