merging selective changes from merge directive patch file.
John Arbash Meinel
john at arbash-meinel.com
Mon May 11 04:53:03 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote:
> 2009/4/17 Niben M Singh <niben_s at rocketmail.com>:
>> Hello All -
>>
>> I am very new to Bazaar but am very pleased with it. It's an excellent tool!
>>
>> I have a question about merging from merge directive. If your merge
>> directive contains more than one set of changes then is it possible to
>> choose only the selected change sets from it? I can see the merge history
>> but am just curious whether I can just pick selected changes from there.
>
> Yes, you can treat the merge directive just like a branch and do
>
> bzr merge -r 123 ../foo.diff
>
> (There are some bugs where they don't act precisely like branches, but
> we'll fix them eventually.)
>
Except for where the difference is explicit...
When you generate a merge directive, it implicitly defines the first
revision to be merged, so when you 'bzr merge ../foo.diff' it implicitly
sets a BASE revision, such as "bzr merge -r X..-1".
This was done so that you merge what you see, though sometimes to get
around this, you have to do:
bzr branch a b
cd b
bzr pull ../foo.diff
cd ../a
bzr merge ../b
It is rare, but I've done it several times, when the branch I was
merging into wasn't the original "target" branch. (Like someone is
targeting bzr.dev, and I'm testing it in a feature branch of mine.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoHoR8ACgkQJdeBCYSNAAO8qACfUYfLhWgeRKwPKyt35F9H1NGX
HmcAniNIRcsQC7Vf1e/+5xNS/XPns9c6
=OdFy
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list