Commit graph

28823 commits

Author SHA1 Message Date
johannes@12f1850a57e13cc234b5ebf88a5d3ac68915a6c2
6d4f446a06 2016-10-18 10:09:44 +00:00
ryan@d4f0c2d3daacb5ec3a2945bca06f66decad4bfb5
c9de2489b4 Added a comment: fsck filename 2016-10-18 04:05:51 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
54d8fbcf19 Added a comment: why option vs manual chmod 2016-10-17 23:11:10 +00:00
Joey Hess
7d6e805d28
hmm 2016-10-17 17:12:31 -04:00
Joey Hess
0869340c70
devblog 2016-10-17 16:50:00 -04:00
Joey Hess
96e9f84d6c
response 2016-10-17 16:39:42 -04:00
Joey Hess
d83859c20f
Merge branch 'master' of ssh://git-annex.branchable.com 2016-10-17 16:37:59 -04:00
Joey Hess
3a3f126956
close 2016-10-17 16:36:35 -04:00
Joey Hess
f07e2ce87c
comment 2016-10-17 16:30:43 -04:00
Joey Hess
0b1c061382
importfeed: Drop URL parameters from file extension.
Thanks, James MacMahon.
2016-10-17 16:02:05 -04:00
Joey Hess
10ca4b9788
Improve style of offline html build of website. 2016-10-17 15:55:49 -04:00
ryan@d4f0c2d3daacb5ec3a2945bca06f66decad4bfb5
ec5b15f910 Added a comment: re: comment 1 2016-10-17 19:54:45 +00:00
Joey Hess
c5d39e6543
followup 2016-10-17 15:45:01 -04:00
Joey Hess
71d5e5d272
response 2016-10-17 15:40:21 -04:00
Joey Hess
ac3880ea8f
response 2016-10-17 15:38:52 -04:00
Joey Hess
cc5de0a94b
close 2016-10-17 15:30:33 -04:00
Joey Hess
77cdc406c7
response 2016-10-17 15:29:49 -04:00
Joey Hess
8e22114735
upgrade: Handle upgrade to v6 when the repository already contains v6 unlocked files whose content is already present.
Closes https://github.com/datalad/datalad/issues/1020

The use of runWriter in scanUnlockedFiles broke due to this change;
it failed with blocked indefinitely in mvar, because the database write
handle was taken while linkFromAnnex needed to also write to it (to update
the inode cache). So, switched to using a separate runWriter for each call
to addAssociatedFileFast. A little less efficient, but not greatly; the
writes should all still be cached.
2016-10-17 15:19:47 -04:00
Joey Hess
148bd0dbfd
refactor 2016-10-17 14:58:33 -04:00
Joey Hess
93425dd575
note 2016-10-17 14:21:55 -04:00
Joey Hess
9d48f2666d
comment 2016-10-17 14:17:27 -04:00
Joey Hess
16038ef068
Merge branch 'master' of ssh://git-annex.branchable.com 2016-10-17 14:08:17 -04:00
Joey Hess
ee309d6941
lock: Fix edge cases where data loss could occur in v6 mode.
In the case where the pointer file is in place, and not the content
of the object, lock's  performNew was called with filemodified=True,
which caused it to try to repopulate the object from an unmodified
associated file, of which there were none. So, the content of the object
got thrown away incorrectly. This was the cause (although not the root
cause) of data loss in https://github.com/datalad/datalad/issues/1020

The same problem could also occur when the work tree file is modified,
but the object is not, and lock is called with --force. Added a test case
for this, since it's excercising the same code path and is easier to set up
than the problem above.

Note that this only occurred when the keys database did not have an inode
cache recorded for the annex object. Normally, the annex object would be in
there, but there are of course circumstances where the inode cache is out
of sync with reality, since it's only a cache.

Fixed by checking if the object is unmodified; if so we don't need to
try to repopulate it. This does add an additional checksum to the unlock
path, but it's already checksumming the worktree file in another case,
so it doesn't slow it down overall.

Further investigation found a similar problem occurred when smudge --clean
is called on a file and the inode cache is not populated. cleanOldKeys
deleted the unmodified old object file in this case. This was also
fixed by checking if the object is unmodified.

