Commit graph

1934 commits

Author SHA1 Message Date
https://www.google.com/accounts/o8/id?id=AItOawkjvjLHW9Omza7x1VEzIFQ8Z5honhRB90I
b8e114bce1 2011-04-28 23:39:28 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkjvjLHW9Omza7x1VEzIFQ8Z5honhRB90I
8b950c5fe8 This demonstrates a git-annex failure when hard links are involved 2011-04-28 23:38:36 +00:00
Joey Hess
ee0238d229 Merge remote-tracking branch 'branchable/master' 2011-04-28 17:31:14 -04:00
Joey Hess
b0efff86b6 wording 2011-04-28 17:28:38 -04:00
http://joey.kitenet.net/
847bbe30b1 Added a comment 2011-04-28 21:22:04 +00:00
Joey Hess
3ab3f41aea hook special remote implemented, and tested 2011-04-28 17:21:45 -04:00
Joey Hess
b5072b7b4c add boolSystemEnv 2011-04-28 16:08:18 -04:00
Joey Hess
56eaf4470a bugfix 2011-04-28 16:08:10 -04:00
Joey Hess
07576f2a2c documentation for hook special remotes
Releasing before I have quite finished the code. Got a little caught
up in Anathem references. Time for a walk and then a tiny bit more coding
and possibly testing.
2011-04-28 15:26:21 -04:00
Joey Hess
d7b330b33b Fix hasKeyCheap setting for bup and rsync special remotes. 2011-04-28 14:39:51 -04:00
Joey Hess
84e1ebfb0e erm, thought I committed this release? 2011-04-28 14:38:01 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmBUR4O9mofxVbpb8JV9mEbVfIYv670uJo
5201c43787 added example fo rusing rsync over ssh 2011-04-28 13:45:32 +00:00
http://christian.amsuess.com/chrysn
d980a55b47 thanks & notes on migration 2011-04-28 11:27:51 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
4e6dd7f319 Added a comment 2011-04-28 07:47:39 +00:00
Joey Hess
7a33803193 Avoid pipeline stall when running git annex drop or fsck on a lot of files.
When it's stalled, there are 3 processes:

git annex
  git ls-files
  git check-attr

git-annex stalls trying to write to git check-attr, which stalls trying to
write to stdout (read by git-annex).

git ls-files does not seem to be involved directly; I've seen the stall when
it was still streaming out the file list, and after it had exited and
zombified.

The read and write are supposed to be handled by two different threads,
which pipeBoth forks off, thus avoiding deadlock. But it does deadlock.
(Certian signals unblock the deadlock for a while, then it stalls again.)

So, this is another case of WTF is the ghc IO manager doing today?
I avoid the issue by converting the writer to a separate process.

Possibly this was caused by some change in ghc 7 -- I'm offline and cannot
verify now, but I'm sure I used to be able to run git annex drop w/o it
hanging! And the code does not seem to have changed, except for commit
c1dc407941, which I tried reverting without
success. In fact, I reverted all the way back to 0.20110316 and still
saw the stall.

Update: Minimal test case:

import System.Cmd.Utils

main = do
	as <- checkAttr "blah" $ map show [1..100000]
	sequence $ map (putStrLn . show) as

checkAttr attr files = do
	(_, s) <- pipeBoth "git" params $ unlines files
	return $ lines s
	where
		params = ["check-attr", attr, "--stdin"]

Bug filed on ghc in debian, #624389
2011-04-27 23:18:35 -04:00
Joey Hess
39966ba4ee filter out --delete rsync option
rsync does not have a --no-delete, so do it this way instead
2011-04-27 20:31:56 -04:00
Joey Hess
e68f128a9b rsync special remote
Fully tested and working, including resuming and encryption. (Though not
resuming when sending *with* encryption; gpg doesn't produce identical
output each time.)

