Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

delete .svn recursively

Posted on 2011-03-22
13
Medium Priority
?
536 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
Technology Partners: 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

604 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