Commit graph

11093 commits

Author SHA1 Message Date
Joey Hess
a0885d7ce4 blog for the day 2013-05-20 18:49:37 -04:00
Joey Hess
369fb69fe7 fix warning 2013-05-20 18:01:27 -04:00
Joey Hess
5819b18b32 Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-20 17:44:38 -04:00
Joey Hess
82d5750e24 close 2013-05-20 17:44:16 -04:00
http://joeyh.name/
4f176badc7 Added a comment 2013-05-20 21:43:04 +00:00
Joey Hess
e0327eaafc Detect bad content in ~/.config/git-annex/program and look in PATH instead. 2013-05-20 17:42:40 -04:00
Joey Hess
ccdedfae36 Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-20 17:13:17 -04:00
Joey Hess
0cb34f3caa update inode cache after copying content
This was also tripped by the test suite's automatic conflict resolution
test. Which also shows BTW that an unnecessary copy of content is done
sometimes when merging in direct mode. Not going to try to speed that up
now.
2013-05-20 17:11:40 -04:00
Joey Hess
d88be65495 didn't quite get removeDirect right before, this passes test suite 2013-05-20 16:28:33 -04:00
Joey Hess
46eb1ea1e7 add a test case for merge conflict automatic resolution 2013-05-20 16:28:22 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkx5V3MTbzCXS3J7Mn9FEq8M9bPPYMkAHY
572080b65d Added a comment 2013-05-20 19:59:22 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkx5V3MTbzCXS3J7Mn9FEq8M9bPPYMkAHY
13514ebf2d Added a comment 2013-05-20 19:52:30 +00:00
Joey Hess
3d8355d984 Fix a bug in the git-annex branch handling code that could cause info from a remote to not be merged and take effect immediately.
This bug was turned up by the test suite, running fsck in direct mode.
A repository was cloned, was put into direct mode, was fscked, and fsck
incorrectly said that no copy existed of a file, that was actually present
in origin.

This turned out to occur because fsck first did a Annex.Branch.change,
recording that it did not locally have the file. That was recorded in the
journal. Since neither the git annex direct not the fsck had yet needed to
read any info from the branch, but had only made changes to it, the
origin/git-annex branch was not yet merged in. So the journal got a
location log entry written to it, but this did not include
the location log info for the origin. When fsck then did a
Annex.Branch.get, it trusted the journal was cosnsitent, and returned it,
again w/o merging from origin/git-annex. This latter behavior is the
actual bug.

Refer to commit e9bfa8eaed for the thinking
behind it being ok to make a change to a file on the branch, without
first merging the branch. That thinking still stands. However, it means
that files in the journal cannot be trusted to be consistent if the branch
has not been merged. So, to fix, just enure the branch gets merged, even
when reading from the journal.

In tests, this does not seem to cause any extra merging. Except, of course,
in the one case described above. But git annex add, etc, are able to make
changes w/o first merging the branch.
2013-05-20 15:14:59 -04:00
Joey Hess
475e705643 run the test suite twice, once in direct mode
On a filesystem that only supports direct mode, it will test
direct mode twice, but oh well.
2013-05-20 14:09:50 -04:00
Joey Hess
4c22c2261f minor optimisation and warning fix 2013-05-20 13:58:41 -04:00
Joey Hess
94ab82bad8 Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-20 13:47:05 -04:00
http://joeyh.name/
865eac2dc3 Added a comment 2013-05-20 17:46:09 +00:00
Joey Hess
f4ba19f2b8 direct mode bug fix: After a conflicted merge was automatically resolved, the content of a file that was already present could incorrectly be replaced with a symlink.
The bug was in movein, which just replaceFile'd the file with a symlink,
even if it already had the desired content, before trying to pull the
content out of the annex and replace the symlink with it.

That was ok-ish for non conflicted merges, where if the file existed it would
be an old version of the content. But for conflicted merges, the automatic
merge resolver has already run, and will have already put the desired
content into the file for the local variant.

