bzrtools- cbranch sets parent
Aaron Bentley
aaron.bentley at utoronto.ca
Fri Jul 21 15:19:03 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
> I've started using 'bzr cbranch' as a nice way of creating feature
> branches for development.
>
> I've found it really is easier to use, rather than typing all of the
> commands by hand.
I'm glad you like.
> But the one thing it was missing was the ability to
> set the default 'bzr bundle' base.
Oh, you're using cbranch with heavyweight checkouts? This isn't
something I've tried.
> The attached patch updates 'cbranch' so that after branching it sets the
> submit location to the branch we came from. (arguably it could set
> parent instead of submit location, either one works for my use case)
I would rather set the parent, because if we set the submit location,
that means 'bundle' won't auto-remember the first submit location we
specify.
> cd features
> bzr cbranch ../bzr.dev feature-foo
> cd feature-foo
> hack hack
> bzr commit -m 'added feature foo'
> bzr bundle > feature-foo.patch
>
> And submit it to the mailing list. Overall, a lot less typing of urls.
Always a good thing.
@@ -31,3 +32,5 @@
b_loc = pathjoin(b_root, basename(to_location))
cmd_branch().run(from_location, b_loc, revision=revision)
cmd_checkout().run(b_loc, to_location, lightweight=lightweight)
+ b = Branch.open(to_location)
+ b.set_submit_location(from_location)
Should we be canonicalizing from_location?
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEwOJX0F+nu1YWqI0RAnH9AJ9FO/f86xnrgHxQ1DgCdxuU0vnmwgCZAQs7
hTuYPUZnITge9n7RcJyceOc=
=S6RP
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list