summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-20 16:07:14 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-20 16:31:46 -0400
commite0fdfb2e706da2cb1451193c658dc676b0530968 (patch)
tree89ec8551867956be229af9fb726a8bb7a65d6543 /Command
parentad11de94e54d17c765d980bfe249eca1c9b6cabd (diff)
maintain set of files pendingAdd
Kqueue needs to remember which files failed to be added due to being open, and retry them. This commit gets the data in place for such a retry thread. Broke KeySource out into its own file, and added Eq and Ord instances so it can be stored in a Set.
Diffstat (limited to 'Command')
-rw-r--r--Command/Add.hs1
-rw-r--r--Command/AddUrl.hs1
-rw-r--r--Command/Migrate.hs1
3 files changed, 3 insertions, 0 deletions
diff --git a/Command/Add.hs b/Command/Add.hs
index 43f186fbf..73edb5eaa 100644
--- a/Command/Add.hs
+++ b/Command/Add.hs
@@ -12,6 +12,7 @@ import Annex.Exception
import Command
import qualified Annex
import qualified Annex.Queue
+import Types.KeySource
import Backend
import Logs.Location
import Annex.Content
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index 369940bdf..bef1d6875 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -20,6 +20,7 @@ import Annex.Content
import Logs.Web
import qualified Option
import Types.Key
+import Types.KeySource
import Config
def :: [Command]
diff --git a/Command/Migrate.hs b/Command/Migrate.hs
index 29e664ce2..c7c0d7af3 100644
--- a/Command/Migrate.hs
+++ b/Command/Migrate.hs
@@ -11,6 +11,7 @@ import Common.Annex
import Command
import Backend
import qualified Types.Key
+import Types.KeySource
import Annex.Content
import qualified Command.ReKey