Naive questions re hard-linking repositories

Aaron Bentley aaron at aaronbentley.com
Thu Apr 16 14:50:06 BST 2009


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

Paul Moore wrote:
> Now I want to start a new local line of development. bzr branch a b
> seems the obvious thing to do. After all, a key point of a DVCS is for
> all repositories (local or remote) to be equal, so why shouldn't I use
> the same command here? But it isn't correct (as a was cloned from
> remote and isn't in a shared repo). Rather, I have to (rather,
> "should"):
> 
> 1. Create a repo
> 2. bzr branch a into the repo
> 3. Change to use the new copy of as in the repo, rather than the one I
> was using (which may involve transferring local uncommitted changes,
> fixing up directories in scripts, etc)

You can also
1. bzr init-repo $ANCESTOR_OF_A
2. bzr reconfigure --use-shared a

This does require that $ANCESTOR_OF_A is appropriate for use as a shared
repo.

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

iEYEARECAAYFAknnN4sACgkQ0F+nu1YWqI3JZACfQK+TDC9qxtPIYiJwTT8/pCPa
UPIAniilIiJAuLFcegV5KE6RugPfrqHW
=Jalj
-----END PGP SIGNATURE-----



More information about the bazaar mailing list