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

Re: svn revert question

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Tue, 18 Aug 2009 11:20:04 -0700

AFAIK, svn up -r '{date}' will actually update it to the latest revision as
of that date. It is equivalent to svn up -r <rev> where <rev> is the latest
rev for that date.
http://svnbook.red-bean.com/en/1.5/svn.tour.revs.specifiers.html#svn.tour.revs.dates

If you had different files at different revisions, then you might want to
update them individually (as per Ryan's example to update a particular
file).

-Hari

On Tue, Aug 18, 2009 at 10:04 AM, Anto Marky <markysvn_at_gmail.com> wrote:

> Hi Ryan/ Tony,
>
> Thanks for your help, svn up -r '{date}' worked.
>
> Thanks and Regards
> Marky
>
>
> On Tue, Aug 18, 2009 at 10:17 PM, Ryan Schmidt <
> subversion-2009b_at_ryandesign.com> wrote:
>
>> On Aug 18, 2009, at 11:33, Anto Marky wrote:
>>
>> On Tue, Aug 18, 2009 at 9:54 PM, Ryan Schmidt wrote:
>>>
>>> On Aug 18, 2009, at 11:12, Anto Marky wrote:
>>>>
>>>> I am new to SVN, one of my user has mistakenly updated my testing
>>>>> server using svn update from the root directory. It has added, updated and
>>>>> deleted a lot of files which are not supposed to be, Is there any way I can
>>>>> revert back to the previous state? Its an emergency, any help would be
>>>>> appreciated.
>>>>>
>>>>
>>>> Yes:
>>>>
>>>> svn up -r X
>>>>
>>>> where X is the older revision you want to go back to.
>>>>
>>>
>>> The files of the previous state were not of the same revision, each one
>>> had a different revision as the files were updated individually with
>>> different revision number. Is there any way I can use the svn switch to a
>>> previous date using the svn switch '{' DATE '}' commanks and?
>>>
>>
>> Yes, Subversion accepts a date anywhere it accepts a revision. So e.g.:
>>
>> svn up -r '{2009-08-15}'
>>
>> You can also update individual items to specific revisions or dates if
>> desired:
>>
>> svn up -r '{2009-08-15}' path/to/some/file.txt
>>
>>
>>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384876

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-18 20:20:53 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.