← Back to team overview

bzr-explorer-dev team mailing list archive

Re: [qbzr] [RFH] Rework Bazaar Explorer + QBzr to use separate process for bzr operations and main process only as GUI presenter

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
On 5/4/2011 8:31 AM, Alexander Belchenko wrote:
> I have one doubt though: if FileSystemWatcher looks into
> subdirectories then it will be triggered on any change inside .bzr
> directory. IIRC some read-only operations will create/delete lock
> dir/file inside .bzr. Therefore it will trigger false positive
> alarms, IIUC.

I suppose it would depend on the API that you're using to watch for
filesystem changes. There might be a way to make it ignore .bzr.

On a related note, it looks like QFileSystemWatcher, when watching a
directory, will not notify you if the files in that dir are modified,
only if the directory listing is changed (i.e. a file is added or
removed). You would have to make it watch specific files to see when
they change. This would get out of hand quite quickly for a large
directory tree. So you may have to write your own bridge to various
platform services like inotify, FindFirstChangeNotification and FSEvents.

Linux API: http://en.wikipedia.org/wiki/Inotify
Windows API: http://msdn.microsoft.com/en-us/library/aa365261
Mac OS X API:
http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/FSEvents_ProgGuide/Introduction/Introduction.html
<http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/FSEvents_ProgGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40005289-CH1-DontLinkElementID_15>

Ciao,
Gordon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iQEcBAEBAgAGBQJNweFtAAoJEIrPJfWinA2uqHgH/iTNb6utYXWnatYvsHow23Lo
f3aMsKZEJR6fhDaxSiSqJ1xZEsmlKQy7UM/jln+cgPdmG7Z2PZCHZn8UTOAq0Z/s
TmN9M32/hlejgxnAPJA6z0xEseelrx7xH1N8gE4Fcs4E1hUaYU7ktqs3mt7JiHPT
iknXk6qvegtacMZmxJd4alcyJL7DGwJh5XGwHQ0eQezlxKRZXOyKwsDbAY1ezZC6
z5ZWmBySjeAcSLxUNnWT2xGZkI4X0r/aJN/XoWOqddswrc57vz7ao6wCaHf2L9we
vDiKrMpGvav8BZEL/Qdk4byHXlED6RclZ5H/KYzRl/XROmD8SuA8KM+CSPb6i8o=
=EYAV
-----END PGP SIGNATURE-----



References