Also, made removeDirect not trust that the associated files map is correct.
Only if it can verify that another file has the content will it not move it
into .git/annex/objects.
2013-05-20 13:41:09 -04:00
http://joeyh.name/
e9794fb6ca Added a comment 2013-05-20 16:22:18 +00:00
http://joeyh.name/
3090327bc0 Added a comment 2013-05-20 16:09:47 +00:00
http://edheil.wordpress.com/
ff8026f4f9 Added a comment 2013-05-20 16:08:14 +00:00
http://joeyh.name/
0866364a0b Added a comment 2013-05-20 16:06:50 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkx5V3MTbzCXS3J7Mn9FEq8M9bPPYMkAHY
ddd99d3296 Added a comment 2013-05-20 15:53:25 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkx5V3MTbzCXS3J7Mn9FEq8M9bPPYMkAHY
dc0d466570 Added a comment 2013-05-20 15:52:40 +00:00
Joey Hess
3bac3b5b51 Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-20 11:40:13 -04:00
213.138.67.85
c6f55c3a80 poll vote (/sdcard/annex) 2013-05-20 15:00:37 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkx5V3MTbzCXS3J7Mn9FEq8M9bPPYMkAHY
8af25edc8c Added a comment 2013-05-20 14:37:37 +00:00
http://edheil.wordpress.com/
c564e66e58 Added a comment 2013-05-20 13:57:59 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkx5V3MTbzCXS3J7Mn9FEq8M9bPPYMkAHY
29f30aa3b9 2013-05-20 12:40:55 +00:00
Joey Hess
9fa063a00f debian architecture build fun 2013-05-19 21:44:33 -04:00
Joey Hess
e89c5b467f avoid failing build if cabal failed to update 2013-05-19 21:12:46 -04:00
Joey Hess
19715b9cff fix windows build 2013-05-19 21:07:47 -04:00
Joey Hess
920c81ca14 stupid windows.. 2013-05-19 21:02:50 -04:00
Joey Hess
5b09b8d6bf seems windows sh doesn't properly handle set -e in functions 2013-05-19 20:45:54 -04:00
Joey Hess
5fbe3bc756 hmm 2013-05-19 20:41:44 -04:00
Joey Hess
ab4925d4aa Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-19 20:36:23 -04:00
Joey Hess
0bc43407e5 do a clean build if incremental fails 2013-05-19 20:35:33 -04:00
http://joeyh.name/
455091fa7a add nntp remote page 2013-05-20 00:12:53 +00:00
Joey Hess
b5433c3a9d Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-19 18:26:15 -04:00
Joey Hess
2f8bfaea4e blog for the day 2013-05-19 18:20:48 -04:00
Joey Hess
796c2f6bc8 remove unnecessary bracketIO 2013-05-19 18:15:29 -04:00
http://joeyh.name/
4186a6f40c Added a comment 2013-05-19 22:03:57 +00:00
Joey Hess
66fe5beac2 update 2013-05-19 18:03:38 -04:00
Joey Hess
d5ba9cb728 Allow building with gpg2. 2013-05-19 17:59:58 -04:00
Joey Hess
8688f08804 Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-19 17:59:28 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnFjuvfPpi1kf6l54bxfFUm0Aw_Gf_IO0o
97ca0eb516 removed 2013-05-19 21:57:40 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnFjuvfPpi1kf6l54bxfFUm0Aw_Gf_IO0o
77d01941a4 Add note about no webapp in Raring 2013-05-19 21:57:27 +00:00
Joey Hess
29d8cc8b76 Merge branch 'master' of ssh://git-annex.branchable.com 2013-05-19 17:57:10 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnFjuvfPpi1kf6l54bxfFUm0Aw_Gf_IO0o
1061eed106 Added a comment: Official Raring build also does not have the Assistant enabled 2013-05-19 21:52:57 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnSenxKyE_2Z6Wb-EBMO8FciyRywjx1ZiQ
0f4af3cbe7 Added a comment 2013-05-19 21:35:37 +00:00