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

Jesse Vincent jesse at bestpractical.com
Wed Jun 6 15:40:57 EDT 2007


On Jun 6, 2007, at 3:20 PM, Adam D. Barratt wrote:

> 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 ;-)


Sorry, yes. I was typing from memory.

>
> 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
> _______________________________________________
> svk-devel mailing list
> svk-devel at bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-devel
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/svk-devel/attachments/20070606/aeafa29c/PGP.pgp


More information about the svk-devel mailing list