{-# OPTIONS_GHC -Wno-missing-signatures #-}
module Darcs.Repository.Paths where
import Darcs.Prelude
import Darcs.Util.Global ( darcsdir )
import System.FilePath.Posix( (</>) )
makeDarcsdirPath :: String -> String
makeDarcsdirPath name = darcsdir </> name
lockPath = makeDarcsdirPath "lock"
hashedInventory = "hashed_inventory"
hashedInventoryPath = makeDarcsdirPath hashedInventory
tentativeHashedInventory = "tentative_hashed_inventory"
tentativeHashedInventoryPath = makeDarcsdirPath tentativeHashedInventory
inventoriesDir = "inventories"
inventoriesDirPath = makeDarcsdirPath inventoriesDir
tentativePristinePath = makeDarcsdirPath "tentative_pristine"
pristineDir = "pristine.hashed"
pristineDirPath = makeDarcsdirPath pristineDir
patchesDir = "patches"
patchesDirPath = makeDarcsdirPath patchesDir
indexPath = darcsdir </> "index"
indexInvalidPath = darcsdir </> "index_invalid"
rebasePath = makeDarcsdirPath "rebase"
tentativeRebasePath = makeDarcsdirPath "rebase.tentative"
formatPath = makeDarcsdirPath "format"
pendingPath = patchesDirPath </> "pending"
tentativePendingPath = patchesDirPath </> "pending.tentative"
newPendingPath = patchesDirPath </> "pending.new"
unrevertPath = patchesDirPath </> "unrevert"
oldPristineDirPath = makeDarcsdirPath "pristine"
oldCurrentDirPath = makeDarcsdirPath "current"
oldCheckpointDirPath = makeDarcsdirPath "checkpoints"
oldInventoryPath = makeDarcsdirPath "inventory"
oldTentativeInventoryPath = makeDarcsdirPath "tentative_inventory"