Patch with hg that includes binary?

Andrew Robinson andrew.rw.robinson at gmail.com
Wed Dec 20 23:24:25 UTC 2006


I have two unrelated HG repositories (actually represent CVS branches
that I use HG locally to track).

I have fixed a bug with 1 or more revisions in one repository and want
to move it to the other repository. Example:

5.0.1-branch-CVS
trunk-CVS

I have been using:

(cd 5.0.1-branch-CVS; hg export -r 50) | (cd trunk-CVS; hg import -)

Which works fine except that it doesn't pull binary changes/files

The hg bundle --base doesn't work as it then wants to find the parent
revision of #50 in the other. Something like this fails:

"hg bundle -f --base 49 -r 50"

How can I "push" a patch (only the changes in certain revisions and
ignore everything that happened before those revisions) from one repo
to another unrelated one?

for example maybe something like:

(cd 5.0.1-branch-CVS; hg push -f -r 50:54 ../trunk-CVS)

and have it *ONLY* move the changes in 50, 51, 52, 53 and 54 and do
nothing with any other changes?

Thanks
Andrew

PS - please reply to this address as well as the list



More information about the Mercurial mailing list