Commit graph

28941 commits

Author SHA1 Message Date
gueux
4193b8093d 2020-11-19 22:09:23 +00:00
jwodder
9a8a68a27d 2020-11-19 21:15:42 +00:00
Joey Hess
9089229c23
done 2020-11-19 16:38:51 -04:00
Joey Hess
b90b9b936d
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.
2020-11-19 14:44:42 -04:00
Joey Hess
3991c8e43d
comment 2020-11-19 13:02:23 -04:00
Joey Hess
7755c5705d
comment 2020-11-19 13:02:17 -04:00
Joey Hess
b3c88da181
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.
2020-11-19 12:50:25 -04:00
Joey Hess
4b739fc460
Fix build on Windows
Thanks to bug reporter for the patch.
2020-11-19 12:33:00 -04:00
Joey Hess
c3be0c8dd2
close 2020-11-19 12:08:06 -04:00
kyle
4c46e92ca3 Added a comment 2020-11-19 15:35:00 +00:00
git-annex@77d290f42943061acb99794c304fc6a6d5f601db
d321002182 2020-11-19 14:11:57 +00:00
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb
994a3b04d1 added version info as reported by git-annex version 2020-11-19 05:12:06 +00:00
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb
977ab328aa 2020-11-19 05:00:25 +00:00
wting
87c135c259 Added a comment 2020-11-19 03:12:37 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
db624d8a1e Added a comment 2020-11-18 19:28:51 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
c2dc234e0d removed 2020-11-18 19:26:33 +00:00
Joey Hess
d8b7f6721f
Merge branch 'ssh-hates-me' 2020-11-18 15:17:05 -04:00
Joey Hess
043eee0cb5
update 2020-11-18 15:16:49 -04:00
Joey Hess
9c448c877b
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-18 12:53:41 -04:00
Joey Hess
24f7d0af3d
followup 2020-11-18 12:52:14 -04:00
kyle
774a02909d Added a comment 2020-11-18 15:30:07 +00:00
https://ro-che.info/
b3ac1653b2 2020-11-18 13:46:25 +00:00
alex@3cb1cc0c80ffb2137f36155c5caa581605c3767b
a7254774b3 2020-11-18 12:09:08 +00:00
alex@3cb1cc0c80ffb2137f36155c5caa581605c3767b
5ecf4152c2 2020-11-18 12:08:08 +00:00
gueux
7dc9cf9d69 Added a comment 2020-11-18 10:54:56 +00:00
lucas.gautheron@09f1983993dfb0907d02ba268b3ca672f1dc3eea
0e1fcd94ba 2020-11-18 09:04:56 +00:00
Joey Hess
3dda21d292
comment 2020-11-17 17:30:43 -04:00
Joey Hess
6b63278f31
init: When writing hook scripts, set all execute bits, not only the user execute bit 2020-11-17 13:31:12 -04:00
Joey Hess
fbbc42a9d4
comment 2020-11-17 13:20:54 -04:00
Joey Hess
77b3f002cd
fix typo closing 2020-11-17 12:00:03 -04:00
gueux
f41026f5a9 2020-11-17 11:21:56 +00:00
Joey Hess
1be38362aa
retitle 2020-11-16 15:17:48 -04:00
Joey Hess
9a06a63e3c
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-16 15:15:07 -04:00
Joey Hess
805af01562
bug fix
really innefficient but it does solve dropping
2020-11-16 14:57:51 -04:00
Joey Hess
557a6e11a6
avoid spurious blank line when updating adjusted branch
git checkout run with --quiet should have no output
2020-11-16 14:41:38 -04:00
Joey Hess
0896038ba7
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.
2020-11-16 14:27:28 -04:00
kyle
4bc564cada Added a comment 2020-11-16 18:22:05 +00:00
yarikoptic
474dfa26f2 Added a comment 2020-11-16 17:44:33 +00:00
Joey Hess
26cf26caca
Merge branch 'master' into symlink-missing 2020-11-16 10:03:12 -04:00
Joey Hess
5a8d01f63e
examinekey: Added a "file" format variable
For consistency with find, and for easier scripting.
2020-11-16 09:59:11 -04:00
Joey Hess
17c92fcae5
add news item for git-annex 8.20201116 2020-11-16 09:39:06 -04:00
yarikoptic
13bab4f2cf Added a comment 2020-11-14 02:00:13 +00:00
wting
ea1662d6f3 Added a comment 2020-11-13 23:08:26 +00:00
Joey Hess
f07670a282
measurement 2020-11-13 15:57:35 -04:00
Joey Hess
56aabccda4
close 2020-11-13 15:54:33 -04:00
Joey Hess
29b46ee90a
comment 2020-11-13 15:52:55 -04:00
Joey Hess
b9351922d2
add todo 2020-11-13 15:50:35 -04:00
Joey Hess
e66b7d2e1b
rename to --unlock-present and better reverse adjusting
An --unlock-present branch reverses back to a branch where
all files that get modified or renamed become locked, even if they were
originally unlocked. This is the same that reversing a --unlock branch
works, and the new name makes that commonality more clear.
2020-11-13 14:56:43 -04:00
Joey Hess
3899e216af
Merge branch 'master' into symlink-missing 2020-11-13 14:19:45 -04:00
Joey Hess
a30030c4a6
move: Fix a regression in the last release that made move --to not honor numcopies settings
This commit was sponsored by Svenne Krap on Patreon.
2020-11-13 14:19:32 -04:00
Joey Hess
c8e49c5ef5
git-annex adjust --lock-missing
Like --hide-missing the branch does not get updated when content
availability changes.

