Solved

delete .svn recursively

Posted on 2011-03-22
13
533 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:
gurvinder372 earned 144 total points
ID: 35188760
0
 

Author Comment

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

Assisted Solution

by:gurvinder372
gurvinder372 earned 144 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 72 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 71 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 213 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 213 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 213 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

696 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