Commit graph

6001 commits

Author SHA1 Message Date
Joey Hess
f67b54e5e3 make a pipeReadStrict, that properly waits on the process
Nearly everything that's reading from git is operating on a small
amount of output and has been switched to use that. Only pipeNullSplit
stuff continues using the lazy version that yields zombies.
2012-10-04 18:04:09 -04:00
Joey Hess
046f51c93b reopening; zombies do seem to accumulate sometimes 2012-10-04 17:40:22 -04:00
Joey Hess
2b0423e13f Only build-depend on libghc-clientsession-dev on arches that will have the webapp. 2012-10-04 17:08:43 -04:00
Joey Hess
3567643e2a blog for the day 2012-10-04 16:55:50 -04:00
Joey Hess
bc649a35ba added preferred-content log, and allow editing it with vicfg
This includes a full parser for the boolean expressions in the log,
that compiles them into Matchers. Those matchers are not used yet.

A complication is that matching against an expression should never
crash git-annex with an error. Instead, vicfg checks that the expressions
parse. If a bad expression (or an expression understood by some future
git-annex version) gets into the log, it'll be ignored.

Most of the code in Limit couldn't fail anyway, but I did have to make
limitCopies check its parameter first, and return an error if it's bad,
rather than erroring at runtime.
2012-10-04 16:00:19 -04:00
Joey Hess
c809f3d486 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-04 13:29:04 -04:00
https://www.google.com/accounts/o8/id?id=AItOawlFUH5H4OUj9vMJIoXQs8bheiptgANQ6fU
0d8f90d91c 2012-10-04 13:26:01 +00:00
https://www.google.com/accounts/o8/id?id=AItOawm9n2FZTQzC5wvWqgKKnU0HyuC5vgVkfbY
8dd7fe7e41 2012-10-04 05:57:59 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmcYryijvlF8bJvM_eZNSrUPEkMlxMDGTQ
9963a3a74c Added a comment: The bug is actually something completely different! 2012-10-04 03:53:58 +00:00
Joey Hess
4493d5f6c3 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-03 23:29:53 -04:00
Joey Hess
b67525ce65 tweak 2012-10-03 23:29:37 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmcYryijvlF8bJvM_eZNSrUPEkMlxMDGTQ
4c366d6a09 Fixed formatting. 2012-10-04 02:25:24 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmcYryijvlF8bJvM_eZNSrUPEkMlxMDGTQ
0f682bc6fc Bug description. 2012-10-04 02:20:38 +00:00
Joey Hess
e138a514a9 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-03 19:41:26 -04:00
Joey Hess
d7898605e3 blog for the day 2012-10-03 19:39:53 -04:00
Joey Hess
b793b77d85 finished vicfg
One note: Deleted lines are not currently parsed as config changes.
That makes sense for trust settings. It may make sense to support deleted
lines as a way to clear group settings.
2012-10-03 19:37:39 -04:00
Joey Hess
dda953bcce wrote parser 2012-10-03 19:13:21 -04:00
Joey Hess
7a7f63182c vicfg: New command, allows editing (or simply viewing) most of the repository configuration settings stored in the git-annex branch.
Incomplete; I need to finish parsing and saving. This will also be used
for editing transfer control expresssions.

Removed the group display from the status output, I didn't really
like that format, and vicfg can be used to see as well as edit rempository
group membership.
2012-10-03 17:04:52 -04:00
Joey Hess
949fdcb63a better example 2012-10-03 11:02:34 -04:00
https://www.google.com/accounts/o8/id?id=AItOawknpbpx4uDElXRzJ4kPXuJU1KdcslOI6go
dc5dd9f22a Added a comment: I strongly agree with Glen 2012-10-03 14:07:41 +00:00
62.93.122.86
377330f2c1 poll vote (My phone (or MP3 player)) 2012-10-03 09:35:07 +00:00
http://wiggy.net/
e7fe412a6d Added a comment: symlinks? 2012-10-03 07:15:22 +00:00
65.12.145.136
58a2e4175e poll vote (My phone (or MP3 player)) 2012-10-03 00:55:16 +00:00
65.12.145.136
ff676a1670 poll vote (Google Drive) 2012-10-03 00:54:54 +00:00
65.12.145.136
c537490c32 poll vote (Amazon Glacier) 2012-10-03 00:54:41 +00:00
Joey Hess
c696db7dd4 blog for the day 2012-10-02 18:16:58 -04:00
Joey Hess
9a3471971b avoid crashing committer if it fails to stage changes
Just retry later.
2012-10-02 18:04:06 -04:00
Joey Hess
9aab70de66 always check with ls-files before adding new files
Makes it safe to use git annex unlock with the watcher/assistant.
And also to mix use of the watcher/assistant with regular files stored in git.

