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

RE: Subversion 1.6.0 Release Candidate 3 Released

From: <kmradke_at_rockwellcollins.com>
Date: Wed, 4 Mar 2009 11:28:53 -0600

"Todd C. Gleason" <tgleason_at_impac.com> wrote on 03/04/2009 11:11:22 AM:
> > >> There are various thoughts and proposals floating around regarding
> > >> this. I'd personally like to see Subversion tie into the FSEvents
> > >> API
> > >> on OS X and get filesystem change information directly from the
> > >> operating system. Unfortunately, Windows doesn't provide such a
> > >> service yet. :/
> > >
> > > Of course it does. How do you think the TortoiseSVN cache works?
> >
> > Granted, I'm not very familiar with Windows development and APIs, but
> > when I was looking at this for OS X, Linux, and Windows, most
> > resources I found said there wasn't an equivalent facility on
> > Windows. Quoting Todd earlier in the thread:
> >
> > > What I have in mind is systems such as TortoiseSVN where an
> > > optional TSVNCache.exe sits in the background and does this
> > > scanning and handling of file system events so as to update
> > > Windows Explorer icons. (I don't know whether any other
> > > clients do similar things.)"
> >
> > That seems to indicate that TortoiseSVN installs it's own service to
> > look for changes in the filesystem, and that Windows doesn't provide
> > the ability natively. Is that an incorrect assumption?
>
> My understanding is that you can call an API to register for file system
> change events. I don't know the details though off the top of my head.
>
> Presumably TSVNCache registers this event and also does an initial walk
> of the tree when it starts up so it gets into a good initial state.

It's been awhile, and there may be better/newer ways to do this but:

http://msdn.microsoft.com/en-us/library/aa364417(VS.85).aspx

And a functional example provided by someone else:
(I haven't looked at this example, it is just what google found for me)

http://www.codeproject.com/KB/files/directorychangewatcher.aspx

This does require an "active process/thread" to monitor for
changes, where I believe the OSX stuff can be queried when
you are interested in the change list...

Kevin R.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1267746

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-04 18:29:58 CET

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.