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

A proposed solution for svn admin directory names

From: Jonathan Malek <jonathan.malek_at_gmail.com>
Date: 2005-06-24 21:03:53 CEST

I know there is quite a bit of resistance to dealing with the issue of
.svn vs. _svn (or really any other name) as admin directory names,
especially given the presence of other work-arounds, but it still
continues to present a roadblock to some of us (especially those who
have to deal with contractors and developers while also maintaining a
decent automated build environment).

So while running my usual recompile to create modified executables
that support "_svn", I decided to try something different. I am
aiming for something that doesn't change the way the vast majority of
SVN users work, but allows the poor fellow who really needs "_svn" to
continue to work.

Instead of changing svn_wc.h with the usual:

#define SVN_WC_ADM_DIR_NAME ".svn"

I decided to fetch the dirname from the environment:

#define SVN_WC_ADM_DIR_NAME ( ( getenv( "SVN_ADM_DIR") ) ? ( getenv(
"SVN_ADM_DIR") ) : (".svn") )

This works just fine for anyone who hasn't set the environment
variable, but allows the rest of us to change it without recompiling.
I'm sure some other devs can come up with better suggestions, but--how
about it?

Thanks,
Jonathan Malek

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 24 21:08:19 2005

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