?
Solved

delete .svn recursively

Posted on 2011-03-22
13
Medium Priority
?
534 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +3
13 Comments
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 576 total points
ID: 35188760
0
 

Author Comment

by:JianJunShen
ID: 35188790
sorry, I am using windows.
0
 
LVL 40

Assisted Solution

by:Gurvinder Pal Singh
Gurvinder Pal Singh earned 576 total points
ID: 35188809
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:CEHJ
ID: 35188828
In what OS?
0
 
LVL 4

Assisted Solution

by:m_walker
m_walker earned 288 total points
ID: 35188852
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
ID: 35190848
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 35191149
Why do you want to delete them?
0
 

Author Comment

by:JianJunShen
ID: 35193163
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 284 total points
ID: 35194960
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 852 total points
ID: 35196136
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 852 total points
ID: 35196143
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 852 total points
ID: 35196354
Or while ur check out check click omit externals check box !
0
 

Author Comment

by:JianJunShen
ID: 35196502
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 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