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

Wincent Colaiuta win at wincent.com
Wed Jun 6 13:31:47 EDT 2007


El 6/6/2007, a las 18:07, Adam D. Barratt escribió:

> Hi,
>
> I'm invesigating Debian bug #420899 (http://bugs.debian.org/420899)  
> which relates to the non-interactive use of "svk info".
>
> The script in question attempts to automagically determine whether  
> it is being called from within a VCS managed directory. In the case  
> of svk, it calls "svk info ." and parses the output. Unfortunately,  
> if the directory /isn't/ an SVK checkout, a prompt is raised as to  
> whether ~/.svk/local should be created which causes the script to  
> hang until the user kills the SVK process.
>
> 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?

How about looking at the output of "svk co --list"?

I don't know if that also pops up a prompt if ~/.svk/local doesn't  
exist...

Perhaps with the "-q" switch?

Wincent




More information about the svk-devel mailing list