Uses same layout as the directory special remote and the .git/annex/objects/
directory.
2011-04-27 20:23:09 -04:00
Joey Hess
4381ac062f Merge remote-tracking branch 'branchable/master' 2011-04-27 11:18:16 -04:00
Joey Hess
0d6860bb6f drastically simplify instructions for debian stable :) 2011-04-27 11:07:54 -04:00
http://christian.amsuess.com/chrysn
568cb52b6e sftp backend? 2011-04-27 14:27:27 +00:00
Joey Hess
dbdcb67f79 fix test suite when run by root 2011-04-26 20:26:25 -04:00
Joey Hess
948691e893 exit nonzero when there were failure, not just errors
ya, I need a test suite for my test suite
2011-04-26 20:26:19 -04:00
Joey Hess
bb8e3c5b6d more Control.Monad.State export fix 2011-04-26 19:59:01 -04:00
Joey Hess
db83b58d4b Merge remote-tracking branch 'branchable/master' 2011-04-26 19:44:49 -04:00
Joey Hess
33d23a4ef9 Control.Monad.State import fix for debian stable
It doesn't export `state` there, so hiding it fails. Just list explicitly
what we use.
2011-04-26 19:42:40 -04:00
http://joey.kitenet.net/
89dc1e5de3 Added a comment 2011-04-26 23:40:33 +00:00
Joey Hess
168f010fdf typo 2011-04-26 19:39:30 -04:00
gernot
7a3b45db29 Added a comment 2011-04-26 18:56:45 +00:00
Joey Hess
920d736fa9 update 2011-04-26 11:33:59 -04:00
Joey Hess
279c8239c8 Merge remote-tracking branch 'branchable/master' 2011-04-26 11:32:07 -04:00
Joey Hess
5535f91d91 update instructions for stable 2011-04-26 11:30:49 -04:00
http://joey.kitenet.net/
de35104b41 Added a comment 2011-04-26 15:27:49 +00:00
Joey Hess
27774bdd56 Revert "Use haskell Crypto library instead of haskell SHA library.a"
This reverts commit 892593c5ef.

Conflicts:

	Crypto.hs
	debian/control
2011-04-26 11:24:23 -04:00
gernot
ebd6ea1abb 2011-04-26 13:06:58 +00:00
Joey Hess
70d4e7349b ensure tmp file is writable, so rsync can resume
It's possible that rsync finishes transferring a file and sets its mode,
but the file transfer to the annex then fails. When resuming, rsync
would then not be able to write to the tmp file.
2011-04-25 22:04:12 -04:00
Joey Hess
4ea9579b42 add news item for git-annex 0.20110425 2011-04-25 16:03:26 -04:00
Joey Hess
7d71f8770b releasing version 0.20110425 2011-04-25 16:02:57 -04:00
Joey Hess
3d3abab679 move quickcheck Arbitrary declaration into test suite
So git-annex can build w/o quickcheck installed.
2011-04-25 15:28:41 -04:00
Joey Hess
e1bc704a91 Merge remote-tracking branch 'branchable/master' 2011-04-25 14:57:34 -04:00
Joey Hess
76911a446a Avoid using absolute paths when staging location log, as that can confuse git when a remote's path contains a symlink. Closes: #621386
This was a real PITA to fix, since location logs can be staged in
both the current repo, as well as in local remote's repos, in
which case the cwd will not be in the repo. And git add needs different
params in both cases, when absolute paths are not used.

In passing, git annex fsck now stages location log fixes.
2011-04-25 14:54:24 -04:00
Joey Hess
e433c6f0bb generalized relPathDirTo functions 2011-04-25 13:36:39 -04:00
Joey Hess
b0b413c69f fix relative
Not currently used, but was buggy.
2011-04-25 13:02:54 -04:00
Joey Hess
8512a4a1a1 Remove testpack from build depends, as it is not available on all architectures.
The test suite will not be run if it cannot be compiled.

It may be possible later to split off the quickcheck using tests into
a separate program and keep most of the tests using just hunit.
2011-04-25 12:43:22 -04:00
gernot
9715f3132c Added a comment 2011-04-24 11:20:06 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmBUR4O9mofxVbpb8JV9mEbVfIYv670uJo
aa820623dc Added a comment 2011-04-23 17:54:43 +00:00
http://joey.kitenet.net/
96a7b7926e Added a comment 2011-04-23 16:27:13 +00:00
http://joey.kitenet.net/
65adb9240f Added a comment 2011-04-23 16:22:07 +00:00
gernot
a03dc49bb2 2011-04-23 16:02:42 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
028b338c29 Added a comment 2011-04-22 18:27:01 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmBUR4O9mofxVbpb8JV9mEbVfIYv670uJo
ca3f05fd6c 2011-04-22 14:24:17 +00:00