Commit graph

29020 commits

Author SHA1 Message Date
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
73e8b79cce 2020-12-05 00:43:43 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
7e58bc8e70 2020-12-05 00:42:42 +00:00
kyle
d1ffd246bf bug: alwayscommit=false on windows 2020-12-04 21:05:25 +00:00
Joey Hess
efbc77f505
reword 2020-12-04 15:46:46 -04:00
Joey Hess
fa082f1f4f
fix link 2020-12-04 15:45:37 -04:00
Joey Hess
5fc60b8bd9
devblog 2020-12-04 15:43:03 -04:00
Joey Hess
2878ab4566
Merge branch 'master' of ssh://git-annex.branchable.com 2020-12-04 15:01:12 -04:00
Joey Hess
27f221cd7e
update 2020-12-04 15:00:49 -04:00
Joey Hess
438d5be1f7
support prompt in message serialization
That seems to be the last thing needed for message serialization.
Although it's only used in the assistant currently, so hard to tell if I
forgot something.

At this point, it should be possible to start using transferkeys
when performing transfers, which will allow killing a transferkeys
process if a transfer times out or stalls. But that's for another day.

This commit was sponsored by Ethan Aubin.
2020-12-04 14:54:09 -04:00
Joey Hess
581792bcf0
Merge branch 'master' into message-serialization 2020-12-04 13:55:49 -04:00
Joey Hess
4d9f416949
idea 2020-12-04 00:00:40 -04:00
Joey Hess
bf76ae2c90
mention new branch 2020-12-03 16:29:22 -04:00
Joey Hess
cad147cbbf
new protocol for transferkeys, with message serialization
Necessarily threw out the old protocol, so if an old git-annex assistant
is running, and starts a transferkeys from the new git-annex, it would
fail. But, that seems unlikely; the assistant starts up transferkeys
processes and then keeps them running. Still, may need to test that
scenario.

The new protocol is simple read/show and looks like this:

TransferRequest Download (Right "origin") (Key {keyName = "f8f8766a836fb6120abf4d5328ce8761404e437529e997aaa0363bdd4fecd7bb", keyVariety = SHA2Key (HashSize 256) (HasExt True), keySize = Just 30, keyMtime = Nothing, keyChunkSize = Nothing, keyChunkNum = Nothing}) (AssociatedFile (Just "foo"))
TransferOutput (ProgressMeter (Just 30) (MeterState {meterBytesProcessed = BytesProcessed 0, meterTimeStamp = 1.6070268727892535e9}) (MeterState {meterBytesProcessed = BytesProcessed 30, meterTimeStamp = 1.6070268728043e9}))
TransferOutput (OutputMessage "(checksum...) ")
TransferResult True

Granted, this is not optimally fast, but it seems good enough, and is
probably nearly as fast as the old protocol anyhow.

emitSerializedOutput for ProgressMeter is not yet implemented. It needs
to somehow start or update a progress meter. There may need to be a new
message that allocates a progress meter, and then have ProgressMeter
update it.

This commit was sponsored by Ethan Aubin
2020-12-03 16:21:20 -04:00
rshalaev@3e2130a1e3cb0aaff7dd80aba7548ad9be0ea2d4
c82048ba79 Added a comment: Windows 10 NTFS hardlinks not working 2020-12-03 11:43:08 +00:00
Lukey
b0320b1108 Added a comment 2020-12-03 07:38:31 +00:00
rshalaev@3e2130a1e3cb0aaff7dd80aba7548ad9be0ea2d4
894d7c07aa removed 2020-12-03 01:44:01 +00:00
rshalaev@3e2130a1e3cb0aaff7dd80aba7548ad9be0ea2d4
08c6ffa117 Added a comment 2020-12-03 01:43:20 +00:00
rshalaev@3e2130a1e3cb0aaff7dd80aba7548ad9be0ea2d4
c9b33c553d Added a comment 2020-12-03 01:43:00 +00:00
Joey Hess
1858b65d88
design work 2020-12-02 14:31:24 -04:00
falsifian
cf649b5753 Added a comment 2020-12-02 16:52:10 +00:00
basak
439e3f8e24 Added a comment 2020-12-02 02:12:59 +00:00
https://launchpad.net/~barthelemy
6360c0f53c Added a comment 2020-12-01 21:55:31 +00:00
Joey Hess
0540e987b3
improve p2p protocol handling of requested object not available
Avoid spurious "verification of content failed" message when downloading
content from a ssh or tor remote fails due to the remote no longer having a
copy of the content.

The P2P protocol already handled this case by sending DATA 0, followed by
VALID. But VALID was not really right, because the data is not the
requested data. So, send DATA 0, followed by INVALID. Old versions of
git-annex handle INVALID the same as VALID in this case. Now new versions
avoid displaying an incorrect message.

It would be better for the P2P protocol to have a different way to indicate
this, like perhaps sending INVALID without DATA. But that would be a
breaking change and need a new protocol verison. Since INVALID already is
part of the protocol and already needs to be handled, using it for this
special case too seems ok, and avoids the complication of another protocol
version.

This commit was sponsored by Jochen Bartl on Patreon.
2020-12-01 16:05:55 -04:00
Joey Hess
92136284b1
avoid hGetMetered 0 closing the handle
This is an edge case, which happened to be triggered by the P2P protocol
seeing DATA 0. When reading 0 bytes, getting an empty string does
not mean the handle has reached EOF.

