2011-03-16 19:48:26 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
|
|
|
- Copyright 2011 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Command.Upgrade where
|
|
|
|
|
2011-10-04 04:40:47 +00:00
|
|
|
import Annex.Common
|
2011-03-16 19:48:26 +00:00
|
|
|
import Command
|
2011-03-19 22:58:10 +00:00
|
|
|
import Upgrade
|
2011-10-04 04:40:47 +00:00
|
|
|
import Annex.Version
|
2011-03-16 19:48:26 +00:00
|
|
|
|
|
|
|
command :: [Command]
|
2011-03-19 22:58:10 +00:00
|
|
|
command = [standaloneCommand "upgrade" paramNothing seek
|
|
|
|
"upgrade repository layout"]
|
2011-03-16 19:48:26 +00:00
|
|
|
|
|
|
|
seek :: [CommandSeek]
|
|
|
|
seek = [withNothing start]
|
|
|
|
|
2011-09-15 20:50:49 +00:00
|
|
|
start :: CommandStart
|
2011-03-16 19:48:26 +00:00
|
|
|
start = do
|
2011-06-23 06:30:20 +00:00
|
|
|
showStart "upgrade" "."
|
2011-03-19 22:58:10 +00:00
|
|
|
r <- upgrade
|
2011-06-23 06:30:20 +00:00
|
|
|
setVersion
|
2011-05-15 06:02:46 +00:00
|
|
|
next $ next $ return r
|