Bug 2797 - 'hg pull' should warn if 'hg unbundle' would have been better
Summary: 'hg pull' should warn if 'hg unbundle' would have been better
Status: RESOLVED ARCHIVED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal feature
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 12:48 UTC by Jonathan Watt
Modified: 2014-07-31 13:22 UTC (History)
6 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Watt 2011-05-05 12:48 UTC
Mozilla makes the following bundle available:

http://ftp.mozilla.org/pub/mozilla.org/firefox/bundles/mozilla-central.hg

I recently discovered that the .hg directory created from this bundle is
much larger than the .hg directory created by a pull directly from
mozilla-central; 1.9 GB in the case of the former, 670 MB in the case of the
latter!!

It turns out this problem only happens when using the pull command
(unbundling using the clone or the unbundle commands work fine). It seems
that in my case the pull command left a 1.3 GB file at
.hg/hg-bundle-ttt7I7.hg10un which seems to be the only issue.

I'm currently using Mercurial 1.8.2.
Comment 1 Benoit Boissinot 2011-05-05 15:23 UTC
Bundle are not real repo, please use unbundle to unbundle a bundle (using 
pull is really really less efficient).
Comment 2 Martin Geisler 2011-05-06 10:10 UTC
That surprises me a little -- maybe we should output a warning if 'hg pull'
is used to pull in all changesets in a bundle. Or even better: detect this
and use 'hg unbundle' automatically.
Comment 3 Benoit Boissinot 2011-05-06 14:36 UTC
Then please rephrase the bug and change priority. bundlerepo is still pretty 
much a hack right now and it's main use is incoming with remote repos.
Comment 4 Martin Geisler 2011-05-07 06:40 UTC
A 'hg pull' can create a much bigger repository than 'hg unbundle', so it
would be nice if 'hg pull' would automatically switch to 'hg unbundle' or at
least warn the user.
Comment 5 Bugzilla 2012-05-12 09:19 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:19 EDT  ---

This bug was previously known as _bug_ 2797 at http://mercurial.selenic.com/bts/issue2797
Comment 6 Matt Mackall 2014-07-25 17:22 UTC
Bulk close: no activity for >2 years -> WONTFIX
Comment 7 Matt Mackall 2014-07-31 13:22 UTC
Bulk change recent WONTFIX -> new, more descriptive ARCHIVED state (sorry for the spam)