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

RE: File under source control Win2K/XP

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-05-04 07:27:11 CEST

Matt Daniel wrote:
> I am trying to implement a doc management system using SVN within widows
> shell a DLL written in VC++ V6.
>
> What I need to know is how can I find out if the current directory is a
> svn dir and also if the current selected file is under src control. ?
>
> What I am trying to do is add a menu to the explorer menu called DMS
> when the user has just changed into a "SVN DMS" directory, if the user
> selects a file I then what to change the options under the DMS menu
> depending whether the file is under src control etc..

I can't help you with the SVN C API, but I can suggest looking at
the TortoiseSVN source.

It is a shell extension that determines whether the current directory
is under source control or not (so that the appropriate menu options
are displayed), and also the selected file (whether to show Add/Ignore
or to show Diff/Update/etc).

-- 
Robert Hunter
#############################################################################
This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it - 
please contact me immediately, destroy it, and do not copy or 
use any part of this communication or disclose anything about it.
Thank You.
Please note that this communication does not designate an information system
for the purposes of the NZ Electronic Transactions Act 2002.
This email was scanned and cleared by NetIQ MailMarshal at Gen-i Limited.
#############################################################################
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 4 07:29:33 2005

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.