[issue2985] Troubles with transplanting branch to the inactive parent branch

Alexander Drozdov bugs at mercurial.selenic.com
Tue Sep 6 09:05:42 CDT 2011


New submission from Alexander Drozdov <al.drozdov at gmail.com>:

Lets create a simple repository:

mkdir rep1
cd rep1/
hg init
echo "line" > f1
hg add f1
hg commit -m "initial"

Now lets clone the reporitory and create a branch named 'b1' in it.
cd ..
hg clone rep1 rep2
cd rep2
hg branch b1
echo "line" >> f1
hg commit -m 'fix'

Now I want to transplant all of the 'b1' changes to the default branch of
the rep1 repository (WITHOUT creating 'b1' branch name). Unfortunatelly the
following command cannot do it:

hg transplant -s ../rep2 -b b1 -a

It just pulls 'b1' branch.

There is workaround. Just create an empty transplant filter say
~/empty-filter.sh and run:

hg transplant --filter ~/empty-filter.sh -s ../rep2 -b b1 -a

----------
messages: 17304
nosy: Sorcerer
priority: bug
status: unread
title: Troubles with transplanting branch to the inactive parent branch

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2985>
____________________________________________________


More information about the Mercurial-devel mailing list