edit: I'm running that command through .bat file on Windows Server 2008. When I run it from cmd, then everything is OK. So, this is in fact question about quotes in .bat files, not about mercurial. I'm changing title and tags to reflect that.
Is it possible to insert quotes into hg log --template? I tried following:
hg log -r . --template "foo = \"{latesttag}.{latesttagdistance}\""
but that just eats up the quotes. Any other way to do it?