diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-29 13:06:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-29 13:06:23 -0400 |
commit | a696b98024d8b9009cd6ad021f20e087607145f6 (patch) | |
tree | 8e548dda8421a1d698ebba4ed90429011ab47642 /Annex/Version.hs | |
parent | 9e53aca36b2b709034dc3ff57827a964e4a8a3d8 (diff) |
Auto-upgrade v3 indirect repos to v5 with no changes. This also fixes a problem when a direct mode repo was somehow set to v3 rather than v4, and so the automatic direct mode upgrade to v5 was not done.
Diffstat (limited to 'Annex/Version.hs')
-rw-r--r-- | Annex/Version.hs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Annex/Version.hs b/Annex/Version.hs index 2b4a49fd2..2a75a1c55 100644 --- a/Annex/Version.hs +++ b/Annex/Version.hs @@ -15,24 +15,18 @@ import qualified Annex type Version = String -defaultVersion :: Version -defaultVersion = "3" - -directModeVersion :: Version -directModeVersion = "5" - -supportedVersions :: [Version] -supportedVersions = [defaultVersion, directModeVersion] +supportedVersion :: Version +supportedVersion = "5" upgradableVersions :: [Version] #ifndef mingw32_HOST_OS upgradableVersions = ["0", "1", "2", "4"] #else -upgradableVersions = ["2", "4"] +upgradableVersions = ["2", "3", "4"] #endif autoUpgradeableVersions :: [Version] -autoUpgradeableVersions = ["4"] +autoUpgradeableVersions = ["3", "4"] versionField :: ConfigKey versionField = annexConfig "version" |