Using templates, I want to find out how many times a file has been revised across all changesets. So, put another way, how many changesets feature that file.
Is there a way to do it? And can it be done with the Keywords extension?
And yes, I realise it’s not really what Mercurial is about. I have sucky requirements:)
It is a normal feature of an VCS to track, when a file was changed, just run
hg log THE_FILENAMEto see all changesets which affect one specific file.To count them, run for example
hg log THE_FILENAME | grep -c "^changeset".