You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Masud Hamidi <mh...@becom.de> on 2005/02/17 14:01:01 UTC

Subversion .svn directories

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:
- searching files (with grep or find) does also find the files in the 
.svn directories
- when making tarballs or thelike, the .svn directories are included

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.

I have something in mind that could solve these problems, but it would be
a design change:
One could reduce the number of .svn directories to one per working copy,
sitting on it's root. It could have all the information of the .svn 
directories in
a single .svn directory. The svn command is able to find the repository 
information
of the current direcory by looking for the .svn directory in the current 
directory first,
and then in each of it's parent directories, until it finds it or it 
reaches the file system
root.

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

Ciao, Masud


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion .svn directories

Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 17, 2005, at 8:01 AM, Masud Hamidi wrote:
>
> I have something in mind that could solve these problems, but it would 
> be
> a design change:
> One could reduce the number of .svn directories to one per working 
> copy,
> sitting on it's root. It could have all the information of the .svn 
> directories in
> a single .svn directory. The svn command is able to find the 
> repository information
> of the current direcory by looking for the .svn directory in the 
> current directory first,
> and then in each of it's parent directories, until it finds it or it 
> reaches the file system
> root.

This has been discussed endlessly on the dev@ list in the past.  It 
would require a complete rewrite of the client (libsvn_wc)... so 
probably not till at least svn 2.0.  See issues 525 and 908, among 
others.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion .svn directories

Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2005-02-17 23:06:49 -0500, Christopher Ness wrote:
> [nesscg@heidrun submission]$ grep -R --exclude *.svn* "\CN" .

One can also use Ben Reser's wcgrep script.

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Subversion .svn directories

Posted by Christopher Ness <ch...@nesser.org>.
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/basestation/2.1.1.tex:\begin{module}{2.1.1}{Configure}{\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.}
./mid.tex:\newcommand{\CN}{C.~Ness}
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.

8-<

> 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
problems.  

Cheers,
Chris
-- 
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 
http://www.fsf.org/philosophy/no-word-attachments.html

Re: Subversion .svn directories

Posted by Tom Mornini <tm...@infomania.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Check out SVK.

http://svk.elixus.org/

On Feb 17, 2005, at 6:01 AM, Masud Hamidi wrote:

> The fact that it stores copies of each file in a .svn directory causes
> side effects that are hard to handle:
> - searching files (with grep or find) does also find the files in the 
> .svn directories
> - when making tarballs or thelike, the .svn directories are included
>
> 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.

- -- 
- -- Tom Mornini

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCFYAfzaKkuvKwKvcRApsmAKCqeZHAdwStDVUoyAnVIuiBM9EduACfWhVh
CkhfMpJBHcU/trnZxSikAGI=
=m+hj
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org