diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-15 22:08:19 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-15 22:08:19 -0400 |
commit | 4651688290086d70275e3d0b2976dbc57f8e4df1 (patch) | |
tree | 9719e9747df0e9d43ff51be6eaf70b4828941f1b /Upgrade.hs | |
parent | 4594bd51c1754bc7e1fdf03d83569aeea163e761 (diff) |
increase repo version
Diffstat (limited to 'Upgrade.hs')
-rw-r--r-- | Upgrade.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Upgrade.hs b/Upgrade.hs index 7469d9ba7..eba75bf58 100644 --- a/Upgrade.hs +++ b/Upgrade.hs @@ -31,10 +31,16 @@ upgrade = do version <- getVersion case version of Just "0" -> upgradeFrom0 + Just "1" -> upgradeFrom1 Nothing -> return True -- repo not initted yet, no version Just v | v == currentVersion -> return True Just _ -> error "this version of git-annex is too old for this git repository!" +upgradeFrom1 :: Annex Bool +upgradeFrom1 = do + showSideAction "Upgrading object directory layout..." + error "upgradeFrom1 TODO FIXME" + upgradeFrom0 :: Annex Bool upgradeFrom0 = do showSideAction "Upgrading object directory layout..." |