This commit is contained in:
Axel Kittenberger 2010-11-13 08:00:07 +00:00
parent 60a14c262f
commit 9aa3ad8e44
2 changed files with 8 additions and 5 deletions

View File

@ -9,11 +9,14 @@ settings = {
statusIntervall = 1, statusIntervall = 1,
} }
----
-- for testing purposes. prefix can be used to slow commands down.
-- prefix = "sleep 5 && "
prefix = ""
---- ----
-- for testing purposes. uses bash command to hold local dirs in sync. -- for testing purposes. uses bash command to hold local dirs in sync.
-- --
prefix = "sleep 5 && " bash = {
slowbash = {
delay = 5, delay = 5,
maxProcesses = 3, maxProcesses = 3,
@ -53,5 +56,5 @@ slowbash = {
end, end,
} }
sync{default.rsync, source="src", target="dst/"} sync{bash, source="src", target="dst/"}

View File

@ -806,8 +806,8 @@ local Sync = (function()
error("Cannot replace events with different paths") error("Cannot replace events with different paths")
end end
else else
log("Delay",nd.etype," turns a move into delete ", log("Delay",nd.etype," turns a Move into delete of ",
od.etype," on ", path) od.path)
od.etype = "Delete" od.etype = "Delete"
od.path2 = nil od.path2 = nil
table.insert(self.delays, nd) table.insert(self.delays, nd)