* httpalso: Windows url fix.
* Added remote.name.annex-web-options config, which is a per-remote
version of the annex.web-options config.
+ * migrate: Fix --remove-size to work when a file is not present.
+ Fixes reversion introduced in version 10.20231129.
-- Joey Hess <id@joeyh.name> Fri, 21 Mar 2025 12:27:11 -0400
newbackend <- chooseBackend file
if (newbackend /= oldbackend || upgradableKey oldbackend || forced) && exists
then go False oldbackend newbackend
- else if cantweaksize newbackend oldbackend && exists
+ else if cantweaksize newbackend oldbackend exists
then go True oldbackend newbackend
else stop
where
starting "migrate" (mkActionItem (key, file)) si $
perform onlytweaksize o file key keyrec oldbackend newbackend
- cantweaksize newbackend oldbackend
+ cantweaksize newbackend oldbackend exists
| removeSize o = isJust (fromKey keySize key)
| newbackend /= oldbackend = False
- | isNothing (fromKey keySize key) = True
+ | isNothing (fromKey keySize key) && exists = True
| otherwise = False
upgradableKey oldbackend = maybe False (\a -> a key) (canUpgradeKey oldbackend)
--- /dev/null
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2025-04-01T14:39:24Z"
+ content="""
+I diagnose a bug introduced in
+[[!commit 86dbe9a825b9c615c63e0cfc5e4a737a249f8989]]
+that makes it only be able to remove the size if the object file is locally
+present. Fixed.
+"""]]