Joey Hess
6ea6a2e71c
better variable name
2012-10-14 14:50:03 -04:00
Joey Hess
df337bb63b
hlint
2012-09-13 00:57:52 -04:00
Joey Hess
a00f1d26bc
display errors when any named thread crashes
2012-09-06 14:56:04 -04:00
Joey Hess
271ea49978
add support for readonly remotes
...
Currently only the web special remote is readonly, but it'd be possible to
also have readonly drives, or other remotes. These are handled in the
assistant by only downloading from them, and never trying to upload to
them.
2012-08-26 15:39:02 -04:00
Joey Hess
4d269db520
don't exclude special remotes from the knownRemotes list used by the assistant
...
But do exclude them when pushing out changes.
2012-08-26 14:56:56 -04:00
Joey Hess
68659f4998
refactor
2012-08-22 14:32:17 -04:00
Joey Hess
5ae1f75a39
handle case of adding populated drive to just created repo
...
The just created repo has no master branch commits yet. This is now
handled, merging in the master branch from the populated drive.
2012-08-05 16:35:30 -04:00
Joey Hess
34fc0d358e
fix crashes when run in a git repo that has been initted but has no master branch yet
2012-08-05 15:53:47 -04:00
Joey Hess
3695cab949
avoid showing alert when there are no remotes to push to
2012-08-02 09:00:13 -04:00
Joey Hess
40c9973675
fix push status, broken when inParallel was adapted for -threaded
...
Before pushing ran in its own process, so exitSuccess was the right thing
to do, but with the threaded code, that's caught as an exception.
2012-07-30 11:52:44 -04:00
Joey Hess
3dce75fb23
make old activiy alerts stay visible
...
They're updated to show whether the activity succeeded or failed.
This adds several TODOs to the code to fix later.
2012-07-30 02:39:24 -04:00
Joey Hess
d52c932424
moved all alert messages into one file
...
Makes it easier to edit for consistent voice etc.
2012-07-29 18:09:24 -04:00
Joey Hess
b2dc8fdb06
add more alerts
...
Nearly all long-running actions now display an alert.
2012-07-29 17:53:18 -04:00
Joey Hess
3cc1885793
move DaemonStatus manipulation out of the Annex monad to IO
...
I've convinced myself that nothing in DaemonStatus can deadlock,
as it always keepts the TMVar full. That was the only reason it was in the
Annex monad.
2012-07-28 18:02:11 -04:00
Joey Hess
522f568450
add TransferScanner thread
...
Efficiently finding transfers that need to be done to get two repos back
in sync seems like an interesting problem.
2012-07-22 23:16:56 -04:00
Joey Hess
b48d7747a3
debugging improvements
...
add timestamps to debug messages
Add lots of debug output in the assistant's threads.
2012-07-20 19:29:59 -04:00
Joey Hess
83c66ccaf8
queue Uploads of newly added files to remotes
...
Added knownRemotes to DaemonStatus. This list is not entirely trivial to
calculate, and having it here should make it easier to add/remove remotes
on the fly later on. It did require plumbing the daemonstatus through to
some more threads.
2012-07-05 10:21:22 -06:00
Joey Hess
67c8ef7de2
use a TMVar
...
SampleMVar won't work; between getting the current value and changing
it, another thread could made a change, which would get lost.
TMVar works well; this update situation is handled by atomic transactions.
2012-06-26 19:21:44 -04:00
Joey Hess
05c4dfb941
fixup merges now done when needed
2012-06-25 20:16:30 -04:00
Joey Hess
5cfe91f06d
add a push retry thread
2012-06-25 16:38:12 -04:00
Joey Hess
0b146f9ecc
reorg threads
2012-06-25 16:10:24 -04:00