How To Clean Subversion Directories Come pulire la sovversione directory
When you checkout a repository from subversion it creates a .svn directory (with subdirectories) for every directory (and subdirectory) checked out. Quando si checkout da un repository sovversione crea un. Svn directory (con le sottodirectory) per ogni directory (e sottodirectory) verificati. The .svn directory contains information about the repository and files in the directory and allows you to run svn commands without having to authenticate yourself in future. Il. Svn directory contiene informazioni circa il repository e file nella directory e vi permette di eseguire comandi svn senza dover autenticare te in futuro. However when you want to package the source code it becomes painful to remove them by hand. Tuttavia quando si desidera pacchetto il codice sorgente diventa doloroso per rimuoverli a mano. You can either use a build tool like ant and exclude the .svn directories or you can use my code to clean the directory of .svn junk. È possibile utilizzare uno strumento come costruire ed escludere ant. Svn directory o è possibile utilizzare il mio codice per pulire la directory. Svn spazzatura.
Download Scaricare SVNClean here SVNClean qui .
Usage: Utilizzo:
java SVNClean [list of files or directories] java SVNClean [elenco di file o directory]
The code runs on any java supported platform (tested on windows and linux). Il codice viene eseguito su qualsiasi piattaforma supportata java (testato su Windows e Linux).
Use at your own risk. Utilizzare a proprio rischio e pericolo. No warranty, implied or otherwise, is provided. Non rilascia alcuna garanzia, implicita o esplicita, è fornito.
Filed under Elencato sotto Headline News Headline News , How To Come , Java Software Software Java , Tech Note Nota tech , Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |





































June 16th, 2006 at 11:27 am 16 giugno 2006 alle 11:27
’svn export’ is your friend. 'Svn esportazione' è il tuo amico.
June 16th, 2006 at 12:50 pm 16 giugno 2006 a 12:50 pm
Or, if you have O, se si dispone di rsync you can to this… si può a questo…
rsync -C /path/to/source/ /path/to/destrsync-C / path / to / source / / path / to / destinazioneThe -C option excludes .svn directories on a copy. L'opzione-c esclude. Svn directory su una copia.
June 18th, 2006 at 12:26 pm 18 giugno 2006 a 12:26 pm
Thanks for the tips. Grazie per i suggerimenti.
September 16th, 2006 at 3:17 pm 16 settembre 2006 a 3:17 pm
That java prog didn’t work for me, and I was too lazy to whip up a script. Prog java che non ha funzionato per me, ed ero troppo pigro frusta fino a uno script. Neither did that rsync script. Né che rsync script. So, I created local svn repo and used import/export. Così, ho creato locali repo svn e utilizzati di import / export.
% svnadmin create /tmp % Svnadmin creare / tmp
% svn import . SVN% di importazione. file:////tmp tmp file :////
% svn export file:////tmp % Svn file di esportazione ://// tmp
March 6th, 2007 at 11:07 pm 6 marzo 2007 a 11:07 pm
If you prefer an Ant-based solution to deleting hidden/read-only work directories, the ‘defaultexcludes’ option is your friend. Se si preferisce una formica soluzione basata su di eliminazione di nascosto / read-only directory di lavoro, l ' «defaultexcludes' è il tuo amico.
March 6th, 2007 at 11:19 pm 6 marzo 2007 a 11:19 pm
Hm, that nuked my build.xml target tags, try this version… Hm, che nuked build.xml il mio obiettivo tag, provare questa versione…
<target name=”clean-environment” depends=”clean-gen” <target name = "pulite-ambiente" dipende = "puliti-gen"
description=”Clean all Eclipse/Subversion environment files and directories”> descrizione = "Pulizia tutti i Eclipse / sovversione ambiente file e directory">
<delete includeemptydirs=”true” failonerror=”false”> <delete includeemptydirs="true" failonerror="false">
<fileset dir=”${basedir}” defaultexcludes=”no”> <fileset dir="${basedir}" defaultexcludes="no">
<include name=”**/.svn/**” /> <include name="**/.svn/**" />
<include name=”**/.settings/**” /> <include name="**/.settings/**" />
<include name=”**/.classpath” /> <include name="**/.classpath" />
<include name=”**/.project” /> <include name="**/.project" />
<include name=”**/.tomcatplugin” /> <include name="**/.tomcatplugin" />
</fileset> </ fileset>
</delete> </ cancella>
</target> </ target>
August 2nd, 2007 at 1:51 pm Ago 2, 2007 at 1:51 pm
This worked fine for me and was exactly what I wanted. Questo lavorato bene e per me è stato esattamente quello che volevo. I simply wanted to remove all the Subversion artifacts from a directory structure without having to actually have Subversion loaded or creating a bogus Ant target. Volevo solo la rimozione di tutti i sovversione artefatti da una struttura di directory senza dover effettivamente hanno caricato la sovversione o la creazione di un falso bersaglio Ant. This did the trick as expected. Questo ha fatto il trucco come previsto.
Thanks! Grazie!
April 1st, 2008 at 7:15 am 1 ° aprile 2008, 7:15 am
Change to root directory folder and type: A cambiare directory root cartella e digitare:
find . trovare. -type d -name .svn -exec rm {} -R \; - d-tipo nome. svn-exec rm ()-R \;
Just for linux! Solo per Linux!