Joey Hess [Tue, 18 Oct 2016 15:28:28 +0000 (11:28 -0400)]
followup
Joey Hess [Tue, 18 Oct 2016 15:19:41 +0000 (11:19 -0400)]
Assistant, repair: Improved filtering out of git fsck lines about duplicate file entries in tree objects.
ryan@d4f0c2d3daacb5ec3a2945bca06f66decad4bfb5 [Tue, 18 Oct 2016 04:05:51 +0000 (04:05 +0000)]
Added a comment: fsck filename
Added a comment: why option vs manual chmod
Joey Hess [Mon, 17 Oct 2016 21:12:31 +0000 (17:12 -0400)]
hmm
Joey Hess [Mon, 17 Oct 2016 20:50:00 +0000 (16:50 -0400)]
devblog
Joey Hess [Mon, 17 Oct 2016 20:39:42 +0000 (16:39 -0400)]
response
Joey Hess [Mon, 17 Oct 2016 20:37:59 +0000 (16:37 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 17 Oct 2016 20:36:35 +0000 (16:36 -0400)]
close
Joey Hess [Mon, 17 Oct 2016 20:30:43 +0000 (16:30 -0400)]
comment
Joey Hess [Mon, 17 Oct 2016 20:02:05 +0000 (16:02 -0400)]
importfeed: Drop URL parameters from file extension.
Thanks, James MacMahon.
Joey Hess [Mon, 17 Oct 2016 19:55:49 +0000 (15:55 -0400)]
Improve style of offline html build of website.
ryan@d4f0c2d3daacb5ec3a2945bca06f66decad4bfb5 [Mon, 17 Oct 2016 19:54:45 +0000 (19:54 +0000)]
Added a comment: re: comment 1
Joey Hess [Mon, 17 Oct 2016 19:45:01 +0000 (15:45 -0400)]
followup
Joey Hess [Mon, 17 Oct 2016 19:40:21 +0000 (15:40 -0400)]
response
Joey Hess [Mon, 17 Oct 2016 19:38:52 +0000 (15:38 -0400)]
response
Joey Hess [Mon, 17 Oct 2016 19:30:33 +0000 (15:30 -0400)]
close
Joey Hess [Mon, 17 Oct 2016 19:29:49 +0000 (15:29 -0400)]
response
Joey Hess [Mon, 17 Oct 2016 19:19:47 +0000 (15:19 -0400)]
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.
Joey Hess [Mon, 17 Oct 2016 18:58:33 +0000 (14:58 -0400)]
refactor
Joey Hess [Mon, 17 Oct 2016 18:21:55 +0000 (14:21 -0400)]
note
Joey Hess [Mon, 17 Oct 2016 18:17:27 +0000 (14:17 -0400)]
comment
Joey Hess [Mon, 17 Oct 2016 18:08:17 +0000 (14:08 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 17 Oct 2016 16:56:26 +0000 (12:56 -0400)]
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.
original whining
added meta for myself
initial suggestion
ryan@d4f0c2d3daacb5ec3a2945bca06f66decad4bfb5 [Sat, 15 Oct 2016 18:42:07 +0000 (18:42 +0000)]
Git Annex Assistant occasionally replaces files with dangling symlinks.
https://launchpad.net/~helpunclejackoff [Sat, 15 Oct 2016 10:12:17 +0000 (10:12 +0000)]
Added a comment: Dumb old me....
https://launchpad.net/~stephane-gourichon-lpad [Fri, 14 Oct 2016 07:23:51 +0000 (07:23 +0000)]
Added a comment
https://launchpad.net/~stephane-gourichon-lpad [Fri, 14 Oct 2016 07:02:42 +0000 (07:02 +0000)]
Added a comment: git-annex-undo removes files, possibly destroying information? Please explain.
edward [Thu, 13 Oct 2016 21:16:59 +0000 (21:16 +0000)]
fix typo
Joey Hess [Thu, 13 Oct 2016 18:04:51 +0000 (14:04 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 13 Oct 2016 18:02:15 +0000 (14:02 -0400)]
comment
https://anarc.at/openid/ [Wed, 12 Oct 2016 15:38:14 +0000 (15:38 +0000)]
Added a comment: real happy about optimisations!
Joey Hess [Wed, 12 Oct 2016 13:38:41 +0000 (09:38 -0400)]
add news item for git-annex 6.
20161012
Joey Hess [Wed, 12 Oct 2016 13:38:03 +0000 (09:38 -0400)]
releasing package git-annex version 6.
20161012
Added a comment
Joey Hess [Tue, 11 Oct 2016 20:03:07 +0000 (16:03 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 11 Oct 2016 20:01:32 +0000 (16:01 -0400)]
devblog
Joey Hess [Tue, 11 Oct 2016 19:36:40 +0000 (15:36 -0400)]
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.
Joey Hess [Tue, 11 Oct 2016 18:22:49 +0000 (14:22 -0400)]
add test case for sync_in_adjusted_branch_deleted_recently_added_files
This commit was sponsored by Denis Dzyubenko on Patreon.
fiatjaf [Tue, 11 Oct 2016 13:35:08 +0000 (13:35 +0000)]
Added a comment: related work
Joey Hess [Mon, 10 Oct 2016 19:03:27 +0000 (15:03 -0400)]
devblog
Joey Hess [Mon, 10 Oct 2016 19:00:45 +0000 (15:00 -0400)]
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.
Joey Hess [Mon, 10 Oct 2016 18:23:24 +0000 (14:23 -0400)]
more analysis
Joey Hess [Mon, 10 Oct 2016 16:54:21 +0000 (12:54 -0400)]
reproduce recipe
https://launchpad.net/~stephane-gourichon-lpad [Mon, 10 Oct 2016 06:43:49 +0000 (06:43 +0000)]
Added a comment: Build on Debian 7.11 AMD64
https://launchpad.net/~helpunclejackoff [Sun, 9 Oct 2016 18:42:14 +0000 (18:42 +0000)]
https://launchpad.net/~helpunclejackoff [Sun, 9 Oct 2016 18:41:50 +0000 (18:41 +0000)]
Move the env description to the right place
https://launchpad.net/~helpunclejackoff [Sun, 9 Oct 2016 18:36:52 +0000 (18:36 +0000)]
xloem [Sun, 9 Oct 2016 13:39:38 +0000 (13:39 +0000)]
Added a comment: Workflow Summary
xloem [Sun, 9 Oct 2016 12:13:39 +0000 (12:13 +0000)]
Added a comment
https://launchpad.net/~stephane-gourichon-lpad [Sun, 9 Oct 2016 07:16:25 +0000 (07:16 +0000)]
Reporting missing file in locally installed doc causing reduced reading comfort.
Added a comment: Compression level
Tafnzart [Sat, 8 Oct 2016 16:43:54 +0000 (16:43 +0000)]
Added a comment
jwm@affa977977673476597d5d5c7bda464959a9bd9b [Sat, 8 Oct 2016 05:25:28 +0000 (05:25 +0000)]
Tafnzart [Fri, 7 Oct 2016 19:34:17 +0000 (19:34 +0000)]
http://christian.amsuess.com/chrysn [Fri, 7 Oct 2016 13:47:53 +0000 (13:47 +0000)]
rename forum/bittorrent__58___support_offline_operation_and_verification.mdwn to todo/bittorrent__58___support_offline_operation_and_verification.mdwn
http://christian.amsuess.com/chrysn [Fri, 7 Oct 2016 10:23:26 +0000 (10:23 +0000)]
suggest bittorrent enhancements
yomguy [Fri, 7 Oct 2016 09:15:07 +0000 (09:15 +0000)]
Added a comment
http://christian.amsuess.com/chrysn [Fri, 7 Oct 2016 09:11:56 +0000 (09:11 +0000)]
Added a comment: Re: attaching a torrent file to a downloaded and annexed directory
pot [Thu, 6 Oct 2016 20:13:07 +0000 (20:13 +0000)]
pot [Thu, 6 Oct 2016 20:05:41 +0000 (20:05 +0000)]
Added a comment: 780 source files....
ddenis [Thu, 6 Oct 2016 16:59:03 +0000 (16:59 +0000)]
Added a comment
jk@3f2b4ce16bbac41470815333505aa47b91b7a9a6 [Thu, 6 Oct 2016 10:42:53 +0000 (10:42 +0000)]
Added a comment
Joey Hess [Wed, 5 Oct 2016 21:10:43 +0000 (17:10 -0400)]
devblog
Joey Hess [Wed, 5 Oct 2016 21:02:31 +0000 (17:02 -0400)]
response
Joey Hess [Wed, 5 Oct 2016 20:57:10 +0000 (16:57 -0400)]
comment
Joey Hess [Wed, 5 Oct 2016 20:29:32 +0000 (16:29 -0400)]
Support using v3 repositories without upgrading them to v5.
An easy change now that supportedVersions is a list. Since v3 and v5 are
identical other than version number, just add v3 to the list.
This commit was sponsored by andrea rota.
Joey Hess [Wed, 5 Oct 2016 20:23:09 +0000 (16:23 -0400)]
When auto-upgrading a v3 remote, avoid upgrading to version 6, instead keep it at version 5.
Fixes a bug introduced with v6 mode that I didn't notice until now.
Probably not many v3 repos left out there, and upgrading them to v6 mode
is not disastrous, only a little premature.
This commit was sponsored by Riku Voipio
Joey Hess [Wed, 5 Oct 2016 20:08:49 +0000 (16:08 -0400)]
verified fix on OSX
Joey Hess [Wed, 5 Oct 2016 20:02:29 +0000 (16:02 -0400)]
comment
Joey Hess [Wed, 5 Oct 2016 19:51:42 +0000 (15:51 -0400)]
moreinfo
Joey Hess [Wed, 5 Oct 2016 19:50:50 +0000 (15:50 -0400)]
response
Joey Hess [Wed, 5 Oct 2016 19:21:36 +0000 (15:21 -0400)]
Avoid using a lot of memory when large objects are present in the git repository
.. and have to be checked to see if they are a pointed to an annexed file.
Cases where such memory use could occur included, but were not limited to:
- git commit -a of a large unlocked file (in v5 mode)
- git-annex adjust when a large file was checked into git directly
Generally, any use of catKey was a potential problem.
Fix by using git cat-file --batch-check to check size before catting.
This adds another git batch process, which is included in the CatFileHandle
for simplicity.
There could be performance impact, anywhere catKey is used. Particularly
likely to affect adjusted branch generation speed, and operations on
unlocked files in v6 mode. Hopefully since the --batch-check and
--batch read the same data, disk buffering will avoid most overhead.
Leaving only the overhead of talking to the process over the pipe and
whatever computation --batch-check needs to do.
This commit was sponsored by Bruno BEAUFILS on Patreon.
Joey Hess [Wed, 5 Oct 2016 19:10:24 +0000 (15:10 -0400)]
add missing case for unknown size with normal output
This was lost in previous change, causing a crash in that case.
Joey Hess [Wed, 5 Oct 2016 17:30:46 +0000 (13:30 -0400)]
comment
Joey Hess [Wed, 5 Oct 2016 17:01:18 +0000 (13:01 -0400)]
moreinfo
Joey Hess [Wed, 5 Oct 2016 15:33:08 +0000 (11:33 -0400)]
comments
Joey Hess [Wed, 5 Oct 2016 15:29:51 +0000 (11:29 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 5 Oct 2016 15:29:14 +0000 (11:29 -0400)]
remove localedir file, fix build
Added a comment: bittorrent
Adam [Tue, 4 Oct 2016 21:24:50 +0000 (21:24 +0000)]
Added a comment
Joey Hess [Tue, 4 Oct 2016 20:37:43 +0000 (16:37 -0400)]
Linux standalone: Include locale files in the bundle, and generate locale definition files for the locales in use when starting runshell.
Currently only done for utf-8 locales because the charset can easily be
told for those. Other locales don't include the charset in their name.
The locale definition is generated under git-annex.linux/locales.
So, this only works if the user can write there.
If locale generation fails for any reason, it's silently skipped.
The git-annex-standalone.deb installs the bundle under /usr, so this locale
generation won't work for non-root users.
Joey Hess [Tue, 4 Oct 2016 19:32:58 +0000 (15:32 -0400)]
add LOCPATH to GIT_ANNEX_STANDLONE_ENV
Joey Hess [Tue, 4 Oct 2016 16:52:36 +0000 (12:52 -0400)]
Linux standalone: Add back the LOCPATH=/dev/null hack to avoid the system locale-archive being read.
Version mismatches between the system locale-archive and the glibc in the
bundle have been observed to cause git crashes.
Unfortunately, this causes locales to not be used in the linux standalone
bundle, as was the case until version 6.
20160419.
glibc hardcodes the path to /usr/lib/locale/locale-archive and does not
let an environment variable cause a different locale-archive file to be used.
The only other option to include locales in the bundle would be to include
exploded locale definition directories in the bundle for a number of
locales, generated by localedef. But these take at least 300 kb per locale,
and there are a great many locales; it would be hundreds of megabytes to
include them all.
(Hmm, we could include localdef in the bundle, and check LANG in runshell
and compile the locale directories on the fly. This would need
/usr/share/i18n/ and /usr/lib/locale-archive to be included in the bundle.
It's.. doable.)
I know this is going to once again cause users of the bundle to complain
that eg, ls doesn't show their unicode filenames right. Better than strange
crashes though.
Joey Hess [Tue, 4 Oct 2016 15:30:41 +0000 (11:30 -0400)]
comment
Joey Hess [Tue, 4 Oct 2016 15:16:39 +0000 (11:16 -0400)]
response
2a01:cb04:422:dd00:75bc:9129:cb49:31be [Tue, 4 Oct 2016 11:57:43 +0000 (11:57 +0000)]
poll vote (OpenStack SWIFT)
Adam [Tue, 4 Oct 2016 05:27:31 +0000 (05:27 +0000)]
Added a comment: Question
https://launchpad.net/~stephane-gourichon-lpad [Sat, 1 Oct 2016 17:25:47 +0000 (17:25 +0000)]
Added a comment: Sketch of implementation, request for comment
https://launchpad.net/~stephane-gourichon-lpad [Sat, 1 Oct 2016 13:36:52 +0000 (13:36 +0000)]
How to deal with files that change status from "precious, please keep n copies" to "junk, please delete it from everywhere you find it, now and forever".
pot [Sat, 1 Oct 2016 11:41:01 +0000 (11:41 +0000)]
Joey Hess [Fri, 30 Sep 2016 23:52:14 +0000 (19:52 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 30 Sep 2016 23:51:16 +0000 (19:51 -0400)]
convert TMVars that are never left empty into TVars
This is probably more efficient, and it avoids mistakenly leaving them
empty.
ddenis [Fri, 30 Sep 2016 22:06:49 +0000 (22:06 +0000)]
pot [Fri, 30 Sep 2016 22:00:31 +0000 (22:00 +0000)]
Added a comment: inodes....
ztl8702 [Fri, 30 Sep 2016 19:14:34 +0000 (19:14 +0000)]
Added a comment: Bash on Windows