bundle->patch

Haszlakiewicz, Eric EHASZLA at transunion.com
Wed May 18 22:12:02 UTC 2011


> -----Original Message-----
> From: Matt Mackall [mailto:mpm at selenic.com]
> 
> Theoretically, no, you can't, as it's delta-encoded against earlier
> changelog entries. Because -everything- in a bundle is deltas against
> stuff external to the bundle, they're generally useless on their own.
> 
> Practically, yes, you could probably extract most of the changelog
> because most changelog deltas are "drop all the previous text, add new
> text". But no tools exist.

The BundleFormat page says:
Each non-null chunk in the Changelog group contains in its Data section a patch against a text that is only stored in the form of other patches, beginning with a patch against the empty string ("").

Which I'm interpreting as meaning that the changelog group for any bundle stands on its own.

Are you saying that stuff like the commit message for rev N is actually a patch against the commit message for revision N-1?

hmm... I also don't quite understand how the final text for the changelog group can have only a single filename if you're supposed to be able to have multiple files in one commit.  I must be missing something.

eric


More information about the Mercurial mailing list