git-annex.git
5 years ago(no commit message)
jkniiv [Wed, 25 Nov 2020 07:38:17 +0000 (07:38 +0000)]

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 24 Nov 2020 21:29:19 +0000 (17:29 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoimprove display of test failures
Joey Hess [Tue, 24 Nov 2020 21:17:09 +0000 (17:17 -0400)]
improve display of test failures

Display the transcript as part of the failure message for the assertion.

This avoids scrambling the tasty display.

This commit was sponsored by Ethan Aubin on Patreon.

5 years agoAdded a comment
gueux [Tue, 24 Nov 2020 21:07:37 +0000 (21:07 +0000)]
Added a comment

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 24 Nov 2020 19:00:39 +0000 (15:00 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agocomment and moreinfo needed
Joey Hess [Tue, 24 Nov 2020 19:00:06 +0000 (15:00 -0400)]
comment and moreinfo needed

5 years agoAdded a comment
Lukey [Tue, 24 Nov 2020 18:35:16 +0000 (18:35 +0000)]
Added a comment

5 years agoclose
Joey Hess [Tue, 24 Nov 2020 18:33:52 +0000 (14:33 -0400)]
close

5 years agoclose
Joey Hess [Tue, 24 Nov 2020 18:32:34 +0000 (14:32 -0400)]
close

5 years agoMade the test suite significantly less noisy
Joey Hess [Tue, 24 Nov 2020 18:07:46 +0000 (14:07 -0400)]
Made the test suite significantly less noisy

Only displaying git-annex and git command output when something went wrong.

A few could still leak stderr. These include the couple of calls
to readProcess, which reads stdin but lets stderr through. But they don't
leak any usually, so probably only would when failing anyway.

Currently, there is no excess output at all!

This commit was sponsored by Brock Spratlen on Patreon.

5 years agofinish fixing removeLink on windows
Joey Hess [Tue, 24 Nov 2020 16:38:12 +0000 (12:38 -0400)]
finish fixing removeLink on windows

9cb250f7be21a8f5b15454df4fb67bfd1811e39d got the ones in RawFilePath,
but there were others that used the one from unix-compat, which fails at
runtime on windows. To avoid this,
import System.PosixCompat.Files hiding removeLink

This commit was sponsored by Ethan Aubin.

5 years agosquash remaining build warnings on windows
Joey Hess [Tue, 24 Nov 2020 16:35:09 +0000 (12:35 -0400)]
squash remaining build warnings on windows

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 24 Nov 2020 16:31:33 +0000 (12:31 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoupgrade: Support an edge case upgrading a v5 direct mode repo where nothing had ever...
Joey Hess [Tue, 24 Nov 2020 16:31:17 +0000 (12:31 -0400)]
upgrade: Support an edge case upgrading a v5 direct mode repo where nothing had ever been committed to the head branch

This commit was sponsored by Jack Hill on Patreon.

5 years agoAdded a comment: I concur, in fact `git annex init` doesn't work at all
jkniiv [Tue, 24 Nov 2020 16:28:25 +0000 (16:28 +0000)]
Added a comment: I concur, in fact `git annex init` doesn't work at all

5 years agodetails
Joey Hess [Tue, 24 Nov 2020 15:38:50 +0000 (11:38 -0400)]
details

5 years ago(no commit message)
jwodder [Tue, 24 Nov 2020 13:42:30 +0000 (13:42 +0000)]

5 years ago(no commit message)
lucas.gautheron@09f1983993dfb0907d02ba268b3ca672f1dc3eea [Tue, 24 Nov 2020 11:53:44 +0000 (11:53 +0000)]

5 years agoAdded a comment
Lukey [Mon, 23 Nov 2020 19:06:13 +0000 (19:06 +0000)]
Added a comment

5 years agoAdded a comment
Lukey [Mon, 23 Nov 2020 19:00:56 +0000 (19:00 +0000)]
Added a comment

5 years agosquash build warnings on windows
Joey Hess [Mon, 23 Nov 2020 18:00:17 +0000 (14:00 -0400)]
squash build warnings on windows

5 years agofix build on windows
Joey Hess [Mon, 23 Nov 2020 17:53:12 +0000 (13:53 -0400)]
fix build on windows

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 23 Nov 2020 17:00:36 +0000 (13:00 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoupdate
Joey Hess [Mon, 23 Nov 2020 17:00:20 +0000 (13:00 -0400)]
update

5 years agoforward bug report
Joey Hess [Mon, 23 Nov 2020 16:52:10 +0000 (12:52 -0400)]
forward bug report

5 years agoAdded a comment
jwodder [Mon, 23 Nov 2020 15:02:29 +0000 (15:02 +0000)]
Added a comment

5 years agobug
Joey Hess [Mon, 23 Nov 2020 01:28:57 +0000 (21:28 -0400)]
bug

5 years agoAdded a comment
Cebtenzzre [Sun, 22 Nov 2020 16:07:16 +0000 (16:07 +0000)]
Added a comment

5 years ago(no commit message)
ghen1 [Sun, 22 Nov 2020 13:24:47 +0000 (13:24 +0000)]

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Sat, 21 Nov 2020 16:25:34 +0000 (12:25 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agofix format
Joey Hess [Sat, 21 Nov 2020 16:24:41 +0000 (12:24 -0400)]
fix format

5 years ago(no commit message)
git-annex@6e52e5c5d048aa6b470b95d81fbaf44769d11fbd [Sat, 21 Nov 2020 04:21:26 +0000 (04:21 +0000)]

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Fri, 20 Nov 2020 22:16:34 +0000 (22:16 +0000)]
Added a comment

5 years agofix build on windows
Joey Hess [Fri, 20 Nov 2020 16:53:25 +0000 (12:53 -0400)]
fix build on windows

5 years agodone
Joey Hess [Fri, 20 Nov 2020 16:53:13 +0000 (12:53 -0400)]
done

5 years ago(no commit message)
gueux [Thu, 19 Nov 2020 22:15:58 +0000 (22:15 +0000)]

5 years agorename bugs/adjust_--unlock_implies_all_files_set_as_modified.mdwn to bugs/after_adju...
gueux [Thu, 19 Nov 2020 22:14:24 +0000 (22:14 +0000)]
rename bugs/adjust_--unlock_implies_all_files_set_as_modified.mdwn to bugs/after_adjust_--unlock_implies__44___a_lot_of_files_are_reported_as_modified.mdwn

5 years ago(no commit message)
gueux [Thu, 19 Nov 2020 22:09:23 +0000 (22:09 +0000)]

5 years ago(no commit message)
jwodder [Thu, 19 Nov 2020 21:15:42 +0000 (21:15 +0000)]

5 years agodone
Joey Hess [Thu, 19 Nov 2020 20:38:51 +0000 (16:38 -0400)]
done

5 years agoconvert processTranscript to use hGetLineUntilExitOrEOF
Joey Hess [Thu, 19 Nov 2020 20:36:37 +0000 (16:36 -0400)]
convert processTranscript to use hGetLineUntilExitOrEOF

It does use it on both stdout and stderr. It seems unlikely the problem
could really affect stdout, but the unix implementation of it combines
both into a single handle in any case.

5 years agoconverted reads from stderr to use hGetLineUntilExitOrEOF
Joey Hess [Thu, 19 Nov 2020 20:21:17 +0000 (16:21 -0400)]
converted reads from stderr to use hGetLineUntilExitOrEOF

These are all unlikely to suffer from the inherited stderr fd problem,
but who knows, it could happen.

5 years agoconvert to use hGetLineUntilExitOrEOF
Joey Hess [Thu, 19 Nov 2020 20:13:31 +0000 (16:13 -0400)]
convert to use hGetLineUntilExitOrEOF

It looks to me like the old code would have already dealt with the case
of ssh starting a ssh daemon that inherits stderr and keeps it open.
The ender thread closed the handle, which would unblock the other thread
and let it exit. Using hGetLineUntilExitOrEOF makes this more explicit
that it's dealt with and simplifies the code.

5 years agoconvert git config reading to use hGetLineUntilExitOrEOF
Joey Hess [Thu, 19 Nov 2020 19:34:26 +0000 (15:34 -0400)]
convert git config reading to use hGetLineUntilExitOrEOF

Much nicer than the old hack of waiting for a few seconds for stderr to be read.

5 years agochangelog
Joey Hess [Thu, 19 Nov 2020 18:46:54 +0000 (14:46 -0400)]
changelog

5 years agoBitTorrent: Fix build for "no torrent" code path
Kyle Meyer [Thu, 19 Nov 2020 17:14:22 +0000 (12:14 -0500)]
BitTorrent: Fix build for "no torrent" code path

The RawFilePath conversions missed a spot in the else arm of "#ifdef
WITH_TORRENTPARSER".

5 years agopreserve other headers when adding resume header
Joey Hess [Thu, 19 Nov 2020 18:41:33 +0000 (14:41 -0400)]
preserve other headers when adding resume header

It had lost the hAcceptEncoding header that is set as part of the
overriding of http-client's default decompression of compressed files.
Seems likely that would have caused resuming of compressed files to fail
in some cases.

This commit was sponsored by Brett Eisenberg on Patreon.

5 years agodon't rely on exception for http 416
Joey Hess [Thu, 19 Nov 2020 18:03:00 +0000 (14:03 -0400)]
don't rely on exception for http 416

Fix a bug that could make resuming a download from the web fail when the
entire content of the file is actually already present locally.

What a mess that Request can throw exceptions or not, depending on how
it's configured. Makes it very hard if you need to handle some specific
http status codes in a function like this! Implementing everything two
ways did not seem appealing, if possible at all, so I decided to
override the Request if it did come configured to throw exception on
non-2xx http status. Other exceptions, like from http-client-restricted,
or due to a redirect to a non-http url, still get thrown.

This commit was sponsored by Luke Shumaker on Patreon.

5 years agocomment
Joey Hess [Thu, 19 Nov 2020 17:02:23 +0000 (13:02 -0400)]
comment

5 years agocomment
Joey Hess [Thu, 19 Nov 2020 17:02:17 +0000 (13:02 -0400)]
comment

5 years agofix windows assistant upgrade glitch
Joey Hess [Thu, 19 Nov 2020 16:50:25 +0000 (12:50 -0400)]
fix windows assistant upgrade glitch

Prevent windows assistant from trying (and failing) to upgrade itself,
which has never been supported on windows.

The new windows build is made with UPGRADE_LOCATION set, which enabled this
code path that had never run on windows before, and doesn't work. I don't
want to try to support self-upgrade on windows, or generally on other OS's
than the ones where its working, so added a check for that. This way the
build can keep setting UPGRADE_LOCATION and if some later git-annex does
learn how to upgrade itself on some OS, it won't need changing the build
setup.

5 years agoFix build on Windows
Joey Hess [Thu, 19 Nov 2020 16:33:00 +0000 (12:33 -0400)]
Fix build on Windows

Thanks to bug reporter for the patch.

5 years agofix removeLink on windows
Joey Hess [Thu, 19 Nov 2020 16:20:18 +0000 (12:20 -0400)]
fix removeLink on windows

This removeLink was introduced in commit
e505c03bccdc6567cd517a6ddaf70a411489473d, which replaced code
that used removeFile on Windows. So, I know git-annex did not used to do
anything other than removeFile on Windows. If there were symlinks it
wanted to remove, this would not work on windows, but of course it does
not use symlinks on windows.

5 years agoclose
Joey Hess [Thu, 19 Nov 2020 16:08:06 +0000 (12:08 -0400)]
close

5 years agoAdded a comment
kyle [Thu, 19 Nov 2020 15:35:00 +0000 (15:35 +0000)]
Added a comment

5 years ago(no commit message)
git-annex@77d290f42943061acb99794c304fc6a6d5f601db [Thu, 19 Nov 2020 14:11:57 +0000 (14:11 +0000)]

5 years agoadded version info as reported by `git-annex version`
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Thu, 19 Nov 2020 05:12:06 +0000 (05:12 +0000)]
added version info as reported by `git-annex version`

5 years ago(no commit message)
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Thu, 19 Nov 2020 05:00:25 +0000 (05:00 +0000)]

5 years agoAdded a comment
wting [Thu, 19 Nov 2020 03:12:37 +0000 (03:12 +0000)]
Added a comment

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 19:28:51 +0000 (19:28 +0000)]
Added a comment

5 years agoremoved
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 19:26:33 +0000 (19:26 +0000)]
removed

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 18 Nov 2020 19:17:58 +0000 (15:17 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoMerge branch 'ssh-hates-me'
Joey Hess [Wed, 18 Nov 2020 19:17:05 +0000 (15:17 -0400)]
Merge branch 'ssh-hates-me'

5 years agoupdate
Joey Hess [Wed, 18 Nov 2020 19:16:49 +0000 (15:16 -0400)]
update

5 years agoavoid throwing exception when the handle is closed
Joey Hess [Wed, 18 Nov 2020 19:10:35 +0000 (15:10 -0400)]
avoid throwing exception when the handle is closed

The handle could get closed eg, by cleanupProcess being called,
which forces the process to exit and closes all its handles.

At this point, the test case in https://git-annex.branchable.com/bugs/Buggy_external_special_remote_stalls_after_7245a9e/
is fixed.

5 years agoavoid crash on EOF at end
Joey Hess [Wed, 18 Nov 2020 19:03:30 +0000 (15:03 -0400)]
avoid crash on EOF at end

5 years agoremoved
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 18:59:49 +0000 (18:59 +0000)]
removed

