Preserving CVS $Header$ keyword while converting to Mercurial

Jan Vrany jan.vrany at fit.cvut.cz
Sat Jan 12 13:28:16 UTC 2013


Hi,

I would like to switch from CVS/SVN combination to Mercurial.
For some time, possibly quite long, there will be a living CVS
repository (not all individuals/companies are wiling to switch now
to an unknown/unproven technology while the current one
"just works" :-)

The idea is to keep default branch intact and regularly fetch changes
from CVS by running hg convert and do all development in a different
branch(es).

To be able to track changes, I would need to preserve expanded
$Header$ keywords in files so I new from which CVS revision the file
is derived. Is that possible with hg convert? If not, what would be
the best approach to do it? I don't mind a bit of python coding.

Thanks,

Jan



More information about the Mercurial mailing list