identical change, different changesetid

Matt Mackall mpm at selenic.com
Thu May 5 20:09:37 UTC 2011


On Thu, 2011-05-05 at 18:51 +0000, Haszlakiewicz, Eric wrote:
> > -----Original Message-----
> > From: Matt Mackall [mailto:mpm at selenic.com]
> > 
> > > How do I figure out why things are different?
> > 
> > Compare the output of:
> > 
> >  hg debugdata .hg/store/00changelog.i <rev>
> > 
> > on both repos. These must be byte-identical to get the same changeset
> > hash.
> 
> Ah, thanks.  I found that command but I couldn't figure out how to use it.
> The first line is different:
> 
> >cd X0
> X0>hg debugdata .hg/store/00changelog.i 5 > ../X0.txt
> X0>cd ../X1
> X1>hg debugdata .hg/store/00changelog.i 5 > ../X1.txt
> X1>cd ..
> >diff -u X0.txt X1.txt
> --- X0.txt      2011-05-05 13:49:36.806626600 -0500
> +++ X1.txt      2011-05-05 13:49:41.181486600 -0500
> @@ -1,4 +1,4 @@
> -a1f994465eb6fc082d7db05a59a38269993d0c60
> +8566b05d1c1fe370ce38a7186a381e2f7412a180
>  ehaszla
>  1265224283 21600
>  tucrs/code/scripts/etc/cibil-prod+ifxncr.cfg
> 
> What does that mean?

That's the hash of the manifest revision, which implies that the
manifests are not byte-identical. You can do the same comparison on the
raw manifests with:

 hg debugdata .hg/store/00manifest.i a1f994465eb6fc082d7db05a59a38269993d0c60
 hg debugdata .hg/store/00manifest.i 8566b05d1c1fe370ce38a7186a381e2f7412a180

in the appropriate places.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list