what to use to replace bzrlib.changeset?

Jamie Wilkinson jaq at spacepants.org
Mon Mar 6 23:40:33 GMT 2006


This one time, at band camp, Aaron Bentley wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Jamie Wilkinson wrote:
>> What's the new API equivalent of bzrlib.changeset.Changeset?  My graft
>> plugin relied on generate_changeset and apply_changeset, and they're now
>> gone.  I require some method of describing the difference between revisions
>> in a changeset-like way.
>
>The TreeTransform is the closest thing to that.  It allows you to
>describe changes to apply to a WorkingTree.

Ok, thanks.

>However, I suspect your use case is best handled with merge, which
>compares two revisions, and applies new changes to a third.

The problem I had using the merge code last time is that it expected that
both the merge source and destination branches had a common ancestor -- the
point of graft is that your branches *aren't* related in the bzr metadata,
but the operator knows that they are.  Otherwise I would have just used 'bzr
merge' :-)

>What are you doing?

http://spacepants.org/src/bzrgraft/




More information about the bazaar mailing list