Commit graph

6044 commits

Author SHA1 Message Date
Joey Hess
27ea68ac6e handle transfer repository bootstrapping
When there's just 1 client repo, and a transfer repo is created, its
preferred content will now make it prefer all content in the client,
even though there's no other client yet to transfer it to. Presumably,
another client will be created eventually. It might even already exist,
and the transfer repo will be used to connect up with it.
2012-10-14 16:08:21 -04:00
Joey Hess
2aacae3ebb always make removable drive repos bare
None-bare removable drive repos don't have the assistant running in them,
so don't get their master branch updated as syncs come in. This will
probably change later, but for now, set up something that works.

Also, set the description of a newly added drive's repo locally. This
ensures that the repo edit form has the description in it.
2012-10-14 15:53:40 -04:00
Joey Hess
d9e65ff4be format 2012-10-14 15:22:33 -04:00
Joey Hess
51ef707a59 nub the autostart file
It's possible for the file to get duplicate lines in it, and if so, we want
to ignore the dups.
2012-10-14 15:19:34 -04:00
Joey Hess
04a69b22b1 update 2012-10-14 15:15:24 -04:00
Joey Hess
6144f325b9 reorder
get list of remotes after, rather than before, a potentially blocking action
2012-10-14 15:09:37 -04:00
Joey Hess
592d55ef7c fix display of transfers for remotes not in syncRemotes list 2012-10-14 14:51:11 -04:00
Joey Hess
6ea6a2e71c better variable name 2012-10-14 14:50:03 -04:00
Joey Hess
b2d266267f avoid queuing transfers for remotes after syncing to them is paused
This avoids the expensive transfer scan relying on its list of remotes
to scan being accurate throughout, which it will not be when the user
pauses syncing to a remote.

I feel it's ok to queue transfers to *any* known remote, not just the ones
being scanned.

Note that there are still small races where after syncing to a remote is
paused, a transfer can be queued for it. Not just in the expensive transfer
scan, but in the cheap failed transfer scan, and elsewhere.
2012-10-14 14:34:05 -04:00
Joey Hess
4571ad9590 add help command 2012-10-13 19:07:56 -04:00
Joey Hess
9555e26950 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-13 18:26:58 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnhzb9AQj5y4pUFlksrUIQ1z9AO1BcuZMw
d00ec669d6 2012-10-13 22:23:46 +00:00
Joey Hess
c78975babb avoid duplicate code with a more generic monadic matcher
Interesting type signature ghc derived for this:
forall o (m :: * -> *). Monad m => Matcher o -> (o -> m Bool) -> m Bool
2012-10-13 15:17:15 -04:00
Joey Hess
902ef88266 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-13 13:22:59 -04:00
Joey Hess
9c3e1ca3c9 full analysis of ways content could stop being preferred and need to be dropped 2012-10-13 13:21:43 -04:00
helmut
8c8dd7bb8d Added a comment: Asynchronous hooks? 2012-10-13 09:46:14 +00:00
89.0.176.236
de1789e9d3 poll vote (My phone (or MP3 player)) 2012-10-13 08:41:33 +00:00
122.110.137.225
1bab21a3fb poll vote (My phone (or MP3 player)) 2012-10-13 07:27:37 +00:00
Joey Hess
e52fc5ba89 vicfg: New file format, avoids ambiguity with repos that have the same description, or no description.
This is also nice in that uuids are all the same length, so the values
of each line, line up.

