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

Re: How to take back a revision from the trunk of a working copy?

From: B. Bogart <ben_at_ekran.org>
Date: Thu, 17 Jan 2008 21:17:19 -0800

Point Taken,

I'm sending this message to clarify my solution.

So rather than removing 227, I can only see one way to get my working
copy to keep its contents and commit them as 228.

So In short I'm in 226, made some changes, and I want this to be 228.

Svn is not letting me commit due to "Out of Date" messages.

The only solution I found was to copy the changes files out of the
working copy, update to the latest revision, copy the old files back
over the current working copy and commit.

All the merge -c stuff did not solve the issue.

Thanks for your efforts.

B. Bogart

Ryan Schmidt wrote:
>
> On Jan 17, 2008, at 20:57, B. Bogart wrote:
>
>> Thanks Blair,
>>
>> I did:
>>
>> svn merge -c -227 .
>>
>> svn info says I'm still at 226
>>
>> svn commit tells me I have a file that "remains in conflict"
>>
>> So I've svn resolved those files (since I want to keep whats in my
>> working copy)
>>
>> svn commit again and!!!
>>
>> back to "svn: Out of Date" but now it says the revision is "227-1" which
>> should be 226 right??
>>
>> Feels a little cyclical now...
>>
>> I really just want to throw away 227 and commit what is in my working
>> copy as 227.
>
> You can't[1] throw away 227 and make a new 227. 227 is part of the
> repository's permanent history, as is every other committed revision.
> You can just commit a new 228 (or whatever the current HEAD+1 revision
> is) which undoes the changes of 227. This is explained in the book:
>
> http://svnbook.red-bean.com/en/1.4/svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.undo
>
>
>
> [1] Ok, so you can delete a revision, but it's an admin task, and it's
> not the proper way to use Subversion on a day-to-day basis so I'm not
> going to discuss it here.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-18 06:17:48 CET

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.