[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion .svn directories

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-02-18 05:06:49 CET

On Thu, 2005-17-02 at 15:01 +0100, Masud Hamidi wrote:
> Hello,
> I'm using Subversion for a while, and before that I used CVS.
> Subversion is great in many areas, but it has an unnessassary limitation.
> The fact that it stores copies of each file in a .svn directory causes
> side effects that are hard to handle:

grep and tar have --exclude flags.

> - searching files (with grep or find) does also find the files in the
> .svn directories

[nesscg@heidrun submission]$ ls -la | grep .svn
drwxrwxr-x 7 nesscg nesscg 4096 Feb 16 11:13 .svn

[nesscg@heidrun submission]$ grep -R --exclude *.svn* "\CN" .
./include/basestation/3.2.tex: \modReviewedBy{\CN}{15--2--05}{r324}
./include/basestation/2.1.5.tex:\begin{module}{2.1.5}{Output File}{\CN}
./include/template.tex: \modReviewedBy{\CN}{9--2--05}{r282}
./include/template.tex: {I agree with \CN~and have filed bug 12 in the
defect tracker for this issue.}
Binary file ./mid_prettyprint.pdf matches

> - when making tarballs or thelike, the .svn directories are included

   tar --exclude .svn -czf ~/project-tags.tar.gz ~/repos/tags/

> One can workaround that in some cases by filtering, but sometimes you
> first need
> to "svn export" first. By searching for a solution I found many people
> having
> similar problems.


> Is there a way to do it like this?
> Or are there reasons that speak against my proposal?

I don't know, but these should be good workarounds for your specific


Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
22:55:29 up 1 day, 6:48, 4 users, load average: 0.38, 0.15, 0.11 

Received on Fri Feb 18 05:10:17 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.