I converted a Subversion repository to Mercurial, using the Convert extension. When I look at the new repository with Tortoise HG, I see in each changeset the corresponding source path and revision (see image).
Is there a way to write those two out to the console? Ideally I'd like an output like this:
hg:1147 svn:trunk@7201
hg:1146 svn:trunk@7200
...
I know that I can use hg log
with the template option to customize the output, but don't know how to get the Subversion source path/revision.
EDIT:
It looks like the way I wanted to go is not possible. The svn source path/revision is in a field called extras
within the changeset (thanks @Ry4en) and neither hg log
nor hg export
output this value. What I will try now is to use the file .hg/shamap
in combination with
hg log --template 'hg:{rev} nodeid:{node}'
To map the Mercurial revision to the SVN source path/revision.
EDIT2:
My Mercurial version is 1.4.3.
With Mercurial 1.7.1 it's possible to use this command (thanks @ Wim Coenen): hg log --template {node}\n{extras}\n\n