LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2009, 10:00 PM   #1
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
svn restore directory to a revision also removing files not part of revision


I have files in a working copy that's just for debugging purposes; I want to see how it looks like without all those random debugging files. Is there a way to put the directory in a state like I did a fresh checkout? E.g. removing files not part of repository and so forth?

Thank you
 
Old 03-03-2009, 04:18 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
There are two ways to do this. Unless you *really* need to have the debugging directory in a clean state, the simplest is to check out a new copy of the project into a temp directory, and look at it there. You can delete the whole mess afterward, as the only information that you have a checked-out copy is kept in the directory tree of that checked-out copy.

To see what is in your debugging directory that is not part of the repository, use the command
Code:
$svn status
. This will display a (long) list of filenames preceded by various single-character symbols describing the state of those files. The ones with '?' before them are not part of the repository at all. Any with 'A' are also not part of the repository just yet, but if you commit they will be added.

Keep up the good practices; I use svn as a solo developer just so I can keep track of what I have released to clients, and can recover from my own bonehead errors.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux Revision Thread. rvijay Linux - General 5 12-01-2005 02:35 AM
Router revision DaBlade Linux - Hardware 3 10-31-2005 08:35 AM
cvs revision problem leonidg Linux - Software 4 02-28-2005 03:36 AM
LPIC1 revision tip iainr Linux - Certification 2 04-22-2004 03:02 AM
PCI revision 2.2 problem nathan_levy Linux - Hardware 0 04-12-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 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