bundle->patch

Matt Mackall mpm at selenic.com
Wed May 18 21:36:39 UTC 2011


On Wed, 2011-05-18 at 21:04 +0000, Haszlakiewicz, Eric wrote:
> > -----Original Message-----
> > From: mercurial-bounces at selenic.com [mailto:mercurial-
> > 
> > On Tue, 2011-05-17 at 17:20 -0400, Sam Steingold wrote:
> > > is there a way to extract information from a bundle?
> > > e.g., convert it to a patch, find out the changelog...
> > > thanks!
> > 
> > If and only if you have a repo it applies to. Then you can do:
> > 
> > hg -R bundle.hg <any command>
> > 
> > ..which will act as if the bundle had been unbundled.
> 
> Theoretically you should be able to get at least the changelog
> information (commit message, user, etc...) out w/o having the
> repository,

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.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list