Mercurial > hg
diff mercurial/commands.py @ 17255:3e856d8abe9c stable
identity: show trailing '+' for dirty subrepos (issue2839)
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Fri, 27 Jul 2012 13:56:19 +0200 |
parents | 6ffb35b2284c |
children | e432fb4b4221 |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Jul 27 10:16:20 2012 +0200 +++ b/mercurial/commands.py Fri Jul 27 13:56:19 2012 +0200 @@ -3506,7 +3506,9 @@ parents = ctx.parents() changed = "" if default or id or num: - changed = util.any(repo.status()) and "+" or "" + if (util.any(repo.status()) + or util.any(ctx.sub(s).dirty() for s in ctx.substate)): + changed = '+' if default or id: output = ["%s%s" % ('+'.join([hexfunc(p.node()) for p in parents]), changed)]