I verified there was in fact a bug, where get of an empty file followed
by another file would get the empty file and then fail
with "handle is closed". This fixes it.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2020-12-01 15:39:22 -04:00
Joey Hess
41bb873319
comment 2020-12-01 12:59:10 -04:00
falsifian
a9ade9e6f8 2020-11-30 20:35:21 +00:00
dzhu
17ce86e2d3 Added a comment 2020-11-30 19:10:54 +00:00
Joey Hess
3416997174
remove digression 2020-11-30 13:31:02 -04:00
Joey Hess
ee86972f66
thought 2020-11-30 13:27:45 -04:00
Joey Hess
e843334a40
comment 2020-11-30 13:13:56 -04:00
Joey Hess
7776677a5f
Fix hang on shutdown of external special remote using ASYNC protocol extension.
Reversion introduced in version 8.20201007, one release after the 1st
release with the extension.

Surprisingly, hClose can hang if another thread is reading from the
handle. This is because it uses takeMVar.

The use of cancel here does mean that, if receiveMessageAddonProcess
or Remote.External.AsyncExtension.receiveloop allocated some resource in
a non-async-exception safe way, they might not get a chance to clean it up.
They do not appear to, and anyway, this only happens when git-annex is
shutting down, so any recource that did leak would not be a problem.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2020-11-30 13:04:02 -04:00
Joey Hess
1dc802a445
comment 2020-11-30 12:44:40 -04:00
Joey Hess
267bdaaac1
close 2020-11-30 12:28:20 -04:00
kyle
8d7b14e2f3 Added a comment 2020-11-30 15:18:58 +00:00
Lukey
7081811757 Added a comment 2020-11-30 07:36:41 +00:00
filipg@7e6a4a5ad3a393bcea174bf8fd6664deffc76c25
390411a835 Added a comment 2020-11-30 07:20:35 +00:00
dzhu
3be9dc6e1d fix typo (CONFIGSEND -> CONFIGEND) 2020-11-30 00:11:16 +00:00
Lukey
878dc46acd Added a comment 2020-11-29 20:57:25 +00:00
filipg@7e6a4a5ad3a393bcea174bf8fd6664deffc76c25
9804a0d0a6 2020-11-29 20:13:14 +00:00
Lukey
36b4a253e7 2020-11-29 19:06:37 +00:00
Lukey
7e86da7701 2020-11-29 19:04:34 +00:00
Lukey
e206f36361 Added a comment 2020-11-29 15:37:21 +00:00
dzhu
4383ab5a80 2020-11-29 02:36:23 +00:00
tcurdt@9d3ccb47a593bf70ac547ddae8fa634048b87ddf
a68c62b7a6 Added a comment 2020-11-28 16:49:47 +00:00
Lukey
547f087467 Added a comment 2020-11-27 18:46:04 +00:00
Joey Hess
c325338df2
add news item for git-annex 8.20201127 2020-11-27 12:57:31 -04:00
tcurdt@9d3ccb47a593bf70ac547ddae8fa634048b87ddf
a314537cd1 2020-11-27 14:13:00 +00:00
Ilya_Shlyakhter
41f9926b79 fix typo in git-annex command to create public S3 remote 2020-11-25 20:31:23 +00:00
Joey Hess
79135e4a92
close 2020-11-25 06:25:58 -04:00
jkniiv
145c343b4a 2020-11-25 09:19:03 +00:00
jkniiv
c623288288 2020-11-25 07:38:17 +00:00
gueux
87e6f09ce3 Added a comment 2020-11-24 21:07:37 +00:00
Joey Hess
84377c9b75
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-24 15:00:39 -04:00
Joey Hess
a80bf89e8d
comment and moreinfo needed 2020-11-24 15:00:06 -04:00
Lukey
ef204849e0 Added a comment 2020-11-24 18:35:16 +00:00
Joey Hess
49584ead91
close 2020-11-24 14:33:52 -04:00
Joey Hess
f844abd223
close 2020-11-24 14:32:34 -04:00
Joey Hess
e59cec1755
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-24 12:31:33 -04:00
Joey Hess
88cef18fac
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.
2020-11-24 12:31:17 -04:00
jkniiv
ad4689e790 Added a comment: I concur, in fact git annex init doesn't work at all 2020-11-24 16:28:25 +00:00
Joey Hess
14155bcebe
details 2020-11-24 11:38:50 -04:00
jwodder
88ca42ae91 2020-11-24 13:42:30 +00:00
lucas.gautheron@09f1983993dfb0907d02ba268b3ca672f1dc3eea
6bd65dbb1b 2020-11-24 11:53:44 +00:00
Lukey
02b9764ffd Added a comment 2020-11-23 19:06:13 +00:00
Lukey
f4d78f3ab9 Added a comment 2020-11-23 19:00:56 +00:00
Joey Hess
a6f7017eba
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-23 13:00:36 -04:00
Joey Hess
8b8ee68a9c
update 2020-11-23 13:00:20 -04:00
Joey Hess
24fdd36e50
forward bug report 2020-11-23 12:52:10 -04:00
jwodder
604b834431 Added a comment 2020-11-23 15:02:29 +00:00
Joey Hess
931ad80412
bug 2020-11-22 21:28:57 -04:00
Cebtenzzre
8816f0d8ab Added a comment 2020-11-22 16:07:16 +00:00
ghen1
c724adfb48 2020-11-22 13:24:47 +00:00
Joey Hess
0f9883580c
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-21 12:25:34 -04:00
Joey Hess
61e01bf7e0
fix format 2020-11-21 12:24:41 -04:00
git-annex@6e52e5c5d048aa6b470b95d81fbaf44769d11fbd
21e70142a7 2020-11-21 04:21:26 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
9cd9bcdb30 Added a comment 2020-11-20 22:16:34 +00:00
Joey Hess
b9f03371d5
done 2020-11-20 12:53:13 -04:00
gueux
65131af1f8 2020-11-19 22:15:58 +00:00
gueux
321663d27f 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 2020-11-19 22:14:24 +00:00
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