Seems to basically work, but sync does not update it yet.

Also, when a file is present and so unlocked, git mv followed by
git-annex sync results in the basis branch being updated to contain the
file with the new name, unlocked. This seems different than what
happens in an adjusted unlocked branch, where the commit propigates back
locked. Probably the reverse adjustment code needs to be improved to
handle this case.
2020-11-13 13:39:44 -04:00
Joey Hess
57bd0cf4e3
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-13 13:34:59 -04:00
kyle
eaeedfe0ca Added a comment 2020-11-13 16:36:46 +00:00
wting
d5aab420b5 2020-11-13 06:20:27 +00:00
Joey Hess
81f801c3b4
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-12 14:11:19 -04:00
Joey Hess
7566aa6bc5
examinekey: Added --migrate-to-backend
Note that, the way the SeekInput parser is written to support batch mode,
it's actually possible to do git-annex examinekey
"SHA1--foo foo.tar.gz" --migrate-to-backend=SHA1E

While that might be kind of useful to support multiple migrations not using
batch mode, I have not documented it. It would be better to take pairs of
key and file in that case.
2020-11-12 14:09:14 -04:00
kyle
bb6b3b1bcb 2020-11-12 17:13:55 +00:00
Joey Hess
12e32d1dee
examinekey: Added two new format variables: objectpath and objectpointer 2020-11-12 13:02:31 -04:00
Joey Hess
c5141b469a
comment 2020-11-12 12:59:27 -04:00
Joey Hess
d7da4ee00a
comment 2020-11-12 12:29:15 -04:00
yarikoptic
60a71f90cc adding a note pointing to tentative recipe 2020-11-11 20:10:33 +00:00
yarikoptic
07e9f43c63 todo/question on how to get full path to the key knowing metadata but having no file 2020-11-11 19:29:14 +00:00
Joey Hess
15b75ef1b8
mixed up some of these long urls 2020-11-11 11:47:58 -04:00
Joey Hess
adcf95f3f2
updated github builds that datalad is doing 2020-11-11 08:50:18 -04:00
Joey Hess
9c9c74d824
update 2020-11-11 08:14:55 -04:00
Joey Hess
da80f75f3b
question 2020-11-11 07:53:42 -04:00
Joey Hess
bc1ac21885
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-10 12:15:04 -04:00
Joey Hess
92b7b1964d
add warning on add of annex link
Warn when adding a annex symlink or pointer file that uses a key that is
not known to the repository, to prevent confusion if the user has copied it
from some other repository.

