Source control systems may modify hidden files locally when performing a 
commit; some have historically utilized the resource fork of the particular 
file instead to keep that commit/modified state. Still others may choose to use 
an xattr to track this.

The bottom line is that the only real guarantee of a file being changed during 
a commit is within the repository of a source control system, not your local 
sandbox.

- Gary L. Wade (Sent from my iPhone)

On Dec 24, 2010, at 6:45 AM, Martin Hewitson <martin.hewit...@aei.mpg.de> wrote:

> Hi Uli,
> 
> I did try various combinations of the flags, and I even tried listening for 
> all events:
> 
> UKKQueueNotifyAboutRename | UKKQueueNotifyAboutWrite | 
> UKKQueueNotifyAboutDelete | UKKQueueNotifyAboutAttributeChange
> 
> I din't receive events having done a cvs commit on a file. However, I do get 
> notified if I edit the file externally using vi or some other editor. I 
> googled quite a bit but I can't find out what CVS actually does during a 
> commit. I guess I'll try to dig some more. Perhaps I can get the source code 
> for CVS and check there.
> 
> Cheers,
> 
> Martin
> 
> 
> On Dec 24, 2010, at 12:22 AM, Uli Kusterer wrote:
> 
>> On 21.12.2010, at 11:58, Martin Hewitson wrote:
>>> I have implemented an editor where I use UKKQueue to handle changes to the 
>>> file by other apps. The problem is that I don't get a notification if the 
>>> file is committed to a CVS repository (or an SVN repository, for that 
>>> matter).
>> 
>> Many applications create a second file, write to that, then swap the two out 
>> afterwards. That way, if the write fails, you don't lose the file. Since 
>> kqueues work at a low level, you'll get a 'delete' or 'rename/move' 
>> notification in that case only. Have you checked if that's the case?
>> 
>> Cheers,
>> -- Uli Kusterer
>> "The Witnesses of TeachText are everywhere..."
>> http://www.zathras.de
>> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Martin Hewitson
> Albert-Einstein-Institut
> Max-Planck-Institut fuer 
>    Gravitationsphysik und Universitaet Hannover
> Callinstr. 38, 30167 Hannover, Germany
> Tel: +49-511-762-17121, Fax: +49-511-762-5861
> E-Mail: martin.hewit...@aei.mpg.de
> WWW: http://www.aei.mpg.de/~hewitson
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/garywade%40desisoftsystems.com
> 
> This email sent to garyw...@desisoftsystems.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to