Re: Create a copy in WC before merging
2009/12/14 SVram <malsam.v2_at_gmail.com>:
> welo-2 wrote:
>>>In my case i want to do the comparison after i update to revision 11,the
> comparison is between revision >11 and what i have changed on revision 10.
>>>So how can create a copy of this changeg file
>>>before i issue update to revision 11? i need this copy to return to it
> later if i have problems with merging.
> svn diff will do that. hav like this .
> 1.a.txt in r10,its content is "hi" in the first line and now you are adding
> "hi" in 11th line and saving that. At the same time some one modifies a.txt
> by adding "hi" in 21st line and committed that r11. (so now if any one
> checks out a.txt the contents will be "hi" in 1st line and 21st line) Your
> change will not be reflected since you dint commit.
> 2. Now you are updating that to r11 so final a.txt changes to "hi" in 1st
> line, 11th line and 21st line.
> 3. Now if you take * svn diff a.txt * it will show the diff as "hi" added in
> 11th line which is only your change. And you can redirect that to a patch.
> svn diff a.txt > a.patch.
> Note: If you had modified more than one file and you want to know your
> modifications in all the files you can just put
> *svn diff * inside that working copy.
Please read the original question again. The OP is asking for a diff
between the modified file before update and the modified file after
update. You are comparing the repository with the modified file after
update. And he is asking for a way to go back to his pre-update state
as if the merge never happened. There is no way in subversion to do
either of those things without first making a copy manually.
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-14 16:04:59 CET
This is an archived mail posted to the TortoiseSVN Users