How to get diff for local revisions and parent revisions?

Gary van der Merwe garyvdm at gmail.com
Thu Sep 16 12:39:45 BST 2010


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

On 16/09/2010 13:19, Gustavo Narea wrote:
> Hello, everyone.
> 
> I'm working on the Bazaar integration for Review Board and I need a way
> to get one diff with all the changes that happened in the local branch,
> and one diff that included both the changes in its parent(s) with
> respect to trunk and all the merges.
> 
> So, for example, "trunk" is the mainline development branch and it has
> one branch, called "child". "child" has revisions that haven't been
> merged into "trunk". Then a branch of "child" is created and it's called
> "grand-child", and more revisions are added to "grand-child". Later,
> some new revisions in "child" are merged into "grand-child". In this
> situation, I'd like to get two diffs:
> 
>     * All the changes that happened in "grand-child", excluding the
>       merges from "child".
>     * All the changes that happened in "child" and are present in
>       "grand-child", excluding revisions that haven't been merged into
>       "grand-child".
> 
> Now, I also have to consider what would happen if "trunk" had another
> descendant called "child2" and it's merged into "grand-child". In that
> case, the two diffs should be:
> 
>     * All the changes that happened in "grand-child", excluding the
>       merges from "child" and "child2".
>     * All the changes that happened in "child" and "child2", and have
>       been merged into "grand-child".
> 
> Put simply, I need to separate the changes that happened in a branch
> from the changes they depend on with respect to trunk.
> 
> How can I do this?
> 
> Thanks in advance.

bzr diff -r submit:

This requires the trunk to be set as the submit branch

Or
bzr diff -r ansestor:../trunk


Gary

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

iEYEARECAAYFAkySAgAACgkQd/3EdwGKOh0hzgCgvTkS2qJLnBgyFEPv3QYptuOB
7IQAnRILtTvxPPkwgZrqoMbGe+1y2/A8
=Jf4y
-----END PGP SIGNATURE-----



More information about the bazaar mailing list