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

Re: environment variable for location of the .svn directory ?

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 23 Dec 2016 12:06:38 +0000

Andreas Krey wrote on Fri, Dec 23, 2016 at 11:56:40 +0100:
> On Fri, 23 Dec 2016 09:30:45 +0000, Stefan Sperling wrote:
> ...
> > Well, at the time the wc-ng effort was started, a centralized .svn was
> > one of the design goals. That's why the DB schema is the way it is.
>
> See, I thought, wc-ng was done, with the single .svn directory
> (modulo externals).

That was another design goal. wc-ng *already uses* one .svn dir per
working copy (modulo externals), and the schema *supports* one .svn for
multiple working copies (even of different repositories).

> Having .svn outside the worktree isn't
> relevant for me; my gripe with .svn is that the pristine
> copies aren't compressed and thus generate matches in
> 'find | xargs grep' (in the nonexistence of 'svn grep').

Some greps accept a «--exclude='*.svn-base'» option.

There's a tool called 'hidesvn' which uses LD_PRELOAD so you can do
«hidesvn grep -R foo» and it won't recurse into .svn dirs.

(You could alias grep to one of the above solutions so hidesvn or
--exclude are always used, they're both harmless when not in a working
copy.)

ag(1) and friends ignore .svn by default.

Cheers,

Daniel
Received on 2016-12-23 13:09:44 CET

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.