[FileBackend] Support "ignoreMissingSource" for copy and move operations.
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 29 Oct 2012 19:57:04 +0000 (12:57 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 31 Oct 2012 04:24:05 +0000 (04:24 +0000)
commit24a6e8eab64839ba5b5a6954ee35b7f2b04f9f82
treedd42df73ade07f8847261009bed58f03013dc1a5
parent07dd9b0b71ba5df3de559edd93f5d5b0b2968519
[FileBackend] Support "ignoreMissingSource" for copy and move operations.

* This lets callers use "copy if exist" semantics more easily and avoids extra stat
  queries to the backend (since the cache is cleared before doOperations()).
* Tweaked FileOp::fileSha1() to reduce backend stat requests as 404s are not cached.

Change-Id: Icb5ca14b3316f273d53593f48979d14e113990e1
includes/filebackend/FSFileBackend.php
includes/filebackend/FileBackend.php
includes/filebackend/FileBackendStore.php
includes/filebackend/FileOp.php
includes/filebackend/SwiftFileBackend.php
tests/phpunit/includes/filerepo/FileBackendTest.php