Commit graph

11107 commits

Author SHA1 Message Date
Joey Hess
b88901a647 fix quotes 2013-05-21 13:32:01 -04:00
Joey Hess
ceb600d715 lift megaannex comment into tip, etc 2013-05-21 13:28:09 -04:00
Joey Hess
25dba9da24 fix windows build 2013-05-21 13:07:43 -04:00
Joey Hess
822a8c0ff8 better nukefile
Fixed handling of case when file does not exist to work like it did before,
and avoid an excess stat call.
2013-05-21 13:03:46 -04:00
Joey Hess
b78813af3a Merge remote-tracking branch 'origin/master' 2013-05-21 11:49:19 -04:00
Joey Hess
bd54e9a5f7 better nukeFile
This fixes a bug where a direct mode sync fails to delete broken symlinks.
2013-05-21 11:46:27 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmkBwMWvNKZZCge_YqobCSILPMeK6xbFw8
b737bc0acd 2013-05-21 11:25:17 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmLB39PC89rfGaA8SwrsnB6tbumezj-aC0
46435a88bd removed 2013-05-21 09:10:21 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmLB39PC89rfGaA8SwrsnB6tbumezj-aC0
2fea486646 Added a comment: Usage of mega hook 2013-05-21 09:09:28 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmLB39PC89rfGaA8SwrsnB6tbumezj-aC0
bb6ed6f6c1 Added a comment: Look what i made 2013-05-21 08:43:17 +00:00
https://www.google.com/accounts/o8/id?id=AItOawntVnR-Z5ghYInvsElbDeADPSuCsF18iTY
26b3822849 2013-05-21 08:22:06 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnu1NYw8UF-NoDbKu8YKVGxi8FoZLH7JPs
deb6acfaba Added a comment: Same error with Android 2013-05-21 02:15:26 +00:00
Joey Hess
69a1529c89 flickr 2013-05-20 19:22:22 -04:00
Joey Hess
5be88def0a mention autobuild fixes 2013-05-20 18:49:47 -04:00
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