You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anto Marky <ma...@gmail.com> on 2009/08/18 16:12:23 UTC
svn revert question
Hi,
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.
Thanks and Regards
Marky
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384826
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn revert question
Posted by Hari Kodungallur <hk...@gmail.com>.
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 <ma...@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@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@subversion.tigris.org].
Re: svn revert question
Posted by Anto Marky <ma...@gmail.com>.
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@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=2384856
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn revert question
Posted by Ryan Schmidt <su...@ryandesign.com>.
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=2384849
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn revert question
Posted by Anto Marky <ma...@gmail.com>.
Hi Ryan,
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?
Thanks and Regards
Martin.M
On Tue, Aug 18, 2009 at 9:54 PM, Ryan Schmidt <
subversion-2009b@ryandesign.com> 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.
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384839
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn revert question
Posted by Ryan Schmidt <su...@ryandesign.com>.
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.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384832
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: svn revert question
Posted by Tony Sweeney <ts...@omnifone.com>.
________________________________
From: Anto Marky [mailto:markysvn@gmail.com]
Sent: 18 August 2009 17:12
To: users@subversion.tigris.org
Subject: svn revert question
Hi,
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.
'svn revert' has a very specific meaning; it undoes local
modifications and replaces them with pristine copies from the .svn
directories in your workspace. That isn't what you need in this
instance. What you need to do is simply 'svn update' back to the
revision number or point in time of your testing server before the
ill-advised 'svn update' to HEAD.
Tony.
Thanks and Regards
Marky
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security
System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384833
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].