RE: SV: Can't get merge to work as suggested
From: Leeuw van der, Tim <tim.leeuwvander_at_nl.unisys.com>
Date: 2003-09-03 15:28:43 CEST
Hi Tomas,
What you do is: see what's different between branch and trunk, and apply
What you want to do with merge is: see what's changed on the branch, and
How do you know what's changed on the branch? Check at what point (what
To see what work was done on the branch, that needs to be merged, do
svn diff -r 50:53 c:\svn_repository\projekt_A\branches\branch1\
To do the merge, you do something similar:
svn merge -r 50:53 c:\svn_repository\projekt_A\branches\branch1\ [path to
Hope this helps!
Regards,
--Tim
-----Original Message-----
Hi Tim!!
I try to merge the branch back to the trunk. I have not been able to get
These are the files:
1. The trunk file. currently at rev 59
Rad 1 - Changed
2. The branch file. Currently at rev 53
Rad 1
First I tried a diff command:
svn diff c:\svn_repository\projekt_A\trunk\Radtest.txt@59
I then get the response:
Index: Radtest.txt
As far as I can understand this is a correct diff response. It took me some
Now I do a merge based on the diff command with current directory set to my
svn merge c:\svn_repository\projekt_A\trunk\Radtest.txt@59
Now the response is:
U Radtest.txt
I open the file in the current working directory and the contents are:
Rad 1
In fact, the contents of the branch file.
Does this give you any clues? I wonder if I should learn more about diff and
Regards,
-----Ursprungligt meddelande-----
Hiya,
Can you show us the exact commands which you are issueing?
I recall having some similar problems, which were due to TSVN giving the
There are 2 forms of using svn merge - I think that whichever form you're
I *think* that what's happening, guessing from my own experience, is that
So you're not merging the changes between trunk-at-head and branch-at-head.
I hope you follow me - I can't find an easy way to explain it.
With regards,
--Tim
-----Original Message-----
Hi!!
Testing out the merge function to learn how it works. I have created a trunk
When I try to merge the branch into the trunk it is replaced by the contents
A diff on these two files show all differences as it should.
Feel a bit embaressed not being able to figure this out... As far as I can
Everything runs on my local computer, SVN-0.27 is used.
Regards
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.