git-annex/Command/Upgrade.hs

27 lines
539 B
Haskell
Raw Normal View History

2011-03-16 19:48:26 +00:00
{- git-annex command
-
- Copyright 2011 Joey Hess <id@joeyh.name>
2011-03-16 19:48:26 +00:00
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Command.Upgrade where
2011-10-05 20:02:51 +00:00
import Common.Annex
2011-03-16 19:48:26 +00:00
import Command
2011-03-19 22:58:10 +00:00
import Upgrade
2011-03-16 19:48:26 +00:00
cmd :: [Command]
cmd = [dontCheck repoExists $ -- because an old version may not seem to exist
command "upgrade" paramNothing seek
SectionMaintenance "upgrade repository layout"]
2011-03-16 19:48:26 +00:00
seek :: CommandSeek
seek = withNothing start
2011-03-16 19:48:26 +00:00
start :: CommandStart
2011-03-16 19:48:26 +00:00
start = do
showStart "upgrade" "."
r <- upgrade False
2011-05-15 06:02:46 +00:00
next $ next $ return r