Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create bundle files using "hg bundle" with every bundle-file size not exceeding say 1GB

I have a huge mercurial repository which is around 12GB. I need to clone it in another machine but pulling it from the network takes lot of hours. When I try to bundle all the changesets in to one bundle file the size of file is creating problems for the work environment I am working on.

I was wondering if there is a way to create small bundles seperately and then unbundle them in another machine?

like image 613
Naveen Gara Avatar asked Oct 21 '25 14:10

Naveen Gara


1 Answers

hg help bundle tells you that you can specify the changesets to include in a bundle as well as a base revision to consider. Combining these two, you can create a set of smaller bundles from your repository, up to the extend to exporting each revision as a separate bundle with the preceeding one indicated as the base rev considered already present:

 -r --rev REV [+]       a changeset intended to be added to the destination
 -b --branch BRANCH [+] a specific branch you would like to bundle
    --base REV [+]      a base changeset assumed to be available at the
                        destination
 -a --all               bundle all changesets in the repository
 -t --type TYPE         bundle compression type to use (default: bzip2)
like image 175
planetmaker Avatar answered Oct 23 '25 08:10

planetmaker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!