[svk-devel] Non-interactive use of "svk info"

Adam D. Barratt lists+svk-devel at adam-barratt.org.uk
Wed Jun 6 15:20:55 EDT 2007


Hi,

On Wed, 2007-06-06 at 13:16 -0400, Jesse Vincent wrote:
> On Jun 6, 2007, at 12:07 PM, Adam D. Barratt wrote:
> > I'm invesigating Debian bug #420899 (http://bugs.debian.org/420899)  
> > which relates to the non-interactive use of "svk info".
[...]
> > Is it possible to call "svk info" from outside a checkout location  
> > without having the prompt raised? Alternatively, is there a more  
> > useful means of determining whether a directory is part of an svk  
> > checkout without any interactive prompts being raised?
> 
> pinglin:~ jesse$ svk info
> path /Users/jesse is not a checkout path.
> 
> I think you only run into what you're seeing if the user has never  
> initialized svk. Perhaps you want to probe ~/.svk/local to see if it  
> exists. (Also, have a look at the SVKHOME environment variable so you  
> look in the right place ;)

Thanks. I'm assuming you meant SVKROOT ;-)

Will there always be a file called "local" in the relevant location?
I've added this (pseudo-coded, obviously :) before trying to run svk:

	$root = $SVKROOT
	If $root = "" $root = $HOME/.svk
	$check = $root + "/local"
	if the file $checks exists then...

Cheers,

Adam


More information about the svk-devel mailing list