Joey Hess [Tue, 15 Sep 2020 20:22:44 +0000 (16:22 -0400)]
add "input" field to json output
The use case of this field is mostly to support -J combined with --json.
When that is implemented, a user will be able to look at the field to
determine which of the requests they have sent it corresponds to.
The field typically has a single value in its list, but in some cases
mutliple values (eg 2 command-line params) are combined together and the
list will have more.
Note that json parsing was already non-strict, so old git-annex metadata
--json --batch can be fed json produced by the new git-annex and will
not stumble over the new field.
Joey Hess [Tue, 15 Sep 2020 19:44:37 +0000 (15:44 -0400)]
use Branch.name instead of hard coding the branch name
Makes much more clear why ActionItemOther is being passed "git-annex".
Joey Hess [Mon, 14 Sep 2020 20:49:33 +0000 (16:49 -0400)]
add SeekInput (not yet used)
No behavior changes (hopefully), just adding SeekInput and plumbing it
through to the JSON display code for later use.
Over the course of 2 grueling days.
withFilesNotInGit reimplemented in terms of seekHelper
should be the only possible behavior change. It seems to test as
behaving the same.
Note that seekHelper dummies up the SeekInput in the case where
segmentPaths' gives up on sorting the expanded paths because there are
too many input paths. When SeekInput later gets exposed as a json field,
that will result in it being a little bit wrong in the case where
100 or more paths are passed to a git-annex command. I think this is a
subtle enough problem to not matter. If it does turn out to be a
problem, fixing it would require splitting up the input
parameters into groups of < 100, which would make git ls-files run
perhaps more than is necessary. May want to revisit this, because that
fix seems fairly low-impact.
Joey Hess [Mon, 14 Sep 2020 17:12:40 +0000 (13:12 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com into master
Sean Whitton [Mon, 14 Sep 2020 03:27:42 +0000 (20:27 -0700)]
fix dist in latest NEWS entry
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
kyotov [Sun, 13 Sep 2020 16:40:53 +0000 (16:40 +0000)]
Ilya_Shlyakhter [Sat, 12 Sep 2020 19:07:58 +0000 (19:07 +0000)]
Added a comment: standalone build version oddity
falsifian [Sat, 12 Sep 2020 15:50:18 +0000 (15:50 +0000)]
clarify first fsck call gave no output
falsifian [Sat, 12 Sep 2020 15:43:49 +0000 (15:43 +0000)]
falsifian [Sat, 12 Sep 2020 15:30:38 +0000 (15:30 +0000)]
removed
falsifian [Sat, 12 Sep 2020 15:30:06 +0000 (15:30 +0000)]
Added a comment
falsifian [Sat, 12 Sep 2020 15:29:42 +0000 (15:29 +0000)]
Added a comment
Ilya_Shlyakhter [Sat, 12 Sep 2020 15:20:21 +0000 (15:20 +0000)]
Added a comment: updating the standalone distribution to 8.
20200908
falsifian [Sat, 12 Sep 2020 15:14:00 +0000 (15:14 +0000)]
falsifian [Sat, 12 Sep 2020 03:52:07 +0000 (03:52 +0000)]
removed
falsifian [Sat, 12 Sep 2020 03:51:52 +0000 (03:51 +0000)]
removed
falsifian [Sat, 12 Sep 2020 03:44:52 +0000 (03:44 +0000)]
Added a comment
falsifian [Sat, 12 Sep 2020 03:36:03 +0000 (03:36 +0000)]
Added a comment: Can I actually add a requirement like "at least two copies stored offsite" without specifying a particular repo?
yarikoptic [Fri, 11 Sep 2020 02:18:21 +0000 (02:18 +0000)]
initial report on the stuck test on osx
Joey Hess [Thu, 10 Sep 2020 17:14:06 +0000 (13:14 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com into master
Joey Hess [Thu, 10 Sep 2020 17:13:39 +0000 (13:13 -0400)]
thoughts
git@3af0a87771c4b55bee8a599b934914cd98d4bc0b [Thu, 10 Sep 2020 17:13:00 +0000 (17:13 +0000)]
Added a comment
Joey Hess [Thu, 10 Sep 2020 13:10:00 +0000 (09:10 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com into master
Joey Hess [Thu, 10 Sep 2020 13:08:40 +0000 (09:08 -0400)]
todo
kyle [Wed, 9 Sep 2020 14:28:51 +0000 (14:28 +0000)]
Added a comment
git@3af0a87771c4b55bee8a599b934914cd98d4bc0b [Wed, 9 Sep 2020 10:19:25 +0000 (10:19 +0000)]
Added a comment: Re: Unknown remote type webdav
git@3af0a87771c4b55bee8a599b934914cd98d4bc0b [Wed, 9 Sep 2020 09:48:16 +0000 (09:48 +0000)]
Added a comment: Re: Unknown remote type webdav
Joey Hess [Tue, 8 Sep 2020 18:21:26 +0000 (14:21 -0400)]
add news item for git-annex 8.
20200908
Joey Hess [Tue, 8 Sep 2020 18:20:47 +0000 (14:20 -0400)]
releasing package git-annex version 8.
20200908
Joey Hess [Tue, 8 Sep 2020 16:54:17 +0000 (12:54 -0400)]
reorder
Joey Hess [Tue, 8 Sep 2020 16:42:59 +0000 (12:42 -0400)]
Removed the S3 and WebDAV build flags
So these special remotes are always supported.
IIRC these build flags were added because the dep chains were a bit too
long, or perhaps because the libraries were not available in Debian stable,
or something like that. That was long ago, those reasons no longer apply,
and users get confused when builtin special remotes are not available, so
it seems best to remove the build flags now.
If this does cause a problem it can be reverted of course..
This commit was sponsored by Jochen Bartl on Patreon.
Joey Hess [Tue, 8 Sep 2020 16:31:37 +0000 (12:31 -0400)]
comment
Joey Hess [Tue, 8 Sep 2020 16:26:12 +0000 (12:26 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com into master
Joey Hess [Tue, 8 Sep 2020 16:21:24 +0000 (12:21 -0400)]
avoid failure when gpgconf is not in path
Joey Hess [Tue, 8 Sep 2020 16:17:08 +0000 (12:17 -0400)]
followup
git@3af0a87771c4b55bee8a599b934914cd98d4bc0b [Tue, 8 Sep 2020 13:19:51 +0000 (13:19 +0000)]
Added a comment: Unknown remote type webdav
Joey Hess [Mon, 7 Sep 2020 20:50:27 +0000 (16:50 -0400)]
resolvemerge: Improve cleanup of cruft left in the working tree by a conflicted merge
This commit was sponsored by Jake Vosloo on Patreon.
Joey Hess [Mon, 7 Sep 2020 20:16:15 +0000 (16:16 -0400)]
clean up old code
withworktree is no longer doing anything useful so remove it
Joey Hess [Mon, 7 Sep 2020 19:41:16 +0000 (15:41 -0400)]
revert change that broke test suite
Opened a new bug about it.
This commit was sponsored by Ethan Aubin.
Joey Hess [Mon, 7 Sep 2020 19:39:07 +0000 (15:39 -0400)]
improve comment
Joey Hess [Mon, 7 Sep 2020 19:12:03 +0000 (15:12 -0400)]
devblog
Joey Hess [Mon, 7 Sep 2020 19:10:09 +0000 (15:10 -0400)]
avoid build warning
Joey Hess [Mon, 7 Sep 2020 17:50:58 +0000 (13:50 -0400)]
sync, assistant: When merge.directoryRenames is not set, default it it to "false"
Works better with automatic merge conflict resolution than git's ususual
default of "conflict".
This is not done when automatic merge conflict resolution is disabled.
This commit was sponsored by Mark Reidenbach on Patreon.
Joey Hess [Mon, 7 Sep 2020 17:26:16 +0000 (13:26 -0400)]
refactor
Make all calls to git merge go through autoMergeFrom, in preparation
for fine-tuning git merge's config for automatic merge conflict
resolution.
This commit was sponsored by Ryan Newton on Patreon.
Joey Hess [Mon, 7 Sep 2020 17:03:51 +0000 (13:03 -0400)]
update comments
Joey Hess [Mon, 7 Sep 2020 16:12:08 +0000 (12:12 -0400)]
resolvemerge: Improve cleanup of files that were deleted by one side of a conflicted merge, and modified by the other side
This case was handled by cleanConflictCruft, but only when the annexed
file's object was present. When not present, it left the annexed file
with the original name, not checked into git, while adding the variant
file. So, add an explicit deletion of the deleted file in this case.
My specific case where this happened actually involves
merge.directoryRenames=conflict. After a merge involving that,
the situation was the file appears as "added by them", because that
caused the file that they added to be moved into a directory we renamed.
That case is the same as them adding a modified version of the file,
while we deleted it. (Except for the history of the file, since it's a
new file, but this doesn't look at history.)
This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
Joey Hess [Mon, 7 Sep 2020 16:01:03 +0000 (12:01 -0400)]
make automerge behavior when one side deleted explict
This does not actually change how the merge conflict is resolved when
one side deleted the file, but it was not documented before, and I think
it only worked by accident.
This commit was sponsored by Brett Eisenberg on Patreon.
Joey Hess [Sun, 6 Sep 2020 14:51:23 +0000 (10:51 -0400)]
more
Joey Hess [Sun, 6 Sep 2020 14:42:19 +0000 (10:42 -0400)]
bug
Joey Hess [Sat, 5 Sep 2020 15:36:47 +0000 (11:36 -0400)]
update
Joey Hess [Fri, 4 Sep 2020 19:16:40 +0000 (15:16 -0400)]
Exposed annex.forward-retry git config
One reason is, 5 is an arbitrary number so ought to be configurable.
The real reason though, is I wanted to make the man page explain when
forward retry can override annex.retry, and having a config made the
man page easier to write.
Joey Hess [Fri, 4 Sep 2020 17:49:57 +0000 (13:49 -0400)]
import: Retry downloads that fail
Also, using the transfer machinery for this makes eg, git-annex info show
in-progress imports, and makes --notify-start/finish work.
Joey Hess [Fri, 4 Sep 2020 17:23:33 +0000 (13:23 -0400)]
Retry transfers to exporttree=yes remotes same as for other remotes
The comment about noRetry is not well-justified, because transfers to many
remotes cannot be resumed, but retries are still allowed for those.
Joey Hess [Fri, 4 Sep 2020 16:47:53 +0000 (12:47 -0400)]
combine retry deciders in better way
This fixes the problem that, if forwardRetry was checked for the first 5
and decided to retry, the 6th would go to configuredRetry which would
see the counter was 6 and so wait retry-delay*2^5 seconds (default 32).
Now, it waits for retry-delay before each retry, even when forwardRetry
initiated the retry.
Joey Hess [Fri, 4 Sep 2020 16:46:37 +0000 (12:46 -0400)]
Limit retrying of failed transfers when forward progress is being made to 5
To avoid some unusual edge cases where too much retrying could result in
far more data transfer than makes sense.
Joey Hess [Wed, 2 Sep 2020 18:59:35 +0000 (14:59 -0400)]
remove unused isSymLink
That made Utility.FileMode depend on unix, but Utility.Tmp now depends
on it, and is used by Setup, which does not. So it was easiest to remove
this, especially since it's not used.
Joey Hess [Wed, 2 Sep 2020 18:59:22 +0000 (14:59 -0400)]
fix build
Joey Hess [Wed, 2 Sep 2020 18:54:46 +0000 (14:54 -0400)]
better dummy value
no need for empty string when it's going to be thrown away..
Joey Hess [Wed, 2 Sep 2020 18:54:07 +0000 (14:54 -0400)]
make viaTmp honor umask
Fixed several cases where files were created without file mode bits that
the umask would usually set. This included exports to the directory special
remote, torrent files used by the bittorrent special remote, hooks written
by git-annex init, and some log files in .git/annex/
Audited all calls, looking for ones that didn't want the umask bits to be
set. All such turned out to already set the specific restrictive file mode
they wanted.
Joey Hess [Wed, 2 Sep 2020 18:36:18 +0000 (14:36 -0400)]
make removeAuthorizedKeys robust if the file DNE
Noticed this could potentially crash, although the only thing using it
would normally create the file first, if something then deleted it..
Joey Hess [Wed, 2 Sep 2020 18:25:12 +0000 (14:25 -0400)]
fix some file modes in calls to withTmpFileIn to honor umask
Also audited for other calls to openTempFile, and all are ok,
except for viaTmp which will need further work.
Remote.Directory fixed to set umask mode when writing to an export,
although it has another one using viaTmp that's not fixed.
Will make exports that are published via a http server running as
another user work, for example.
Remote.BitTorrent fixed to set umask mode when downloading the torrent
file. Normally this does not matter as that file does not hang around
after the download, but if a bittorrent download were started by one user,
got interrupted and then another user ran it, this will let them access
the torrent file created by the first user.
Joey Hess [Wed, 2 Sep 2020 16:25:52 +0000 (12:25 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com into master
Joey Hess [Wed, 2 Sep 2020 16:25:27 +0000 (12:25 -0400)]
bug report
Joey Hess [Wed, 2 Sep 2020 16:21:10 +0000 (12:21 -0400)]
display actual download errors
Eg, when config prohibits accessing localhost, need to show that
message, not a generic "download failed".
Joey Hess [Wed, 2 Sep 2020 16:01:50 +0000 (12:01 -0400)]
avoid multiple download failed messages when learning
Also only display one progress meter for all download attempts, to avoid
a bunch of blank lines.
kyle [Wed, 2 Sep 2020 15:51:49 +0000 (15:51 +0000)]
fix example: meant to prune --force and include rest of output
Ilya_Shlyakhter [Wed, 2 Sep 2020 15:35:22 +0000 (15:35 +0000)]
Added a comment: verifying source contents
Joey Hess [Wed, 2 Sep 2020 15:35:07 +0000 (11:35 -0400)]
when downloading same content from multiple urls, only display error if all fail
Joey Hess [Wed, 2 Sep 2020 15:14:50 +0000 (11:14 -0400)]
httpalso: support exporttree=yes
Also tested what happens if the other special remote has importtree=yes
and exporttree=yes, and in that case, download via httpalso works too,
without needing to implement any importtree methods here.
It might be possible to make it automatically set exporttree=yes if the
--sameas does. Didn't try, will probably be layering issues.
Or perhaps it should be inherited by sameas like some
other configs? But then, wouldn't it also make sense to inherit
importree=yes? But as shown here, it's not needed by this kind of
remote.
Joey Hess [Wed, 2 Sep 2020 14:41:27 +0000 (10:41 -0400)]
rename http special remote to httpalso
"http" was too generic and easy to confuse with web. The new name makes
clear it's used in addition to some other remote. And other protocols
can use the same naming scheme.
kyle [Wed, 2 Sep 2020 14:02:37 +0000 (14:02 +0000)]
content verification before transfer to special remote
yarikoptic [Wed, 2 Sep 2020 02:53:23 +0000 (02:53 +0000)]
Added a comment
Joey Hess [Tue, 1 Sep 2020 22:11:22 +0000 (18:11 -0400)]
remove Show Cipher
committed by accident, and could have been a security hole, but since
this compiles, it was not
yarikoptic [Tue, 1 Sep 2020 20:50:02 +0000 (20:50 +0000)]
Added a comment
Joey Hess [Tue, 1 Sep 2020 20:04:40 +0000 (16:04 -0400)]
thought
Joey Hess [Tue, 1 Sep 2020 20:02:03 +0000 (16:02 -0400)]
link
Joey Hess [Tue, 1 Sep 2020 20:00:49 +0000 (16:00 -0400)]
todo
Joey Hess [Tue, 1 Sep 2020 19:51:41 +0000 (15:51 -0400)]
comment
Joey Hess [Tue, 1 Sep 2020 19:36:56 +0000 (15:36 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com into master
Joey Hess [Tue, 1 Sep 2020 19:36:28 +0000 (15:36 -0400)]
comment
yarikoptic [Tue, 1 Sep 2020 19:29:29 +0000 (19:29 +0000)]
noise about 500s
Joey Hess [Tue, 1 Sep 2020 19:18:42 +0000 (15:18 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com into master
Joey Hess [Tue, 1 Sep 2020 19:16:35 +0000 (15:16 -0400)]
Added http special remote, which is useful for accessing other remotes that publish content stored in them via http/https.
With automatic layout learning!
Joey Hess [Tue, 1 Sep 2020 16:13:41 +0000 (12:13 -0400)]
note common need of these two todos
Joey Hess [Tue, 1 Sep 2020 15:58:08 +0000 (11:58 -0400)]
close as dup
gb@4a49bb1afcf3d183bba8f07297b0395808768c6c [Mon, 31 Aug 2020 14:46:21 +0000 (14:46 +0000)]
gb@4a49bb1afcf3d183bba8f07297b0395808768c6c [Sun, 30 Aug 2020 16:50:45 +0000 (16:50 +0000)]
falsifian [Fri, 28 Aug 2020 21:52:18 +0000 (21:52 +0000)]
Update name of attribute in haskellPackages.
Joey Hess [Fri, 28 Aug 2020 19:16:10 +0000 (15:16 -0400)]
move stack file used by i386ancient autobuilder
Joey Hess [Fri, 28 Aug 2020 19:08:14 +0000 (15:08 -0400)]
Support git remotes where .git is a file, not a directory
Eg when --separate-git-dir was used, and core.symlinks=false.
This commit was sponsored by Brock Spratlen on Patreon.
Joey Hess [Fri, 28 Aug 2020 18:28:42 +0000 (14:28 -0400)]
test: Stop gpg-agent daemons that are started for the test framework's gpg key
They normally shutdown when the GNUPGHOME directory is deleted, but on
NFS they keep the directory from being deleted. And also, this avoids
a number of them piling up while the test suite is running.
Joey Hess [Fri, 28 Aug 2020 18:07:31 +0000 (14:07 -0400)]
need lts-13.11 after all
the newer one fails at the end of build with an unavailable libc symbol.
Joey Hess [Fri, 28 Aug 2020 17:59:00 +0000 (13:59 -0400)]
further changes to get back to last working build state on OSX
Seems 13.11 was not being used for a while, but 14.27 works.
For some reason, stack was getting confused when I set the magicmime
flag on the command line, but setting it in stack.yaml didn't confuse
it. Ugh.
Joey Hess [Fri, 28 Aug 2020 17:55:54 +0000 (13:55 -0400)]
close
Joey Hess [Fri, 28 Aug 2020 17:54:42 +0000 (13:54 -0400)]
close
Joey Hess [Fri, 28 Aug 2020 17:53:15 +0000 (13:53 -0400)]
close
Joey Hess [Fri, 28 Aug 2020 17:01:56 +0000 (13:01 -0400)]
fix build