In general, use of getInodeCaches and sameInodeCache is potentially
dangerous if the inode cache has not gotten populated for some reason.
Better to use isUnmodified. I breifly auited other places that check the
inode cache, and did not see any immediate problems, but it would be easy
to miss this kind of problem.
2016-10-17 13:58:43 -04:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
17cce14d19 original whining 2016-10-17 16:17:59 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
82fac4f0b7 added meta for myself 2016-10-17 15:59:32 +00:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
7877c8d58f initial suggestion 2016-10-17 15:58:54 +00:00
ryan@d4f0c2d3daacb5ec3a2945bca06f66decad4bfb5
7adc7d5068 Git Annex Assistant occasionally replaces files with dangling symlinks. 2016-10-15 18:42:07 +00:00
https://launchpad.net/~helpunclejackoff
867a4ac4e8 Added a comment: Dumb old me.... 2016-10-15 10:12:17 +00:00
https://launchpad.net/~stephane-gourichon-lpad
63d02ae1d9 Added a comment 2016-10-14 07:23:51 +00:00
https://launchpad.net/~stephane-gourichon-lpad
f622e866e1 Added a comment: git-annex-undo removes files, possibly destroying information? Please explain. 2016-10-14 07:02:42 +00:00
edward
aa5d3edd97 fix typo 2016-10-13 21:16:59 +00:00
Joey Hess
7baa96224f
Merge branch 'master' of ssh://git-annex.branchable.com 2016-10-13 14:04:51 -04:00
Joey Hess
0302bbff6d
comment 2016-10-13 14:02:15 -04:00
https://anarc.at/openid/
6958b8a3fb Added a comment: real happy about optimisations! 2016-10-12 15:38:14 +00:00
Joey Hess
e9e05bfc2d
add news item for git-annex 6.20161012 2016-10-12 09:38:41 -04:00
Joey Hess
c0cdac5c4a
releasing package git-annex version 6.20161012 2016-10-12 09:38:03 -04:00
barthalion@8758f91921f1def00205716519c57234f128c328
e2dcbe656d Added a comment 2016-10-11 21:00:53 +00:00
Joey Hess
3135d35094
Merge branch 'master' of ssh://git-annex.branchable.com 2016-10-11 16:03:07 -04:00
Joey Hess
af8842475e
devblog 2016-10-11 16:01:32 -04:00
Joey Hess
3f25317ad5
fix tree graft-in bug
When adding a tree like a/b/c/d when a/b already exists, fixes the bug that
the tree that got created was a/b/a/b/c/d

Just need to flatten out the top N directories of the tree that's being
grafted in, so we get the c/d part. This was complicated by the Tree
data type being a rose tree rather than a regular tree.

This commit was sponsored by Nick Daly on Patreon.
2016-10-11 15:36:40 -04:00
Joey Hess
66ebf1a8f9
add test case for sync_in_adjusted_branch_deleted_recently_added_files
This commit was sponsored by Denis Dzyubenko on Patreon.
2016-10-11 14:22:49 -04:00
fiatjaf
9d2ff4df77 Added a comment: related work 2016-10-11 13:35:08 +00:00
Joey Hess
d7a88e3510
devblog 2016-10-10 15:03:27 -04:00
Joey Hess
b82c3e0783
sync: Fix bug in adjusted branch merging that could cause recently added files to be lost when updating the adjusted branch.
The modification flag was not being set when making modifications deep
in a tree, so parent trees were not updated to contain the modified tree.

Seems to have exposed another bug where the wrong filename gets grafted in.

This commit was sponsored by Brock Spratlen on Patreon.
2016-10-10 15:00:45 -04:00
Joey Hess
d2527c421c
more analysis 2016-10-10 14:23:24 -04:00
Joey Hess
75c7215857
reproduce recipe 2016-10-10 12:56:21 -04:00
https://launchpad.net/~stephane-gourichon-lpad
81737b5277 Added a comment: Build on Debian 7.11 AMD64 2016-10-10 06:43:49 +00:00
https://launchpad.net/~helpunclejackoff
f244d942ee 2016-10-09 18:42:14 +00:00
https://launchpad.net/~helpunclejackoff
dfd0e0290a Move the env description to the right place 2016-10-09 18:41:50 +00:00
https://launchpad.net/~helpunclejackoff
11f6bbaca8 2016-10-09 18:36:52 +00:00