Solved

delete .svn recursively

Posted on 2011-03-22
13
523 Views
Last Modified: 2012-05-11
I check out a project, I copy it and I am going to delete .svn. In every directory, I have .svn file. May I use one command to delete all of them recursively (In sub directory also).

0
Comment
Question by:JianJunShen
  • 4
  • 3
  • 2
  • +3
13 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 144 total points
Comment Utility
0
 

Author Comment

by:JianJunShen
Comment Utility
sorry, I am using windows.
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 144 total points
Comment Utility
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
In what OS?
0
 
LVL 4

Assisted Solution

by:m_walker
m_walker earned 72 total points
Comment Utility
Using windows explorer, search for all *.svn files starting at your top folder.

Then Select and delete all the files that the searh finds.

or from dos, you can try

del /s *.svn
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
Comment Utility
if you delete .svn then you cant  check in the code....

that  wil not effect your code while your import to any Workspeace in  IDE ?

Then may i know the reason why your deleting ??


Ok do like this go t that particular folder press  windows + F3 then search .svn file it will search that particular folder only ! so it will show all .svn file then ctrl + A  then delete !  
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Why do you want to delete them?
0
 

Author Comment

by:JianJunShen
Comment Utility
I already found a script by myself. tomorrow I will post them.

The reason why I want to delete .svn.

The reason might sounds strange, I make a application, but I could not do branch or tag for some particular reason. But I could check in new project files. Since it is not a big project, it has a couple of branch only. So I copy the source code directory,  rename and check in again as another project. So I need to delete this old .svn. That's it.  
0
 
LVL 92

Assisted Solution

by:objects
objects earned 71 total points
Comment Utility
you don't need a script, just use file search to find files name .svn and then delete them

0
 
LVL 20

Assisted Solution

by:Sathish David Kumar N
Sathish David  Kumar N earned 213 total points
Comment Utility
Ok go ur  project folder right click)

ToritiseSVN   ------> export ----- > omit externals (check boxs select ) place to export then you can see that exported file will not have .SVN !
0
 
LVL 20

Assisted Solution

by:Sathish David Kumar N
Sathish David  Kumar N earned 213 total points
Comment Utility
if you not found that in menu means go to

ToritiseSVN  ------>setting--->general----> context menu ---->select exported check box then cilck ok now ur menu have export option !!
0
 
LVL 20

Assisted Solution

by:Sathish David Kumar N
Sathish David  Kumar N earned 213 total points
Comment Utility
Or while ur check out check click omit externals check box !
0
 

Author Comment

by:JianJunShen
Comment Utility
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"


Make above as a bat file, run it. Then ok.

Anyway, there are so many good answer/alternatives here also.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now