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

Re: Visual Studio.Net and Subversion - Will this make it into a release?

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2004-03-08 15:04:16 CET

Garrett Rooney wrote:
> If it becomes a priority to someone, and
> they produce a patch that solves the problem in a way that the
> developers think is reasonable, I don't see why it wouldn't be
> committed, but so far that hasn't happened.

--- beware, untested code ahead ---

// svn_wc.h
#define SVN_WC_ADM_DIR_NAME svn_wc_adm_subdir()
char const* svn_wc_adm_subdir();

// adm_files.c
char const* svn_wc_adm_subdir()
{
  // default admin dir
  char const* dotsvn = ".svn";

  // cache value in a static to prevent multiple calls to getenv()
  static char const* adm_subdir = 0;
  if(!adm_subdir)
  {
    // check environment for an override of the admindir
    char const* env = getenv("SVN_WC_ADM_DIR_NAME");
    adm_subdir = env?env:dotsvn;
  }

  assert(adm_subdir);
  return adm_subdir;
}

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 8 15:04:56 2004

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.