From 0b146f9ecc36545478c4a2218981b376828c61db Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 25 Jun 2012 16:10:10 -0400 Subject: [PATCH] reorg threads --- Assistant.hs | 10 +++++----- Assistant/{ => Threads}/Committer.hs | 4 ++-- Assistant/{ => Threads}/Merger.hs | 2 +- Assistant/{ => Threads}/Pusher.hs | 2 +- Assistant/{ => Threads}/SanityChecker.hs | 8 ++++---- Assistant/{ => Threads}/Watcher.hs | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) rename Assistant/{ => Threads}/Committer.hs (98%) rename Assistant/{ => Threads}/Merger.hs (98%) rename Assistant/{ => Threads}/Pusher.hs (98%) rename Assistant/{ => Threads}/SanityChecker.hs (93%) rename Assistant/{ => Threads}/Watcher.hs (99%) diff --git a/Assistant.hs b/Assistant.hs index ce230533cf..ec46894a5b 100644 --- a/Assistant.hs +++ b/Assistant.hs @@ -59,11 +59,11 @@ import Assistant.ThreadedMonad import Assistant.DaemonStatus import Assistant.Changes import Assistant.Commits -import Assistant.Watcher -import Assistant.Committer -import Assistant.Pusher -import Assistant.Merger -import Assistant.SanityChecker +import Assistant.Threads.Watcher +import Assistant.Threads.Committer +import Assistant.Threads.Pusher +import Assistant.Threads.Merger +import Assistant.Threads.SanityChecker import qualified Utility.Daemon import Utility.LogFile diff --git a/Assistant/Committer.hs b/Assistant/Threads/Committer.hs similarity index 98% rename from Assistant/Committer.hs rename to Assistant/Threads/Committer.hs index 0c69995912..488056fa2b 100644 --- a/Assistant/Committer.hs +++ b/Assistant/Threads/Committer.hs @@ -5,13 +5,13 @@ - Licensed under the GNU GPL version 3 or higher. -} -module Assistant.Committer where +module Assistant.Threads.Committer where import Common.Annex import Assistant.Changes import Assistant.Commits import Assistant.ThreadedMonad -import Assistant.Watcher +import Assistant.Threads.Watcher import qualified Annex import qualified Annex.Queue import qualified Git.Command diff --git a/Assistant/Merger.hs b/Assistant/Threads/Merger.hs similarity index 98% rename from Assistant/Merger.hs rename to Assistant/Threads/Merger.hs index 988cbd8a63..d2c8b9b766 100644 --- a/Assistant/Merger.hs +++ b/Assistant/Threads/Merger.hs @@ -5,7 +5,7 @@ - Licensed under the GNU GPL version 3 or higher. -} -module Assistant.Merger where +module Assistant.Threads.Merger where import Common.Annex import Assistant.ThreadedMonad diff --git a/Assistant/Pusher.hs b/Assistant/Threads/Pusher.hs similarity index 98% rename from Assistant/Pusher.hs rename to Assistant/Threads/Pusher.hs index 7504d44c20..de90d4e64c 100644 --- a/Assistant/Pusher.hs +++ b/Assistant/Threads/Pusher.hs @@ -5,7 +5,7 @@ - Licensed under the GNU GPL version 3 or higher. -} -module Assistant.Pusher where +module Assistant.Threads.Pusher where import Common.Annex import Assistant.Commits diff --git a/Assistant/SanityChecker.hs b/Assistant/Threads/SanityChecker.hs similarity index 93% rename from Assistant/SanityChecker.hs rename to Assistant/Threads/SanityChecker.hs index b74c9fe5d2..4db2a61b22 100644 --- a/Assistant/SanityChecker.hs +++ b/Assistant/Threads/SanityChecker.hs @@ -5,7 +5,7 @@ - Licensed under the GNU GPL version 3 or higher. -} -module Assistant.SanityChecker ( +module Assistant.Threads.SanityChecker ( sanityCheckerThread ) where @@ -15,7 +15,7 @@ import Assistant.DaemonStatus import Assistant.ThreadedMonad import Assistant.Changes import Utility.ThreadScheduler -import qualified Assistant.Watcher +import qualified Assistant.Threads.Watcher as Watcher import Data.Time.Clock.POSIX @@ -79,5 +79,5 @@ check st status changechan = do insanity m = runThreadState st $ warning m addsymlink file s = do insanity $ "found unstaged symlink: " ++ file - Assistant.Watcher.runHandler st status changechan - Assistant.Watcher.onAddSymlink file s + Watcher.runHandler st status changechan + Watcher.onAddSymlink file s diff --git a/Assistant/Watcher.hs b/Assistant/Threads/Watcher.hs similarity index 99% rename from Assistant/Watcher.hs rename to Assistant/Threads/Watcher.hs index 78330c8d0a..1b6ec15f18 100644 --- a/Assistant/Watcher.hs +++ b/Assistant/Threads/Watcher.hs @@ -7,7 +7,7 @@ {-# LANGUAGE CPP #-} -module Assistant.Watcher where +module Assistant.Threads.Watcher where import Common.Annex import Assistant.ThreadedMonad