Also a great deal of boilerplate elimination.
2012-10-12 23:11:26 -04:00
Joey Hess
ab9c032deb blog for the day 2012-10-12 19:43:16 -04:00
99.52.196.7
f6ebd9fdb6 poll vote (Tahoe-LAFS) 2012-10-12 21:38:30 +00:00
93.71.131.82
971823ba37 poll vote (Tahoe-LAFS) 2012-10-12 21:20:05 +00:00
98.207.29.118
fedcac50a3 poll vote (Tahoe-LAFS) 2012-10-12 20:49:53 +00:00
75.101.56.72
1ecc3d7310 poll vote (Tahoe-LAFS) 2012-10-12 18:50:00 +00:00
Joey Hess
890b34c670 add news item for git-annex 3.20121010 2012-10-12 14:18:52 -04:00
Joey Hess
e2e084e0ab Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-12 14:18:17 -04:00
Joey Hess
8c4d5130eb releasing version 3.20121010 2012-10-12 14:17:57 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmsz4weoPXV2oEtv3zpo9dOxn_SEPz-7Iw
5fc706a896 Added a comment: reasons to like Tahoe-LAFS as a special remote 2012-10-12 18:17:43 +00:00
Joey Hess
195707e023 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-12 14:17:05 -04:00
Joey Hess
ba8c21c421 update install instructions for Fedora
now available in Fedora
2012-10-12 14:07:53 -04:00
97.118.99.24
564f3b8b05 poll vote (Tahoe-LAFS) 2012-10-12 18:06:28 +00:00
50.56.129.169
17225cfac5 poll vote (Tahoe-LAFS) 2012-10-12 18:06:05 +00:00
Joey Hess
e290f1b903 Automatically detect when a ssh remote does not have git-annex-shell installed, and set annex-ignore.
Aka solve the github problem.

Note that it's possible the initial configlist will fail for some network
reason etc, and then the fetch succeeds. In this case, a usable remote gets
disabled. But it does print a message, and this only happens once per
remote, so that seems ok.
2012-10-12 13:45:14 -04:00
Joey Hess
75dccc57ba note infelicities with syncing disabling 2012-10-12 12:49:22 -04:00
Joey Hess
3f06c883f2 hook up syncing toggles
Although I observe that these toggles don't always prevent syncing.
When a transfer scan is active, it will still queue items from the disabled
remote.

Also, transfers from a disabled remote show up as from "unknown", which is
not ideal.
2012-10-12 12:45:16 -04:00
Joey Hess
06831e7754 fix slightly incorrect comment 2012-10-12 12:20:45 -04:00
Joey Hess
e05c21cb73 Fix a crash when merging files in the git-annex branch that contain invalid utf8.
The crash actually occurred when writing out the file, which was done to a
handle that had not had fileSystemEncoding applied to it.
2012-10-12 12:19:30 -04:00
Joey Hess
aa8b15d966 add several names I missed before 2012-10-12 01:31:03 -04:00
Joey Hess
549c779a38 use gitRepo 2012-10-12 01:17:45 -04:00
Joey Hess
a7642b3b6e add syncing enabled/disabled to repo list with icon, and toggle link
The toggle link doesn't work yet.

Also lots of refactoring and type improvements
2012-10-12 01:09:28 -04:00
Joey Hess
c835374040 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-11 21:44:08 -04:00
Joey Hess
b30656acea use DYLD_ROOT_PATH
With this, I can use jimmy's autobuilt dmg, which fails with the other two
variables due to containing two versions of libiconv.
2012-10-11 21:42:48 -04:00
http://joeyh.name/
bae0b7db8b Added a comment 2012-10-11 23:48:37 +00:00
http://joeyh.name/
85794500ff Added a comment 2012-10-11 23:41:36 +00:00
Joey Hess
9b760150b7 fix crash when editing the current repo 2012-10-11 19:36:28 -04:00
Joey Hess
0b266f970f set/unset annex-sync, rather than annex-ignore
This reserves annex.ignore for repos that should not be visible at all;
repos with syncing disabled are now skipped by the assistant, but are
displayed in the list and can be configured.
2012-10-11 19:22:29 -04:00
Joey Hess
2602c8f877 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-11 19:22:27 -04:00
74.71.57.26
5c2f74898d poll vote (My phone (or MP3 player)) 2012-10-11 23:17:20 +00:00
Joey Hess
589d1711f2 git config remote.name.annex-sync can be used to control whether a remote gets synced. 2012-10-11 18:39:21 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlZvtBCVyJw4O71OPsdwGpVh6iJ1W-xaPc
63ecd149b0 Added a comment 2012-10-11 21:56:26 +00:00