[svk-devel] How to find out if a file (or dir) is under SVK control?

Jesse Vincent jesse at bestpractical.com
Fri Jul 27 14:02:42 EDT 2007


On Jul 27, 2007, at 5:14 AM, G. Milde wrote:

> Dear SVK developers,
>
> I'd like to add SVK to the VC systems supported by the `vc-mode`_ of
> the Jed_ programmers editor.
> The mode is implemented in Jed's extension language S-Lang. Currently,
> CVS and SVN are supported.
>
> To add SVK support, I need to find out whether a specified file or
> directory is under version control with SVK.
>
> Currently,
>
> * For directories I check the presence of a "CVS" or ".svn" subdir.
> * For files, it looks for a pattern containing the file in the
>   "CVS/Entries" or ".svn/entries" file.
>
> For fast response, I would prefer looking for patterns in a given file
> (under ~/.svk) over calling an svk command.
>
> What would I have to look for (and where)?

Well, for a first approximation, you can look at .svk/cache/ 
dir_name_with_underscores

IIRC, The file will contain a list of all files checked out from that  
directory.

I can't speak to how reliable this method is, though.

Best,
Jesse



>
> Thanks,
>
> Guenter Milde
>
> .. _vc-mode: http://jedmodes.sf.net/mode/svn/
> .. _Jed: http://www.jedsoft.org/jed/
> _______________________________________________
> 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/20070727/a86858e8/PGP.pgp


More information about the svk-devel mailing list