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
Backend.hs add key stability checking interface 2014-07-27 12:33:46 -04:00
BranchState.hs
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
DesktopNotify.hs add desktop notifications 2014-03-22 14:12:19 -04:00
Distribution.hs
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
Key.hs S3: support chunking 2014-08-02 15:51:58 -04:00
KeySource.hs
LockPool.hs use locking on Windows 2014-01-28 14:42:03 -04:00
Messages.hs
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
Remote.hs testremote: Add testing of behavior when remote is not available 2014-08-10 15:02:59 -04:00
ScheduledActivity.hs
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
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