summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-04 16:14:48 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-04 16:14:48 -0400
commit9a765b7bd8ca28e3f94d9d7a11ce4d7162f700f1 (patch)
tree88166f4d84d17925992d2ecdbebe2d0ceb9da37f /Annex
parentd75a080faaa49b02a433a8f9dd1bf922897f1e05 (diff)
add v6; keep v5 working for now and manual upgrade
Since all places where a repo is used in direct mode need to have git-annex upgraded before the repo can safely be converted to v6, the upgrade needs to be manual for now. I suppose that at some point I'll want to drop all the direct mode support code. At that point, will stop supporting v5, and will need to auto-upgrade any remaining v5 repos. If possible, I'd like to carry the direct mode support for say, a year or so, to give people plenty of time to upgrade and avoid disruption.
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Version.hs11
1 files changed, 7 insertions, 4 deletions
diff --git a/Annex/Version.hs b/Annex/Version.hs
index d08f994e9..e1983fc67 100644
--- a/Annex/Version.hs
+++ b/Annex/Version.hs
@@ -15,14 +15,17 @@ import qualified Annex
type Version = String
-supportedVersion :: Version
-supportedVersion = "5"
+currentVersion :: Version
+currentVersion = "6"
+
+supportedVersions :: [Version]
+supportedVersions = ["5", currentVersion]
upgradableVersions :: [Version]
#ifndef mingw32_HOST_OS
-upgradableVersions = ["0", "1", "2", "4"]
+upgradableVersions = ["0", "1", "2", "4", "5"]
#else
-upgradableVersions = ["2", "3", "4"]
+upgradableVersions = ["2", "3", "4", "5"]
#endif
autoUpgradeableVersions :: [Version]