git-annex/Types
Joey Hess 6adbd50cd9 testremote: Add testing of behavior when remote is not available
Added a mkUnavailable method, which a Remote can use to generate a version
of itself that is not available. Implemented for several, but not yet all
remotes.

This allows testing that checkPresent properly throws an exceptions when
it cannot check if a key is present or not. It also allows testing that the
other methods don't throw exceptions in these circumstances.

This immediately found several bugs, which this commit also fixes!

* git remotes using ssh accidentially had checkPresent return
  an exception, rather than throwing it
* The chunking code accidentially returned False rather than
  propigating an exception when there were no chunks and
  checkPresent threw an exception for the non-chunked key.

This commit was sponsored by Carlo Matteo Capocasa.
2014-08-10 15:02:59 -04:00
..
Availability.hs add GETAVAILABILITY to external special remote protocol 2014-01-13 14:41:10 -04:00
Backend.hs add key stability checking interface 2014-07-27 12:33:46 -04:00
BranchState.hs remove unused fields 2012-12-19 23:41:54 -04:00
CleanupActions.hs only run sshCleanup when the command actually used ssh connection caching 2014-03-13 19:30:13 -04:00
Command.hs add new section for testing commands 2014-08-01 12:49:26 -04:00
Creds.hs add CredPair cache 2014-04-29 18:08:02 -04:00
Crypto.hs partially complete gcrypt remote (local send done; rest not) 2013-09-07 18:38:00 -04:00
DesktopNotify.hs add desktop notifications 2014-03-22 14:12:19 -04:00
Distribution.hs annex.autoupgrade setting 2013-11-22 16:04:20 -04:00
FileMatcher.hs reorg matcher types; no non-type code changes 2014-03-29 14:43:34 -04:00
GitConfig.hs execute remote.<name>.annex-shell on remote, if set 2014-05-16 15:46:43 -04:00
Group.hs add --ingroup limit 2012-10-08 15:18:58 -04:00
Key.hs S3: support chunking 2014-08-02 15:51:58 -04:00
KeySource.hs add: Improved detection of files that are modified while being added. 2013-02-14 16:54:36 -04:00
LockPool.hs use locking on Windows 2014-01-28 14:42:03 -04:00
Messages.hs Display a warning when a non-existing file or directory is specified. 2012-11-25 17:54:08 -04:00
MetaData.hs avoid generating arbitrary MetaData with illegal fields 2014-03-26 16:40:52 -04:00
NumCopies.hs reorganize numcopies code (no behavior changes) 2014-01-21 16:08:59 -04:00
Option.hs per-command options 2012-01-05 23:11:07 -04:00
Remote.hs testremote: Add testing of behavior when remote is not available 2014-08-10 15:02:59 -04:00
ScheduledActivity.hs cronner: run jobs triggered by remotes becoming connected (untested) 2013-10-13 17:14:56 -04:00
StandardGroups.hs finish wiring up groupwanted 2014-03-15 17:08:55 -04:00
StoreRetrieve.hs pushed checkPresent exception handling out of Remote implementations 2014-08-06 13:45:19 -04:00
TrustLevel.hs note 2013-09-20 00:04:37 -04:00
UUID.hs reinit: New command that can initialize a new reposotory using the configuration of a previously known repository. Useful if a repository got deleted and you want to clone it back the way it was. 2014-04-15 20:13:35 -04:00
View.hs vadd: Allow listing multiple desired values for a field. 2014-03-02 15:36:45 -04:00