In Mercurial, typing `hg id` gives you the shortened changeset hash, followed by...

@mcc@mastodon.social

In Mercurial, typing `hg id` gives you the shortened changeset hash, followed by a + if the working repo is dirty.

Is it possible to get this +, or something which similarly is a detectable yes/no output, when using `hg log --template` ?