Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cbcd208d15
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.475 kb
{- git-annex upgrade support
- Copyright 2010 Joey Hess <>
- Licensed under the GNU GPL version 3 or higher.
module Upgrade where
import Common.Annex
import Annex.Version
import qualified Upgrade.V0
import qualified Upgrade.V1
import qualified Upgrade.V2
upgrade :: Annex Bool
upgrade = go =<< getVersion
go (Just "0") = Upgrade.V0.upgrade
go (Just "1") = Upgrade.V1.upgrade
go (Just "2") = Upgrade.V2.upgrade
go _ = return True
Jump to Line
Something went wrong with that request. Please try again.