Repositories inside repositories
Ben Finney
bignose+hates-spam at benfinney.id.au
Mon Sep 4 02:45:43 BST 2006
Ben Finney <ben at benfinney.id.au> writes:
> Even if the remote location were a repository, simply copying a
> directory tree into it does not cause its version information to
> become consistent.
[...]
> So perhaps what's needed here is a way to tell bzr to update a
> repository so that its version information is normalised with all
> the branches to be found in subdirectories.
Another use case:
- Create general repository for users
$ bzr init-repository /srv/bzr/
- Users create their own subdirectory, and branches within
$ mkdir /srv/bzr/bignose/
$ bzr init /srv/bzr/bignose/documents.final/
- Create repository for project foo, with many branches
$ bzr init-repository ~/Projects/foo/
$ bzr init ~/Projects/foo/foo.dev/
$ cd ~/Projects/foo/foo.dev/
$ # hack hack
$ bzr commit
$ bzr branch ../foo.feature-x/
$ bzr branch ../foo.feature-y/
- Decide that project foo now belongs as part of general repo
$ mv ~/Projects/foo/ /srv/bzr/foo
- Update parent repository with newly-acquired branches
$ bzr update-repository /srv/bzr/
> [please don't send me copies of followups, I read via NNTP]
[this means: please post discussion followups to the forum, not me]
--
\ "[...] a Microsoft Certified System Engineer is to information |
`\ technology as a McDonalds Certified Food Specialist is to the |
_o__) culinary arts." -- Michael Bacarella |
Ben Finney
More information about the bazaar
mailing list