Long ago, I had avoided doing this check, except during the startup scan,
because it would be slow to run ls-files repeatedly.

But then I added the lsof check, and to make that fast, got it to detect
batch file adds. So let's move the ls-files check to also occur when it'll
have a batch, and can check them all with one call.

This does slow down adding a single file by just a bit, but really only
a little bit. (The lsof check is probably more expensive.) It also
speeds up the startup scan, especially when there are lots of new files
found by the scan.

Also, fixed the sleep for annex.delayadd to not run while the threadstate
lock is held, so it doesn't unnecessarily freeze everything else.

Also, --force no longer makes it skip the lsof check, which was not
documented, and seems never a good idea.
2012-10-02 17:41:23 -04:00
Joey Hess
717e008390 status: display repository groups 2012-10-02 13:45:30 -04:00
Joey Hess
613e747d91 bring back default SIGINT handler
This seems to fix a problem I've recently seen where ctrl-c during rsync
leads to `git annex get` moving on to the next thing rather than exiting.

Seems likely that started happening with the switch to System.Process
(d1da9cf221), as the old code took care
to install a default SIGINT handler.

Note that since the bug was only occurring sometimes, I am not 100% sure
I've squashed it, although I seem to have.
2012-10-01 23:01:29 -04:00
Joey Hess
9770582859 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-01 18:41:12 -04:00
Joey Hess
adec96ba03 blog for the day 2012-10-01 18:39:54 -04:00
Joey Hess
3846c7ae5e terminology 2012-10-01 18:26:47 -04:00
Joey Hess
eeaa8dada8 A way to match files in repositories in a group
--copies=group:number can now be used to match files that are present in a
specified number of repositories in a group.
2012-10-01 18:25:11 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmnG4EuvZWse5hvgrl0XAK-U61e-0iGaao
7ba7ec49be Added a comment: nolock option worked 2012-10-01 20:31:19 +00:00
Joey Hess
5bd5bc094a simplify 2012-10-01 15:17:21 -04:00
Joey Hess
2a96b1aab3 group, ungroup: New commands to indicate groups of repositories. 2012-10-01 15:12:04 -04:00
Joey Hess
cf858190a5 add news item for git-annex 3.20121001 2012-10-01 14:14:05 -04:00
Joey Hess
bd1d9b52b4 Merge branch 'master' of ssh://git-annex.branchable.com 2012-10-01 14:13:06 -04:00
Joey Hess
e0432bc140 releasing version 3.20121001 2012-10-01 14:12:31 -04:00
Joey Hess
3504fd13a8 document new --copies=trustlevel:number 2012-10-01 13:52:39 -04:00
Joey Hess
0ea56761a9 typo 2012-10-01 13:50:45 -04:00
Joey Hess
915c1e531f typo 2012-10-01 13:41:05 -04:00
Joey Hess
e24ff46f96 move 2012-10-01 13:38:19 -04:00
Joey Hess
f159cda450 tweak 2012-10-01 12:11:03 -04:00
Joey Hess
f5022e77be notes on possibilities 2012-10-01 11:30:51 -04:00
http://lj.rossia.org/users/imz/
bbba59aa03 Wikilink to the command in question. 2012-10-01 11:33:51 +00:00
http://joeyh.name/
659855efef Added a comment 2012-09-30 17:11:13 +00:00
http://rjc.pip.verisignlabs.com/
4e69098f52 Added a comment: assistant in Debian 2012-09-30 09:10:18 +00:00
Joey Hess
33fdcd59be tweak 2012-09-29 16:22:53 -04:00