summaryrefslogtreecommitdiff
path: root/Assistant
Commit message (Collapse)AuthorAge
* avoid unnecessary transfer scans when syncing a disconnected remoteGravatar Joey Hess2012-08-22
| | | | | | | | | | | | | | | | | | | | Found a very cheap way to determine when a disconnected remote has diverged, and has new content that needs to be transferred: Piggyback on the git-annex branch update, which already checks for divergence. However, this does not check if new content has appeared locally while disconnected, that should be transferred to the remote. Also, this does not handle cases where the two git repos are in sync, but their content syncing has not caught up yet. This code could have its efficiency improved: * When multiple remotes are synced, if any one has diverged, they're all queued for transfer scans. * The transfer scanner could be told whether the remote has new content, the local repo has new content, or both, and could optimise its scan accordingly.
* move some git operations outside the annex monad to avoid blocking other threadsGravatar Joey Hess2012-08-22
|
* refactorGravatar Joey Hess2012-08-22
|
* add NetWatcher threadGravatar Joey Hess2012-08-21
| | | | | | This deals with interruptions in network connectevity, by listening for a new network interface coming up (using dbus to see when network-manager or wicd do it), and forcing a rescan of
* make canCheckSymlink check in a parent directory if the directory DNEGravatar Joey Hess2012-08-16
|
* run resumed transfers immediately, do not wait for free transfer slotGravatar Joey Hess2012-08-12
| | | | | The resumed transfer still uses a slot, so will delay other, queued transfers from starting.
* implement resuming of paused transfersGravatar Joey Hess2012-08-12
| | | | | Currently waits for a new transfer slot to open up, which probably needs to change..
* fix button display for paused transferGravatar Joey Hess2012-08-10
|
* implement pausing of transfersGravatar Joey Hess2012-08-10
| | | | | | A paused transfer's thread keeps running, keeping the slot in use. This is intentional; pausing a transfer should not let other queued transfers to run in its place.
* send update notificaton when removing a queued transferGravatar Joey Hess2012-08-10
|
* remove dummyGravatar Joey Hess2012-08-10
|
* process group killingGravatar Joey Hess2012-08-10
| | | | | | | | | | | | | | | | | | | | This seems to work pretty well. Handled the process groups like this: - git-annex processes started by the assistant for transfers are run in their own process groups. - otherwise, rely on the shell to allocate a process group for git-annex There is potentially a problem if some other program runs git-annex directly (not using sh -c) The program and git-annex would then be in the same process group. If that git-annex starts a transfer and it's canceled, the program would also get killed. May or may not be a desired result. Also, the new updateTransferInfo probably closes a race where it was possible for the thread id to not be recorded in the transfer info, if the transfer info file from the transfer process is read first.
* fork off git-annex copy for transfersGravatar Joey Hess2012-08-10
| | | | | | | | | | | | | | This doesn't quite work, because canceling a transfer sends a signal to git-annex, but not to rsync (etc). Looked at making git-annex run in its own process group, which could then be killed, and would kill child processes. But, rsync checks if it's process group is the foreground process group and doesn't show progress if not, and when git has run git-annex, if git-annex makes a new process group, that is not the case. Also, if git has run git-annex, ctrl-c wouldn't be propigated to it if it made a new process group. So this seems like a blind alley, but recording it here just in case.
* transfer cancelingGravatar Joey Hess2012-08-08
| | | | | | | | | | Should work (untested) for transfers being run by other processes. Not yet by transfers being run by the assistant. killThread does not kill processes forked off by a thread. To fix this, will probably need to make `git annex getkey` and `git annex sendkey` commands that operate on keys, and write their own transfer info. Then the assistant can run them, and kill them, as needed.
* factor out onclick javascriptGravatar Joey Hess2012-08-08
|
* add routes to pause/start/cancel transfersGravatar Joey Hess2012-08-08
| | | | | | | | | | | | | | | | This commit includes a paydown on technical debt incurred two years ago, when I didn't know that it was bad to make custom Read and Show instances for types. As the routes need Read and Show for Transfer, which includes a Key, and deriving my own Read instance of key was not practical, I had to finally clean that up. So the compact Key read and show functions are now file2key and key2file, and Read and Show are now derived instances. Changed all code that used the old instances, compiler checked. (There were a few places, particularly in Command.Unused, and the test suite where the Show instance continue to be used for legitimate comparisons; ie show key_x == show key_y (though really in a bloom filter))
* fix display of icon in block alert headingGravatar Joey Hess2012-08-06
|
* added an alert after a file transferGravatar Joey Hess2012-08-06
|
* better alert message generationGravatar Joey Hess2012-08-06
|
* make alerts change tense when they finishGravatar Joey Hess2012-08-06
|
* merge two repository screens into oneGravatar Joey Hess2012-08-05
|
* handle case of adding populated drive to just created repoGravatar Joey Hess2012-08-05
| | | | | The just created repo has no master branch commits yet. This is now handled, merging in the master branch from the populated drive.
* wordingGravatar Joey Hess2012-08-05
| | | | | De-emphasize "clone", because it's not that simple. The removable drive may already have an annex with content; if so it'll get synced in.
* fix crashes when run in a git repo that has been initted but has no master ↵Gravatar Joey Hess2012-08-05
| | | | branch yet
* fix crash when just one remote needs to be scannedGravatar Joey Hess2012-08-05
| | | | | | | | | The TMVar is supposed to be left empty once the map is empty, but the code neglected to do that, so the next time takeMVar got an empty map, which is not handled since that was supposed to never happen.. Also, avoid any possibility of this crash. If an empty map somehow creeps in, just retry.
* avoid headGravatar Joey Hess2012-08-05
|
* adding removable drive repos now basically worksGravatar Joey Hess2012-08-05
|
* wire up scan and transfer to newly added removable driveGravatar Joey Hess2012-08-04
| | | | remote setup still todo
* work toward adding new repos on removable drivesGravatar Joey Hess2012-08-04
| | | | | This actually does add a new repo, but it doesn't yet set up remotes, or sync to it.
* improved configGravatar Joey Hess2012-08-03
|
* add extra sidebar widgetGravatar Joey Hess2012-08-03
| | | | html is slightly broken
* moving toward configuring new repos in the webappGravatar Joey Hess2012-08-03
|
* updateGravatar Joey Hess2012-08-03
| | | | default description will be added elsewhere
* run the file browser in a separate thread to avoid blocking the browserGravatar Joey Hess2012-08-03
|
* add a navbar button that opens the repo in the desktop's native file browserGravatar Joey Hess2012-08-03
| | | | | | | | | | This should work on linux (xdg-open) and OSX (open). If the program is not in $PATH, it falls back to opening a browser window/tab with file:/// The only tricky bit is the javascript code, that handles clicking on the link. This is to avoid unnecessary page refreshes. Until I added the return false at the end, the <a>'s normal click event also fired, so two file browsers opened. I have not checked portability extensively.
* add alert when committingGravatar Joey Hess2012-08-02
|
* avoid bogus alert errorsGravatar Joey Hess2012-08-02
|
* add slight delay in between sidebar updates, to avoid excessive churnGravatar Joey Hess2012-08-02
| | | | | Tested and 0.01 seconds is not perceivable as a delay when interacting with the UI.
* refactorGravatar Joey Hess2012-08-02
|
* add some strictness annotationsGravatar Joey Hess2012-08-02
| | | | on general principles
* trim long filenames (have to fit on the sidebar)Gravatar Joey Hess2012-08-02
| | | | | | | | 30 characters would mostly work, but 20 is safer due to some wider letters like 'w'. Of course this is very heuristic based on filesize anyway. (Bootstrap does a surprisingly bad job at dealing with overlong words in the sidebar.)
* awesome alert combiningGravatar Joey Hess2012-08-02
| | | | | | | | | Now an alert tracks files that have recently been added. As a large file is added, it will have its own alert, that then combines with the tracker when dones. Also used for combining sanity checker alerts, as it could possibly want to display a lot.
* avoid showing alert when there are no remotes to push toGravatar Joey Hess2012-08-02
|
* fix tilde expansionGravatar Joey Hess2012-08-02
|
* better ~/ handlingGravatar Joey Hess2012-08-02
|
* support XDG_DATA_DIRGravatar Joey Hess2012-08-02
|
* full autostart supportGravatar Joey Hess2012-08-02
| | | | | | | | git annex assistant --autostart will start separate daemons in each listed autostart repo running the webapp outside any git-annex repo will open it on the first listed autostart repo
* don't use hamlet for htmlshimGravatar Joey Hess2012-08-01
| | | | | | This allows me to not build-depend on blaze-markup, which was causing me some trouble when tring to build with cabal on debian. Seems debian ships Text.Blaze.Renderer.String in two packages.
* cleanupGravatar Joey Hess2012-08-01
|
* implemented firstrun repository creation and redirection to full webappGravatar Joey Hess2012-08-01
| | | | Some of the trickiest code I've possibly ever written.