Joey Hess
55f20ae099
xmpp: send a presence query when there's an important message to send
...
This may work around google talk's horrible presence handling, in which
clients often don't learn about other clients, at least when using the same
account. This way, every time we start a git push over xmpp, we'll waste
bandwidth asking clients to please try again to identify themselves.
2013-03-16 15:36:47 -04:00
Joey Hess
e3354cf19c
xmpp: --debug now enables a sanitized dump of the XMPP protocol
...
So I can debug these damn google talk presence issues.
2013-03-16 15:29:51 -04:00
Joey Hess
996e899acc
webapp: Encourage user to install git-annex on a server when adding a ssh server, rather than just funneling them through to rsync.
2013-03-16 12:58:59 -04:00
Joey Hess
c94c99942b
make liftAnnex and liftAssistant polymorphic, like liftIO
2013-03-16 00:19:56 -04:00
Joey Hess
449520a573
add globallyAvailable to remotes
2013-03-15 19:16:13 -04:00
Joey Hess
54c480b416
clear cloud repo nudge when one is created
2013-03-15 18:12:45 -04:00
Joey Hess
77c82de4ea
webapp: Display an alert when there are XMPP remotes, and a cloud transfer repository needs to be configured.
2013-03-15 17:52:41 -04:00
Joey Hess
39e979fb65
webapp: Improved UI for pairing your own devices together using XMPP.
2013-03-15 15:19:07 -04:00
Joey Hess
48d9a3182f
reorg templates
2013-03-15 12:47:41 -04:00
Joey Hess
9cf4701a8f
no longer need webapp state storage! excellent
2013-03-15 01:01:25 -04:00
Joey Hess
810a06b771
webapp: Repository list is now included in the dashboard, and other UI tweaks.
2013-03-15 00:34:42 -04:00
Joey Hess
6c7ce8f193
reorg repolist
2013-03-14 22:10:51 -04:00
Joey Hess
bcc40eac4a
another hamlet compat fix
2013-03-14 16:22:18 -04:00
Joey Hess
bac84ecbcd
some hamlet versions do not support nested tuples
2013-03-14 15:28:11 -04:00
Joey Hess
2bd2703eab
bugfix; simplify
2013-03-14 15:23:45 -04:00
Joey Hess
7289f92522
fix sorting
2013-03-14 14:15:35 -04:00
Joey Hess
a336a7fc1b
show paused remotes in cost order, not at end of repo list
2013-03-14 13:33:30 -04:00
Joey Hess
99dc302d06
webapp: Repository costs can be configured by dragging repositories around in the repository list.
2013-03-14 13:12:27 -04:00
Joey Hess
6af91dadb8
AJAX reordered list back to yesod. THIS TOOK 3 HOURS. Aargh
2013-03-14 11:56:06 -04:00
Joey Hess
b9b5c3991c
drag and drop repo list (doesn't yet actually change cost settings)
2013-03-13 22:47:16 -04:00
Joey Hess
581fe0644f
proof of concept remote reordering UI (needs to be changed to use drag and drop)
2013-03-13 17:59:33 -04:00
Joey Hess
19c0a0d5b1
split cost out into its own module
...
Added a function to insert a new cost into a list, which could be used to
asjust costs after a drag and drop.
2013-03-13 16:30:34 -04:00
Joey Hess
9b657a2ccc
webapp: Set locally paired repositories to a lower cost than other network remotes.
2013-03-13 14:10:29 -04:00
Joey Hess
02facde154
assistant: Be smarter about avoiding unncessary transfers.
...
Just before starting a transfer, do one last check that it's still
preferred content.
I was just doing this for uploads, as part of the smarter flood filling
bug, but realized it's also possible for a download that was preferred
content to change to not be before the download begins, so check that too.
2013-03-13 13:36:02 -04:00
Joey Hess
60760cb430
tweak
2013-03-13 13:11:49 -04:00
Joey Hess
0ef8d806ac
gratuitous rename HomeR -> DashboardR
2013-03-12 22:18:36 -04:00
Joey Hess
8221c2b4ed
split repolist out of configuration, into its own tab (temporarily)
2013-03-12 21:51:03 -04:00
Joey Hess
46a5f1532d
fix warning
2013-03-12 15:47:30 -04:00
Joey Hess
0c3cda3293
fix warning
2013-03-12 15:36:33 -04:00
Joey Hess
602076af28
tweak
2013-03-12 08:15:41 -04:00
Joey Hess
2c05c85437
webapp: DTRT when told to create a git repo that already exists.
2013-03-12 08:09:31 -04:00
Joey Hess
796f1d806f
assistant: Fix ~/.ssh/git-annex-shell wrapper to work when the ssh key does not force a command.
...
Without a forced command, SSH_ORIGINAL_COMMAND is not set.
So instead, in this case, run $@
2013-03-12 07:12:39 -04:00
Joey Hess
ccb7e5cfa4
got hdevtools working on the git-annex source tree
2013-03-12 05:51:34 -04:00
Joey Hess
393340dc3b
better handling of batch renames
...
Rather than wait a full second, which may be longer than needed, or too
short to get all the rename events, we start a mode where we wait 1/10th of
a second, and if there are Changes received, wait again. Basically we're
back in batch mode when this happens.
2013-03-11 15:46:09 -04:00
Joey Hess
14fcfced48
detect directory rename and wait up to 1 second to get all the changes
2013-03-11 15:24:13 -04:00
Joey Hess
f340fd324c
synthesize RmChange when a directory is deleted
...
This gets directory renames closer to being fully detected.
There's close to no extra overhead to doing it this way.
2013-03-11 15:14:42 -04:00
Joey Hess
06046a0d2b
finish fast direct mode rename handling. wow, it's fast
2013-03-11 14:14:45 -04:00
Joey Hess
87cba71d5a
fix changeFile to not be partial
...
That led to runtime crashes, without even a warning from -Wall. Yipes!
2013-03-11 13:55:36 -04:00
Joey Hess
61c5e8736c
detect renames during commit, and .. um, do nothing special because it's lunch time
...
But I'm well set up to fast-track direct mode adds for renames now.
2013-03-11 12:56:47 -04:00
Joey Hess
74f723bb50
let's put type modules under the parent module, not in a Types directory
2013-03-10 22:24:13 -04:00
Joey Hess
2762ab03b4
assistant: generate better commits for renames
2013-03-10 22:10:26 -04:00
Joey Hess
b2c7ee5551
tweak
2013-03-10 20:20:58 -04:00
Joey Hess
f27c21eb0c
avoid ugly alert caused by trying to push to unavailable removable drive
2013-03-10 18:42:28 -04:00
Joey Hess
65a4c7966f
moved transfer queueing out of watcher and into committer
...
This cleaned up the code quite a bit; now the committer just looks at the
Change to see if it's a change that needs to have a transfer queued for it.
If I later want to add dropping keys for files that were removed, or
something like that, this should make it straightforward.
This also fixes a bug. In direct mode, moving a file out of an archive
directory failed to start a transfer to get its content. The problem
was that the file had not been committed to git yet, and so the transfer
code didn't want to touch it, since fileKey failed to get its key.
Only starting transfers after a commit avoids this problem.
2013-03-10 18:16:03 -04:00
Joey Hess
56830af8d8
simpler use of MIN_VERSION checks
2013-03-10 15:43:17 -04:00
Joey Hess
285838633b
show build flags on webapp about page
2013-03-09 14:59:38 -04:00
Joey Hess
bf46e6f15d
fix warning
2013-03-08 22:25:23 -04:00
Joey Hess
0e508f860a
assistant: Sync with all git remotes on startup.
2013-03-08 13:48:27 -04:00
Joey Hess
99989bcc8e
logic error
2013-03-07 14:08:50 -04:00
Joey Hess
6e7a43ab61
avoid listing glacier when prompting to set up a transfer repository after xmpp
2013-03-07 13:01:18 -04:00