How do I generate a full bundle?

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Tue Aug 28 07:13:03 UTC 2007


Hi list

I want to create a bundle that can be unbundled in a pristine hg
repository, like so:

  mkdir new
  cd new
  hg init
  hg unbundle ../product.hg

I did not, however, find an easy way to tell hg to include *all*
revisions. I did try

  hg bundle --base 0 ...

but then r0 is omitted. Then I tried

  hg bundle --base 0 -r0 ...

but then only r0 was included. In the end, I had to do

  hg bundle --base 0 -r0 -r1 .. -rN ...

This is OK for an initial import, but not workable once the project
starts accumulating history. So, for the moment, I reverted to

  hg init
  hg tag pristine
  hg bundle --base 0 -r0 ../product-pristine.hg

and then, when a new version is ready,

  hg bundle --base pristine ../product-<version>.hg

Meaning someone starting to use the repo has to

  hg init
  hg unbundle ../product-pristine.hg
  hg unbundle ../product-<version>.hg

== The Question ==

So: Is there a good way to create product-<version>.hg containing
*all* revisions? Now and for future releases?

== Background ==

I am trying to bring an open-source project over to hg. However, I
would like to keep this as simple as possible for the project lead -
he was bitten by a failed version control experiment already. So I
thought that uploading bundles like he currently uploads .tar.gzs
would be the easiest solution - no server-side setup needed, no
lengthy uploads of lots of single files. Any better ideas?

Thanks,
-peo



More information about the Mercurial mailing list