git-annex/Assistant/Threads
Joey Hess 9aab70de66 always check with ls-files before adding new files
Makes it safe to use git annex unlock with the watcher/assistant.
And also to mix use of the watcher/assistant with regular files stored in git.

Long ago, I had avoided doing this check, except during the startup scan,
because it would be slow to run ls-files repeatedly.

But then I added the lsof check, and to make that fast, got it to detect
batch file adds. So let's move the ls-files check to also occur when it'll
have a batch, and can check them all with one call.

This does slow down adding a single file by just a bit, but really only
a little bit. (The lsof check is probably more expensive.) It also
speeds up the startup scan, especially when there are lots of new files
found by the scan.

Also, fixed the sleep for annex.delayadd to not run while the threadstate
lock is held, so it doesn't unnecessarily freeze everything else.

Also, --force no longer makes it skip the lsof check, which was not
documented, and seems never a good idea.
2012-10-02 17:41:23 -04:00
..
Committer.hs always check with ls-files before adding new files 2012-10-02 17:41:23 -04:00
DaemonStatus.hs display errors when any named thread crashes 2012-09-06 14:56:04 -04:00
Merger.hs run current branch merge in annex monad 2012-09-17 22:04:43 -04:00
MountWatcher.hs avoid some warnings when built w/o dbus 2012-09-29 16:09:07 -04:00
NetWatcher.hs avoid some warnings when built w/o dbus 2012-09-29 16:09:07 -04:00
PairListener.hs hlint 2012-09-13 00:57:52 -04:00
Pusher.hs hlint 2012-09-13 00:57:52 -04:00
SanityChecker.hs always check with ls-files before adding new files 2012-10-02 17:41:23 -04:00
TransferPoller.hs watch for changes to transfer info files, to update progress bars on upload 2012-09-20 17:24:40 -04:00
Transferrer.hs quiet calls to transferkey 2012-09-24 13:36:05 -04:00
TransferScanner.hs cleanup 2012-09-17 14:58:43 -04:00
TransferWatcher.hs don't queue uploads for failed downloads 2012-09-24 13:16:08 -04:00
Watcher.hs always check with ls-files before adding new files 2012-10-02 17:41:23 -04:00
WebApp.hs add a configurator for S3 2012-09-26 14:44:07 -04:00