HG bundle file size

Sebastian Unger sebunger44 at gmail.com
Tue Aug 5 20:02:08 UTC 2014


Hi Matt,

No, no binary files involved. I'll try the --type none when I get to work.
But I tried one other thing late last night:

When I bundle up the changesets in question one by one in individual files,
they are each only a couple hundred bytes long. Maybe a KB altogether.

One thing to note about these changesets is, that they're not related. They
are additional heads added off of historic points in the repo with fixes so
that these points can be rebuilt using a newer environment. Maybe that's a
factor here.

I'll let you know what I find with --type none in two hours give or take.

Cheers,
Seb
On 6/08/2014 7:29 am, "Matt Mackall" <mpm at selenic.com> wrote:

> On Tue, 2014-08-05 at 22:02 +1200, Sebastian Unger wrote:
> > Hi there,
> >
> > I'm not sure whether this should be directed here or the developer list.
> > Let me know if I should take this over there.
> >
> > I am a bit confused about the size of the files generated with the hg
> > bundle command. I often use those to transfer or store changesets that
> I'm
> > not prepared to push for various reasons. These files seem
> extraordinarily
> > large to me. For instance, in the case I'm looking at right now, I'm
> trying
> > to bundle up 4 changesets with a couple one-line changes each. The
> > changesets I want are in draft, everything else is public. For
> comparison I
> > also export the same changesets and pass the resulting diff through bz:
> >
> >
> >
> >
> >
> >
> >
> >
> > *seb at eragon:~/Documents/TTDE/TerminalsRoot$ hg bundle -r 'draft()'
> --base
> > 'public()' bundled.hg4 changesets
> > foundseb at eragon:~/Documents/TTDE/TerminalsRoot$ hg export -r 'draft()' |
> > bzip2 -c >bundled.diff.bz2seb at eragon:~/Documents/TTDE/TerminalsRoot$ ls
> > -ltotal 208-rw-r--r-- 1 seb users   1700 Aug  5 21:58
> > bundled.diff.bz2-rw-r--r-- 1 seb users 206878 Aug  5 21:57 bundled.hg*
> > I thought that an export stores most of the info in a bundle (So far I
> only
> > found grafts can't be imported with --exact) and in fact more than a
> bundle
> > (diffs have lots of context that is not needed in a bundle).
> >
> > Am I missing something here?
>
> Yeah, this shouldn't happen.
>
> Sure one of those "diffs" doesn't contain a line like "Binary file foo
> has changed"?
>
> If you can't share your bundle with us, you can use 'hg bundle --type
> none' to get an uncompressed bundle that you can more easily inspect
> (for instance with 'strings').
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140806/4c5f9a0c/attachment-0002.html>


More information about the Mercurial mailing list