Specifying a repository when creating a branch
Aaron Bentley
aaron.bentley at utoronto.ca
Sat Mar 11 07:10:18 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Blackwell wrote:
| On Sat, Mar 11, 2006 at 01:38:48AM -0500, Aaron Bentley wrote:
|
|>I've already said (on IRC) that I'd like the option of specifying a
|>particular repository, in the BzrDir API, when creating a branch.
|>Because I knew which repository it should use, and using anything else
|>wouldn't be desirable.
|>
|>Now, I've found another reason. The created branch would have my
|>specified repository object, so you could lock the repository before
|>creating a branch in it. That would be beneficial for baz-import,
|>because you could hold the repo lock from beginning to end.
|
|
| I'm just syncing on the your underlying drive. We'll have two modes of
| operation, correct?
|
| 1. By default, use the closest repository in a higher dir
| 2. Overriding this behaviour by specificying a particular repository.
No. This is an API thing. When you create your branch, you can specify
a repository. If the specified repository isn't the closest repository
in a higher dir, the branch creation operation fails. Otherwise it
returns a Branch object whose Repository is the one you supplied.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEEnfa0F+nu1YWqI0RAik3AJ9/Bwvh44UeIUdreM8qRh6r3KmINgCeJhwY
+1XvguKc6MQZb6QWwdiQKLc=
=UEUb
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list