What’s the simplest way to have hg ... --template '{branches}' return default instead of an empty string when the changeset being printed is part of the default branch?
What’s the simplest way to have hg … –template ‘{branches}’ return default instead of
Share
I’ve not found an in-template way to do that. If I’m in a shellscript I do something like:
Though if you have the excellent hg prompt extension in place you could do: