git-annex/Annex
Joey Hess 57780cb3a4 Clean up direct mode cache and mapping info when dropping keys.
These files were left behind, and made getKeysPresent find keys that were
not present. It would be expensive to make getKeysPresent check that the
actual key files are present (it just lists the directories). But that's not
needed if we just clean up the stale cache and mapping files.

To handle systems that were in direct mode and got switched back with stale
direct mode files, made cleanObjectLoc remove all files in the key's directory.

git annex unused will still list keys that are gone but for which the stale
direct mode files exists. To deal with that, made dropunused remove the key's
directory even if the key does not seem to be present.
2013-02-07 08:28:40 -04:00
..
Content Clean up direct mode cache and mapping info when dropping keys. 2013-02-07 08:28:40 -04:00
Branch.hs whitespace fixes 2012-12-13 00:45:27 -04:00
BranchState.hs remove git-annex branch read cache 2012-10-19 14:25:15 -04:00
CatFile.hs work around a very strange git-cat-file behavior 2013-01-05 17:06:24 -04:00
CheckAttr.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Content.hs Clean up direct mode cache and mapping info when dropping keys. 2013-02-07 08:28:40 -04:00
Direct.hs ensure that content directory is thawed when writing direct mode mapping and cache files 2013-01-26 20:09:15 +11:00
Exception.hs fixes for transfer resume 2012-09-24 13:18:16 -04:00
Journal.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
LockPool.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Perms.hs ensure that content directory is thawed when writing direct mode mapping and cache files 2013-01-26 20:09:15 +11:00
Queue.hs type based git config handling for remotes 2013-01-01 13:58:14 -04:00
Ssh.hs type based git config handling for remotes 2013-01-01 13:58:14 -04:00
UUID.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Version.hs type based git config handling for remotes 2013-01-01 13:58:14 -04:00
Wanted.hs --auto fixes 2012-12-06 13:22:16 -04:00