This commit was sponsored by Jake Vosloo on Patreon.
2020-11-10 12:10:51 -04:00
jcjgraf
736a51112b Added a comment 2020-11-10 16:05:57 +00:00
Joey Hess
9e8eae20e2
comment 2020-11-10 11:53:45 -04:00
jcjgraf
b05ba8aa5a Added a comment 2020-11-10 10:17:12 +00:00
Joey Hess
885974be99
add newtypes for QuickCheck to avoid LANG=C issues
All properties changed to use them, except for
prop_encode_c_decode_c_roundtrip, which already filtered to ascii
for other reasons.

A few modules had to be split out, because Setup does not build-depend
on QuickCheck.
2020-11-09 20:21:18 -04:00
Joey Hess
aad4129669
diagnosis 2020-11-09 19:10:41 -04:00
yarikoptic
098984574d fresh test failures + report that still there are FTBFS: I only wish git-annex development used some CI 2020-11-09 22:11:32 +00:00
Joey Hess
af9354f447
comment 2020-11-09 17:30:08 -04:00
jcjgraf
7e2b74d278 Added a comment 2020-11-09 20:41:00 +00:00
Joey Hess
0f28133778
followup 2020-11-09 15:45:39 -04:00
Joey Hess
cab33481c0
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-09 15:26:31 -04:00
Joey Hess
d032b0885d
use MatchingKey when a Key is known
This fixes a bug where a file that was not preferred content could be
transferred to a remote. This happened when the file got deleted after
the sync started running.

The only time checkMatcher is run without a Key is in calls to
checkFileMatcher, which are only done by add, addurl, import, and
smudge --clean. Those won't be affected by this kind of race. Anything
else that might be precaching and have a similar race as sync will also
be fixed, but I don't know if it actually affected anything other than
sync.

As well as fixing a bug, this also probably makes sync and --auto faster
by avoiding the redundant key lookup.

This commit was sponsored by Graham Spencer on Patreon.
2020-11-09 15:17:22 -04:00
Joey Hess
d84371ff73
reproduced 2020-11-09 14:35:51 -04:00
jcjgraf
3e12f5872a Added a comment 2020-11-09 18:13:47 +00:00
Joey Hess
cefae2e257
close 2020-11-09 13:50:16 -04:00
Joey Hess
acc7a172ae
update link 2020-11-09 13:46:17 -04:00
Joey Hess
661499732a
comment 2020-11-09 12:38:44 -04:00
Joey Hess
dd52d8ebdc
update after RawFilePath transition 2020-11-09 12:12:25 -04:00
jochen.keil@38b1f86ab65128dab3e62e726403ceee4f5141bf
7df2979d98 Added a comment 2020-11-09 13:15:41 +00:00
https://christian.amsuess.com/chrysn
c592105924 Make change log entry readable on the wiki (previous copy-paste from (debian?) changelog garbled itemization) 2020-11-08 18:14:48 +00:00
Lukey
73bf45a163 Added a comment 2020-11-08 08:25:36 +00:00
yarikoptic
62820a4c30 Added a comment 2020-11-07 23:59:52 +00:00
Joey Hess
c64e95045d
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-07 14:10:19 -04:00
Joey Hess
3f08c34073
bug 2020-11-07 10:58:43 -04:00
yarikoptic
ea9d3f7d2f FTBFS 2020-11-07 00:45:06 +00:00
jcjgraf
d8e8d145e1 Added a comment 2020-11-06 14:57:52 +00:00
Lukey
1b02a81346 Added a comment 2020-11-06 14:14:18 +00:00
Lukey
9d598265e4 2020-11-05 18:41:25 +00:00
interfect@b151490178830f44348aa57b77ad58c7d18e8fe7
4245fe144e Added a comment 2020-11-05 17:55:31 +00:00
jcjgraf
b7e8a75b8c 2020-11-05 13:31:04 +00:00
a@92214b2eae95307f511e06845d2cb5b5931b00a3
0431c2d067 Added a comment: Re: Moving S3 special remote 2020-11-05 03:44:52 +00:00
a@92214b2eae95307f511e06845d2cb5b5931b00a3
937f84a9ea 2020-11-03 16:38:19 +00:00
Joey Hess
eacfb58eca
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-03 11:53:52 -04:00