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

Re: query for the root of the working directory?

From: Paul Koning <pkoning_at_equallogic.com>
Date: 2006-01-11 19:45:58 CET

>>>>> "Nathan" == Nathan Lewis <Nathan.Lewis@bbc.co.uk> writes:

 Nathan> Hi Everyone,

 Nathan> Is there a way in subversion to get the root of the working
 Nathan> copy? I am seeking to write a pre-commit hook that runs tests
 Nathan> on the committed files but I need to run them from within the
 Nathan> user's working copy.

 Nathan> I have tried looking through the documentation and the .svn
 Nathan> directories in my local checkout but haven't spotted
 Nathan> anything.

How about something like this:
    while ("../.svn" exists) { cd .. }

Somewhat of a hack, but it should work just fine.

         paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 11 19:52:55 2006

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.