, lockContent = Nothing
, checkPresent = checkKey u hdl
, checkPresentCheap = False
- , whereisKey = Nothing
+ , whereisKey = Just (getWhereisKey u)
, remoteFsck = Nothing
, repairRepo = Nothing
, config = c
getCapability :: UUID -> Key -> Annex (Maybe Capability)
getCapability u k = getRemoteState u k
+getWhereisKey :: UUID -> Key -> Annex [String]
+getWhereisKey u k = disp <$> getCapability u k
+ where
+ disp Nothing = []
+ disp (Just c) = [c]
+
{- tahoe put outputs a single line, containing the capability. -}
parsePut :: String -> Maybe Capability
parsePut s = case lines s of
* When core.sharedRepository is set, annex object files are not made mode
444, since that prevents a user other than the file owner from locking
them. Instead, a mode such as 664 is used in this case.
+ * tahoe: Include tahoe capabilities in whereis display.
-- Joey Hess <id@joeyh.name> Mon, 16 Nov 2015 16:49:34 -0400