[jbosstools-dev] A tip: How to speed up SVN updates
Yahor Radtsevich
yradtsevich at exadel.com
Tue May 4 05:01:12 EDT 2010
Hi All,
If you, like me, are annoyed by looooong time of trunk updates, there is a
SVN feature to skip directories you do not use. This feature is called 'Sparse
Directories<http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html>
'.
For example, to delete directory 'documentation' from your local copy of
trunk permanently, use the following command:
*svn update --set-depth empty documentation*
After this command, the documentation directory will be skipped during
further updates and switches. (To restore it back, use *--set-depth infinity
*).
Windows users may use the following batch-script to delete all documentationand
*\docs directories at once (just save as deletedocs.bat and run from trunk
directory):
@echo DELETING OF documentation...
svn update --set-depth empty documentation
@echo DELETING OF *\docs:
@FOR /f %%d IN ('dir /b /a:d') DO (
@IF EXIST %%d\docs\.svn (
@echo DELETING OF %%d\docs...
svn update --set-depth empty %%d\docs
)
)
Best Regards,
Yahor Radtsevich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20100504/3948c676/attachment-0001.html
More information about the jbosstools-dev
mailing list