repository from --no-trees to having trees

Aaron Bentley aaron at aaronbentley.com
Thu May 29 23:23:06 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel wrote:
> John Prince wrote:
> | I started up a centralized repository on a computer using push command
> | with something like this:
> |
> | bzr push sftp://centralhost/srv/bzr/X-repo/X-trunk
> |
> | The repository has no trees (no files showing) and so it is effectively
> | the same as if I had made it with something like:
> |
> | bzr init-repo --no-trees sftp://centralhost/srv/bzr/X-repo/

It's true that pushing branches remotely doesn't create trees, just as
creating branches in a no-trees repository doesn't create trees by default.

However, it's relatively easy to convert a no-trees repository into one
where trees are created by default.  But pushing remotely will never
create trees, because the dumb protocols don't support enough features.

> | I actually would like the centralized repository to contain the files
> | themselves (easily accessible) so that I can scp them off.  How do I get
> | my centralized repository to have those files (i.e., trees)?

> You can do:
> 
> ~  ssh centralhost
> ~  cd /srv/bzr/X-repo
> ~  bzr co .
> 
> To create a working tree there.

More generally, `reconfigure` can convert directories into our various
shapes.  In this case, `reconfigure --tree` will work.  But in either
case, you must do this for each branch you create.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIPyzK0F+nu1YWqI0RAp4AAJwN088mQPki2lEf5m1FreppXQIgnQCfdA34
7KXKCQiap/x6ErIh2uQQ5D4=
=ct/8
-----END PGP SIGNATURE-----



More information about the bazaar mailing list