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

Re: WC modification detection is reading whole files

From: Branko Čibej <brane_at_xbc.nu>
Date: 2006-02-21 00:24:47 CET

Julian Foad wrote:
> Or - and this is what it actually does - wait for the time stamps to
> become older than "now" before exiting and returning control to a
> program that might look at the time stamps. See
> "svn_sleep_for_timestamps()".
This I actually have a half-done patch for. It handles NTFS, FAT and all
Unix filesystems I could get my hands on gracefully, but has one serious
problem: it needs a reference to a working copy in order to check the
actual timestamps on a file.

And that's not straight-forward, for two reasons:

    * In some cases, where svn_sleep_for_timestamp() is called, the
      reference to the relevant working copy is long gone, and carrying
      around the context would be horrible.
    * In other cases, we have several targets for a command which might
      not all be in the same WC.

There's also a nasty edge-case (which I'm reluctant to deal with):
someone could mount part of their working copy on a filesystem with
different timestamp resolution (yes, I can do this on Windows, worse
luck...)

Any bright and useful ideas for solving these will be rewarded by a
virtual beverage of choice.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 21 10:51:24 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.