5 years agoAdded a comment: how to convert existing repo to new backend?
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 18:54:31 +0000 (18:54 +0000)]
Added a comment: how to convert existing repo to new backend?

5 years agofinish conversion to hGetLineUntilExitOrEOF
Joey Hess [Wed, 18 Nov 2020 18:54:02 +0000 (14:54 -0400)]
finish conversion to hGetLineUntilExitOrEOF

started in aafae46bcbb2a9533364b65be5fc05b379898aa1

5 years agoremove bench test
Joey Hess [Wed, 18 Nov 2020 18:25:19 +0000 (14:25 -0400)]
remove bench test

5 years agonewline mode (mis)handling for windows
Joey Hess [Wed, 18 Nov 2020 18:48:50 +0000 (14:48 -0400)]
newline mode (mis)handling for windows

Unfortunately, there is no hGetNewLineMode. This seems like an oversight
that should be fixed in ghc, but for now, I paper over it with a windows
hack.

5 years agoworking hGetLineUntilExitOrEOF
Joey Hess [Wed, 18 Nov 2020 18:21:47 +0000 (14:21 -0400)]
working hGetLineUntilExitOrEOF

The problem with the old version seemed to be that hWaitForInput blocks
rather than timing out when being run concurrently with hGetLine on the
same handle.

