import Utility.FileSystemEncoding in Common
This commit is contained in:
parent
f574d8af10
commit
7d51b0c109
21 changed files with 1 additions and 22 deletions
|
@ -65,7 +65,6 @@ import qualified Annex.Queue
|
||||||
import Annex.Branch.Transitions
|
import Annex.Branch.Transitions
|
||||||
import qualified Annex
|
import qualified Annex
|
||||||
import Annex.Hook
|
import Annex.Hook
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.Directory.Stream
|
import Utility.Directory.Stream
|
||||||
|
|
||||||
{- Name of the branch that is used to store git-annex's information. -}
|
{- Name of the branch that is used to store git-annex's information. -}
|
||||||
|
|
|
@ -38,7 +38,6 @@ import qualified Git.Ref
|
||||||
import Annex.Link
|
import Annex.Link
|
||||||
import Annex.CurrentBranch
|
import Annex.CurrentBranch
|
||||||
import Types.AdjustedBranch
|
import Types.AdjustedBranch
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
|
|
||||||
catFile :: Git.Branch -> FilePath -> Annex L.ByteString
|
catFile :: Git.Branch -> FilePath -> Annex L.ByteString
|
||||||
catFile branch file = do
|
catFile branch file = do
|
||||||
|
|
|
@ -26,7 +26,6 @@ import Common
|
||||||
import Key
|
import Key
|
||||||
import Types.GitConfig
|
import Types.GitConfig
|
||||||
import Types.Difference
|
import Types.Difference
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.Hash
|
import Utility.Hash
|
||||||
|
|
||||||
type Hasher = Key -> FilePath
|
type Hasher = Key -> FilePath
|
||||||
|
|
|
@ -45,7 +45,6 @@ import Annex.InodeSentinal
|
||||||
import Upgrade
|
import Upgrade
|
||||||
import Annex.Perms
|
import Annex.Perms
|
||||||
import Utility.UserInfo
|
import Utility.UserInfo
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
import Utility.FileMode
|
import Utility.FileMode
|
||||||
import System.Posix.User
|
import System.Posix.User
|
||||||
|
|
|
@ -30,7 +30,6 @@ import Git.FilePath
|
||||||
import Annex.HashObject
|
import Annex.HashObject
|
||||||
import Annex.InodeSentinal
|
import Annex.InodeSentinal
|
||||||
import Utility.FileMode
|
import Utility.FileMode
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.InodeCache
|
import Utility.InodeCache
|
||||||
import Utility.Tmp.Dir
|
import Utility.Tmp.Dir
|
||||||
import Utility.CopyFile
|
import Utility.CopyFile
|
||||||
|
|
|
@ -32,7 +32,6 @@ import qualified Git.Url
|
||||||
import Config
|
import Config
|
||||||
import Annex.Path
|
import Annex.Path
|
||||||
import Utility.Env
|
import Utility.Env
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.Hash
|
import Utility.Hash
|
||||||
import Types.CleanupActions
|
import Types.CleanupActions
|
||||||
import Types.Concurrency
|
import Types.Concurrency
|
||||||
|
|
|
@ -38,7 +38,6 @@ import qualified Data.UUID as U
|
||||||
import qualified Data.UUID.V4 as U4
|
import qualified Data.UUID.V4 as U4
|
||||||
import qualified Data.UUID.V5 as U5
|
import qualified Data.UUID.V5 as U5
|
||||||
import Data.String
|
import Data.String
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
|
|
||||||
configkey :: ConfigKey
|
configkey :: ConfigKey
|
||||||
configkey = annexConfig "uuid"
|
configkey = annexConfig "uuid"
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
module Annex.VariantFile where
|
module Annex.VariantFile where
|
||||||
|
|
||||||
import Annex.Common
|
import Annex.Common
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.Hash
|
import Utility.Hash
|
||||||
|
|
||||||
variantMarker :: String
|
variantMarker :: String
|
||||||
|
|
|
@ -44,7 +44,6 @@ import Git.FilePath
|
||||||
import Config
|
import Config
|
||||||
import Config.GitConfig
|
import Config.GitConfig
|
||||||
import Utility.ThreadScheduler
|
import Utility.ThreadScheduler
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Logs.Location
|
import Logs.Location
|
||||||
import qualified Database.Keys
|
import qualified Database.Keys
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
module Backend.Utilities where
|
module Backend.Utilities where
|
||||||
|
|
||||||
import Annex.Common
|
import Annex.Common
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.Hash
|
import Utility.Hash
|
||||||
|
|
||||||
{- Generates a keyName from an input string. Takes care of sanitizing it.
|
{- Generates a keyName from an input string. Takes care of sanitizing it.
|
||||||
|
|
|
@ -28,7 +28,6 @@ import Types.UrlContents
|
||||||
import Annex.FileMatcher
|
import Annex.FileMatcher
|
||||||
import Logs.Location
|
import Logs.Location
|
||||||
import Utility.Metered
|
import Utility.Metered
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.HtmlDetect
|
import Utility.HtmlDetect
|
||||||
import Utility.Path.Max
|
import Utility.Path.Max
|
||||||
import qualified Annex.Transfer as Transfer
|
import qualified Annex.Transfer as Transfer
|
||||||
|
|
|
@ -30,5 +30,6 @@ import Utility.Applicative as X
|
||||||
import Utility.FileSize as X
|
import Utility.FileSize as X
|
||||||
import Utility.Network as X
|
import Utility.Network as X
|
||||||
import Utility.Split as X
|
import Utility.Split as X
|
||||||
|
import Utility.FileSystemEncoding as X
|
||||||
|
|
||||||
import Utility.PartialPrelude as X
|
import Utility.PartialPrelude as X
|
||||||
|
|
|
@ -38,7 +38,6 @@ import Git.Types
|
||||||
import Git.FilePath
|
import Git.FilePath
|
||||||
import Git.HashObject
|
import Git.HashObject
|
||||||
import qualified Utility.CoProcess as CoProcess
|
import qualified Utility.CoProcess as CoProcess
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.Tuple
|
import Utility.Tuple
|
||||||
|
|
||||||
data CatFileHandle = CatFileHandle
|
data CatFileHandle = CatFileHandle
|
||||||
|
|
|
@ -22,7 +22,6 @@ import Git.UpdateIndex
|
||||||
import Git.HashObject
|
import Git.HashObject
|
||||||
import Git.Types
|
import Git.Types
|
||||||
import Git.FilePath
|
import Git.FilePath
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
|
|
||||||
{- Performs a union merge between two branches, staging it in the index.
|
{- Performs a union merge between two branches, staging it in the index.
|
||||||
- Any previously staged changes in the index will be lost.
|
- Any previously staged changes in the index will be lost.
|
||||||
|
|
|
@ -22,7 +22,6 @@ import qualified Annex.Branch
|
||||||
import Logs
|
import Logs
|
||||||
import Logs.UUIDBased
|
import Logs.UUIDBased
|
||||||
import qualified Annex.UUID
|
import qualified Annex.UUID
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
|
|
||||||
import qualified Data.Map.Strict as M
|
import qualified Data.Map.Strict as M
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,6 @@ import Config
|
||||||
import Config.DynamicConfig
|
import Config.DynamicConfig
|
||||||
import Git.Types (RemoteName)
|
import Git.Types (RemoteName)
|
||||||
import Utility.Aeson
|
import Utility.Aeson
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
|
|
||||||
{- Map from UUIDs of Remotes to a calculated value. -}
|
{- Map from UUIDs of Remotes to a calculated value. -}
|
||||||
remoteMap :: (Remote -> v) -> Annex (M.Map UUID v)
|
remoteMap :: (Remote -> v) -> Annex (M.Map UUID v)
|
||||||
|
|
|
@ -22,7 +22,6 @@ import Types.CleanupActions
|
||||||
import Messages.Progress
|
import Messages.Progress
|
||||||
import Utility.Metered
|
import Utility.Metered
|
||||||
import Utility.Tmp
|
import Utility.Tmp
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Backend.URL
|
import Backend.URL
|
||||||
import Annex.Perms
|
import Annex.Perms
|
||||||
import Annex.UUID
|
import Annex.UUID
|
||||||
|
|
|
@ -29,7 +29,6 @@ import Config
|
||||||
import Crypto
|
import Crypto
|
||||||
import Types.Crypto
|
import Types.Crypto
|
||||||
import qualified Annex
|
import qualified Annex
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
|
|
||||||
-- Used to ensure that encryption has been set up before trying to
|
-- Used to ensure that encryption has been set up before trying to
|
||||||
-- eg, store creds in the remote config that would need to use the
|
-- eg, store creds in the remote config that would need to use the
|
||||||
|
|
|
@ -52,7 +52,6 @@ import Types.MetaData
|
||||||
import Utility.Metered
|
import Utility.Metered
|
||||||
import qualified Annex.Url as Url
|
import qualified Annex.Url as Url
|
||||||
import Utility.DataUnits
|
import Utility.DataUnits
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Annex.Content
|
import Annex.Content
|
||||||
import Annex.Url (withUrlOptions)
|
import Annex.Url (withUrlOptions)
|
||||||
import Utility.Url (checkBoth, UrlOptions(..))
|
import Utility.Url (checkBoth, UrlOptions(..))
|
||||||
|
|
|
@ -12,9 +12,6 @@ module Utility.DirWatcher.INotify where
|
||||||
import Common hiding (isDirectory)
|
import Common hiding (isDirectory)
|
||||||
import Utility.ThreadLock
|
import Utility.ThreadLock
|
||||||
import Utility.DirWatcher.Types
|
import Utility.DirWatcher.Types
|
||||||
#if MIN_VERSION_hinotify(0,3,10)
|
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
#endif
|
|
||||||
|
|
||||||
import System.INotify
|
import System.INotify
|
||||||
import qualified System.Posix.Files as Files
|
import qualified System.Posix.Files as Files
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
module Utility.Metered where
|
module Utility.Metered where
|
||||||
|
|
||||||
import Common
|
import Common
|
||||||
import Utility.FileSystemEncoding
|
|
||||||
import Utility.Percentage
|
import Utility.Percentage
|
||||||
import Utility.DataUnits
|
import Utility.DataUnits
|
||||||
import Utility.HumanTime
|
import Utility.HumanTime
|
||||||
|
|
Loading…
Add table
Reference in a new issue