[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: problem in svn switch on a text file

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 24 Sep 2008 17:39:55 -0500

On Sep 24, 2008, at 17:28, N D wrote:

> On Wed, Sep 24, 2008 at 9:34 PM, Ryan Schmidt wrote:
>
>> On Sep 24, 2008, at 10:59, N D wrote:
>>
>>> In my code I have a txt file where i store a version number. This
>>> file is called version.txt
>>>
>>> Now if my working copy is from TRUNK, and I switch it to some
>>> branch, all the stuff from the branch is taken into the working copy
>>>
>>> properly, with proper message alphabets D, A, U etc. But for the
>>> version.txt file, I get a C, C = Conflict. The file in my working
>>> copy is contaminated something like:
>>>
>>> <<<<<<< .mine
>>> rev_num0=======
>>> rev_num1>>>>>>> .r<rev_num1>
>>>
>>> and files by the name version.txt.2.r<rev_num1>,
>>> version.txt.mine, version.txt.r<rev_num1> are created in the
>>> directory. FRom the testing so far, such files will not allow me
>>> to commit the working copy into svn.
>>>
>>> But the above problem does not happen frequently. IT happens
>>> sometimes. Has this anything to do with SVN treating text files
>>> as binary files?
>>>
>>> Can anyone please help/comment?
>>
>> A conflict occurred. You had locally changed version.txt, then
>> switched to a branch where version.txt contained a different
>> change on the exact same line where you had previously made a
>> change. You must now resolve the conflict by editing version.txt
>> and making the file look correct, for whatever your definition of
>> correct is. Then run "svn resolved version.txt" to tell Subversion
>> you have resolved the conflict.
>>
>> You can read about conflicts in the book:
>>
>> http://svnbook.red-bean.com/en/1.5/
>> svn.tour.cycle.html#svn.tour.cycle.resolve
>
> I do not manually change the version.txt file. the only way it
> changes is thru the build script that runs. but some times it get
> conflicted, i do no understand when and how, and why only version.txt
>
> yes, the number is present on the same line

Please reply to all, not just to me, so the discussion can continue
to take place on the mailing list.

As far as I know, the only way you can have gotten a conflict is for
you to have had local changes in the file when doing the switch.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-25 00:40:18 CEST

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.