This passes the bench test, and also works when run concurrently on
different handles.

5 years agoremoved
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 17:59:54 +0000 (17:59 +0000)]
removed

5 years ago(no commit message)
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 17:54:49 +0000 (17:54 +0000)]

5 years ago(no commit message)
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 17:52:22 +0000 (17:52 +0000)]

5 years ago(no commit message)
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 18 Nov 2020 17:51:31 +0000 (17:51 +0000)]

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 18 Nov 2020 16:53:41 +0000 (12:53 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agofollowup
Joey Hess [Wed, 18 Nov 2020 16:52:14 +0000 (12:52 -0400)]
followup

5 years agobench test for hGetLineUntilExitOrEOF
Joey Hess [Wed, 18 Nov 2020 16:23:15 +0000 (12:23 -0400)]
bench test for hGetLineUntilExitOrEOF

This seems to show that hWaitForInput does not seem to behave as
documented. It does not time out, so blocks forever in this situation.
This is with a 0 timeout and with larger timeouts. Unsure why, it looked
like it should work.

5 years agoAdded a comment
kyle [Wed, 18 Nov 2020 15:30:07 +0000 (15:30 +0000)]
Added a comment

5 years ago(no commit message)
https://ro-che.info/ [Wed, 18 Nov 2020 13:46:25 +0000 (13:46 +0000)]

5 years ago(no commit message)
alex@3cb1cc0c80ffb2137f36155c5caa581605c3767b [Wed, 18 Nov 2020 12:09:08 +0000 (12:09 +0000)]

5 years ago(no commit message)
alex@3cb1cc0c80ffb2137f36155c5caa581605c3767b [Wed, 18 Nov 2020 12:08:08 +0000 (12:08 +0000)]

5 years agoAdded a comment
gueux [Wed, 18 Nov 2020 10:54:56 +0000 (10:54 +0000)]
Added a comment

5 years ago(no commit message)
lucas.gautheron@09f1983993dfb0907d02ba268b3ca672f1dc3eea [Wed, 18 Nov 2020 09:04:56 +0000 (09:04 +0000)]

5 years agoWIP
Joey Hess [Tue, 17 Nov 2020 21:31:08 +0000 (17:31 -0400)]
WIP

for https://git-annex.branchable.com/bugs/Buggy_external_special_remote_stalls_after_7245a9e/

5 years agocomment
Joey Hess [Tue, 17 Nov 2020 21:30:43 +0000 (17:30 -0400)]
comment

5 years agoinit: When writing hook scripts, set all execute bits, not only the user execute bit
Joey Hess [Tue, 17 Nov 2020 17:31:12 +0000 (13:31 -0400)]
init: When writing hook scripts, set all execute bits, not only the user execute bit

5 years agocomment
Joey Hess [Tue, 17 Nov 2020 17:20:54 +0000 (13:20 -0400)]
comment

5 years agofix typo closing
Joey Hess [Tue, 17 Nov 2020 16:00:03 +0000 (12:00 -0400)]
fix typo closing

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 17 Nov 2020 15:59:06 +0000 (11:59 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agofix build on windows
Joey Hess [Tue, 17 Nov 2020 15:58:45 +0000 (11:58 -0400)]
fix build on windows

5 years ago(no commit message)
gueux [Tue, 17 Nov 2020 11:21:56 +0000 (11:21 +0000)]

5 years agoretitle
Joey Hess [Mon, 16 Nov 2020 19:17:48 +0000 (15:17 -0400)]
retitle

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 16 Nov 2020 19:15:07 +0000 (15:15 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoavoid redundant adjusted branch update in sync
Joey Hess [Mon, 16 Nov 2020 19:13:48 +0000 (15:13 -0400)]
avoid redundant adjusted branch update in sync

sync still does update it if the config would otherwise not, since it
already did.

5 years agobug fix
Joey Hess [Mon, 16 Nov 2020 18:57:51 +0000 (14:57 -0400)]
bug fix

really innefficient but it does solve dropping

5 years agoavoid spurious blank line when updating adjusted branch
Joey Hess [Mon, 16 Nov 2020 18:31:02 +0000 (14:31 -0400)]
avoid spurious blank line when updating adjusted branch

git checkout run with --quiet should have no output

5 years agoannex.adjustedbranchrefresh
Joey Hess [Mon, 16 Nov 2020 18:09:55 +0000 (14:09 -0400)]
annex.adjustedbranchrefresh

Added annex.adjustedbranchrefresh git config to update adjusted branches
set up by git-annex adjust --unlock-present/--hide-missing.

Note, in a few cases, I was not able to make the adjusted branch
be updated in calls to moveAnnex, because information about what
file corresponds to a key is not available. They are:

* If two files point to one file, then eg, `git annex get foo` will
  update the branch to unlock foo, but will not unlock bar, because it
  does not know about it. Might be fixable by making `git annex get
  bar` do something besides skipping bar?
* git-annex-shell recvkey likewise (so sends over ssh from old versions
  of git-annex)
* git-annex setkey
* git-annex transferkey if the user does not use --file
* git-annex multicast sends keys with no associated file info

Doing a single full refresh at the end, after any incremental refresh,
will deal with those edge cases.

5 years agoAdded a comment
kyle [Mon, 16 Nov 2020 18:22:05 +0000 (18:22 +0000)]
Added a comment