LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2006, 08:29 AM   #1
BackwardsDown
Member
 
Registered: Nov 2005
Posts: 66

Rep: Reputation: 15
kde-svn


Hi, I am trying to understand the use of svn (subversion). I am using the hosting-service offered by google.

Now I have uploaded, edited and deleted a few files. How can I undo my edit's and restore my deleted files?

So I want to go back in time 1 or more revisions of 1 file, but I dont know how.

The manual says:

Quote:
Restoring deleted items

In subversion restoring deleted items is a copy operation of item at specific revision. So when you plan restoring view repository at revision before item was deleted. Select Subversion->Repository->Select browse revision and enter the wanted revision. Now kdesvn displays the content at this term. Mark the entry you want to restore, select Subversion->General->Copy (C). Inside the following dialog the target is always at HEAD revision, the source is at revision you selected for browsing. Fill out the path click "OK" and copy starts. After successfull copy switch browsing back to HEAD revision and the restored item should appear.
But Subversion->Repository->Select browse revision is disabled (grey)
 
Old 12-02-2006, 04:31 PM   #2
obmuc
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
not sure why that menu command isn't working for you but you can do it another way:

figure out the revision number prior to the deletion(s), browse your working copy folder in kdesvn (you don't need to browse the repository itself), and navigate to the folder containing the file you deleted.

select that folder and choose 'Subversion->Working Copy->Update to revision...' and input the revision you want to go back to. this will revert that folder back to that revision and your file(s) should reappear.

if you want to add that file(s) back into subversion you can copy it to some place safe (outside your working copy), update the folder back to the 'head' (latest revision) and then add it back into subversion in the normal way and commit it.

hope that helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
svn+ssh hgb Linux - Server 1 10-10-2006 06:35 AM
SVN Help Crobat Linux - Software 1 07-18-2006 04:56 PM
svn gaim clericvash Linux - Software 1 05-24-2006 02:21 AM
where is svn-python Ratclaws Linux - Software 0 07-22-2005 12:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration