noRetry,
stdRetry,
pickRemote,
- stallDetection,
+ bwLimit,
) where
import Annex.Common
lessActiveFirst active a b
| Remote.cost a == Remote.cost b = comparing (`M.lookup` active) a b
| otherwise = comparing Remote.cost a b
- stallDetection :: Remote -> Annex (Maybe StallDetection)
- stallDetection r = maybe globalcfg (pure . Just) remotecfg
- where
- globalcfg = annexStallDetection <$> Annex.getGitConfig
- remotecfg = remoteAnnexStallDetection $ Remote.gitconfig r
-
+
+bwLimit :: RemoteGitConfig -> Annex (Maybe BwRate)
+bwLimit gc = maybe globalcfg (pure . Just) remotecfg
+ where
+ globalcfg = annexBwLimit <$> Annex.getGitConfig
+ remotecfg = remoteAnnexBwLimit gc
git-annex (8.20210904) UNRELEASED; urgency=medium
+ * Added annex.bwlimit and remote.name.annex-bwlimit config that works
+ for git remotes and many but not all special remotes.
+ * Bug fix: Git configs such as annex.verify were incorrectly overriding
+ per-remote git configs such as remote.name.annex-verify.
+ (Reversion in version 4.20130323)
* borg: Avoid trying to extract xattrs, ACLS, and bsdflags when
retrieving from a borg repository.
+ * Resume where it left off when copying a file to/from a local git remote
+ was interrupted.
-- Joey Hess <id@joeyh.name> Fri, 03 Sep 2021 12:02:55 -0400
, annexRetry :: Maybe Integer
, annexForwardRetry :: Maybe Integer
, annexRetryDelay :: Maybe Seconds
- , annexStallDetection :: Maybe StallDetection
+ , annexBwLimit :: Maybe BwRate
, annexAllowedUrlSchemes :: S.Set Scheme
, annexAllowedIPAddresses :: String
, annexAllowUnverifiedDownloads :: Bool
, annexForwardRetry = getmayberead (annexConfig "forward-retry")
, annexRetryDelay = Seconds
<$> getmayberead (annexConfig "retrydelay")
- , annexStallDetection =
- either (const Nothing) Just . parseStallDetection
- =<< getmaybe (annexConfig "stalldetection")
+ , annexBwLimit =
+ either (const Nothing) Just . parseBwRate
+ =<< getmaybe (annexConfig "bwlimit")
, annexAllowedUrlSchemes = S.fromList $ map mkScheme $
maybe ["http", "https", "ftp"] words $
getmaybe (annexConfig "security.allowed-url-schemes")