tailor for 0.8

Aaron Bentley aaron.bentley at utoronto.ca
Fri Mar 31 18:51:28 BST 2006


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

Lalo Martins wrote:
> I have a mostly-working patch for tailor to use the 0.8 API, but I'm a
> bit stuck on the _applyChangeset method.  If anyone has any light to
> shed on it, I'd appreciate it; the merge API changed more than I can
> follow.  Also, if I did anything less than optimally, this is the time
> to point at it and laugh^Wcorrect me.
> 
> I'm attaching the `darcs send` thingie.  If someone prefers a more
> standard `diff -u` file, just poke me here or on irc.

It depends what you want to do, of course.  transform_tree will turn a
tree into a target tree.  Applying a changeset isn't necessary to
accomplish this.

If you want to apply the changes from rev A to rev B to tree C, you can do

a = repository.revision_tree('A')
b = repository.revision_tree('B')
merge_inner(this_branch, b, a, this_tree=c)

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

iD8DBQFELWwg0F+nu1YWqI0RAkIdAJ0Tgt+1ZrRf9yPFzS0gwWg/xPO2QgCaA1C7
ZEmXaVdGkM7hse8jUEiNz4g=
=EdGJ
-----END PGP SIGNATURE-----




More information about the bazaar mailing list