get, move, copy: Now refuse to do anything when the requested file transfer is already in progress by another process.

Note this is per-remote, so trying to get the same file from multiple
remotes can still let duplicate downloads run. (And uploading the same file
to multiple remotes is not duplicate at all of course.)

get, move, and copy are the only git-annex subcommands that transfer
files, but there's still git-annex-shell recvkey and sendkey to deal with too.

I considered modifying retrieveKeyFile or getViaTmp, but they are called
by other code that does not involve expensive file transfers (migrate)
or that does file transfers that should not be checked by this (fsck --from).
This commit is contained in:
Joey Hess 2012-07-01 15:18:36 -04:00
parent 72988bae34
commit e5fd8b67b7
3 changed files with 26 additions and 17 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
git-annex (3.20120630) UNRELEASED; urgency=low
* get, move, copy: Now refuse to do anything when the requested file
transfer is already in progress by another process.
-- Joey Hess <joeyh@debian.org> Sun, 01 Jul 2012 15:04:37 -0400
git-annex (3.20120629) unstable; urgency=low
* cabal: Only try to use inotify on Linux.