hg convert changes a revision's node ID for an unknown reason

Peter Hosey boredzo at gmail.com
Sat Jun 25 22:33:18 CDT 2011

On Jun 25, 2011, at 20:28:54, Augie Fackler wrote:
> On Jun 25, 2011, at 10:24 PM, Peter Hosey wrote:
>> On Jun 25, 2011, at 20:22:34, Augie Fackler wrote:
>>> There's also another potential wrinkle: convert stores source information in extra, which will necessarily change all the hashes.
>> That's what I thought, but the hashes are unchanged up to r182. And the extra information would be shown in hg log --verbose, wouldn't it? It's not there in the output I showed for both r183s.
> Hm, this is surprising to me. Can you give me a link to the source repo and command to run so I can investigate tomorrow?

I will.

> No, extra doesn't show in log --verbose. It *does* show in log --debug though.

Ah. I thought I was missing something there.

Here's that output:

<?xml version="1.0"?>
<logentry revision="182" node="c7abe423a7879143ccd6b92e819f92a7b0223e43">
<parent revision="181" node="aca902ffce641c9e5617e12d046e3ecd673a50f5" />
<parent revision="-1" node="0000000000000000000000000000000000000000" />
<author email="boredzo">boredzo</author>
<msg xml:space="preserve">I Hate Distcc, part 2.</msg>
<path action="M">Examples/Beep-Carbon/Beep-Carbon.xcode/project.pbxproj</path>
<extra key="branch">default</extra>
<extra key="convert_revision">svn:99687598-2e92-11dd-8019-fe7b9d601d1b/trunk at 186</extra>
<logentry revision="183" node="9ed2745b6b380e9892933e79184b4310fcb118bd">
<parent revision="182" node="c7abe423a7879143ccd6b92e819f92a7b0223e43" />
<parent revision="-1" node="0000000000000000000000000000000000000000" />
<author email="tick">tick</author>
<msg xml:space="preserve">Moving the whistle icon psd to the right place for icons</msg>
<path action="A">images/icons/whistle.psd</path>
<path action="R">Examples/whistle.psd</path>
<copy source="Examples/whistle.psd">images/icons/whistle.psd</copy>
<extra key="branch">default</extra>
<extra key="convert_revision">svn:99687598-2e92-11dd-8019-fe7b9d601d1b/trunk at 187</extra>

As before, nothing is different from the old repo except the node ID of r183 (and its descendants). The extra information is present and equal in both repoes; it's the information from our original conversion from Subversion to Mercurial.

More information about the Mercurial mailing list