Commit graph

29949 commits

Author SHA1 Message Date
Ilya_Shlyakhter
a4ebd33074 Added a comment 2021-04-17 22:54:34 +00:00
Ilya_Shlyakhter
d21b54b05b Added a comment: drop --not-used-elsewhere 2021-04-17 22:31:52 +00:00
Ilya_Shlyakhter
0a4614b653 Added a comment: updating the keys database incrementally 2021-04-17 22:23:45 +00:00
pat
3aeb4e3d8c Added a comment 2021-04-17 21:05:28 +00:00
pat
1a0ac4f5e1 2021-04-17 20:51:30 +00:00
Ilya_Shlyakhter
44aad24f30 added suggestion: let git-annex-matching-options query .gitattributes 2021-04-17 20:38:09 +00:00
pat
8934c67d80 removed 2021-04-17 20:22:35 +00:00
pat
9a61c60b53 Added a comment 2021-04-17 20:21:57 +00:00
pat
aef507b0c2 Added a comment 2021-04-17 20:21:39 +00:00
pat
07ca761084 2021-04-17 20:01:25 +00:00
Ilya_Shlyakhter
4b75d79a0b Added a comment: re: Sync from one remote to another 2021-04-17 19:34:19 +00:00
pat
bafe5102e7 2021-04-17 02:59:15 +00:00
Joey Hess
c8e607f226
comment 2021-04-16 14:45:46 -04:00
Joey Hess
e56e40c51a
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-16 14:41:51 -04:00
Joey Hess
29108a8801
thoughts 2021-04-16 14:41:12 -04:00
Lukey
c4fcfa8d33 Added a comment 2021-04-16 18:29:22 +00:00
Joey Hess
f6933c95cf
comment 2021-04-16 13:54:50 -04:00
Joey Hess
7496c86c7c
comment 2021-04-16 13:49:05 -04:00
Joey Hess
71e41eb03c
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-16 13:30:52 -04:00
Joey Hess
90eb649e73
idea 2021-04-16 13:30:23 -04:00
kousu
a07bf4c840 Added a comment: Hardlinks 2021-04-16 08:17:36 +00:00
Ilya_Shlyakhter
3378f74fb0 Added a comment: lockContent for special remotes 2021-04-15 16:32:34 +00:00
yarikoptic
75bd75def2 reporting fresh test fails 2021-04-15 13:04:18 +00:00
yarikoptic
a72b7b8c2f initial todo/report on drop dropping a key "for all paths" 2021-04-15 02:30:33 +00:00
Joey Hess
e1a9b79fa6
fix hardcoded origin name in checkAdjustedClone
init: Fix a crash when the repo's was cloned from a repo that had an
adjusted branch checked out, and the origin remote is not named "origin".

The only other hardcoding of the name of origin is in:

- Upgrade.V2, which can be ignored probably
- Annex.Branch, which doesn't fail if it has some other name, but just
  doesn't set up the git-annex branch with quite as linear a history in
  that case.
2021-04-14 18:53:27 -04:00
kyle
4c3d8241ae crippledfilesystem override not needed 2021-04-14 21:26:32 +00:00
yarikoptic
3aa4cc9d6f Added a comment 2021-04-14 20:46:11 +00:00
kyle
c489b471d5 bug: init crash with remote name other than "origin" 2021-04-14 20:44:23 +00:00
Joey Hess
17646b0b31
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-14 16:20:13 -04:00
Joey Hess
58da9f74b7
directory CoW on export
Completing Cow support for directory.
2021-04-14 16:19:43 -04:00
Joey Hess
b86206b553
directory CoW on import 2021-04-14 16:10:09 -04:00
Lukey
5299589919 Added a comment 2021-04-14 20:06:31 +00:00
jbwexler@f0760d2c023f7660c38fb17889d4cd6930183696
e3d54424ad Added a comment: thanks 2021-04-14 19:03:12 +00:00
Joey Hess
a36be49b01
comment 2021-04-14 14:12:32 -04:00
yarikoptic
066c4f1efc Added a comment: comment to joey response on cp --reflink workaround 2021-04-14 18:04:53 +00:00
Joey Hess
34e959f181
tag confirmed 2021-04-14 13:45:59 -04:00
Joey Hess
cac7866bce
note 2021-04-14 13:44:43 -04:00
Joey Hess
d1478e8b40
correction 2021-04-14 13:42:37 -04:00
Joey Hess
42c8f1e5f5
comment 2021-04-14 13:41:24 -04:00
Joey Hess
799e7b3c29
update 2021-04-14 13:32:28 -04:00
Joey Hess
5978b2a35b
comment 2021-04-14 13:31:08 -04:00
Joey Hess
5783a8d081
fsck: avoid redundant checksum when transfer is Verified
When downloading content from a remote, if the content is able to be
verified during the transfer, skip checksumming it a second time.

Note that in this case, the fsck output does not include "(checksum)"
which it does when the checksumming is done separately from the download.

This commit was sponsored by Brock Spratlen on Patreon.
2021-04-14 13:22:54 -04:00
Joey Hess
5ee14db037
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-14 12:55:18 -04:00
Atemu
46309994a2 2021-04-14 16:14:20 +00:00
yarikoptic
c300675051 is importtree CoW from directory? 2021-04-14 14:24:18 +00:00
kyle
4a542e10ac one-off unlocked annex files that go against largefiles configuration 2021-04-14 01:08:08 +00:00
Joey Hess
e0d05e00c6
comment 2021-04-13 19:58:35 -04:00
jbwexler@f0760d2c023f7660c38fb17889d4cd6930183696
d15c08e0d9 2021-04-13 23:40:00 +00:00
Joey Hess
b4686de7a1
fix comment location 2021-04-13 16:34:36 -04:00
Joey Hess
5004f9a553
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-13 16:32:00 -04:00
Joey Hess
e375169e1e
comment 2021-04-13 16:31:27 -04:00
Ilya_Shlyakhter
d48ff049bc Added a comment: hybrid encryption 2021-04-13 20:30:45 +00:00
datamanager
08962119c8 Added a comment: Can I manually decrypt my files? 2021-04-13 20:04:32 +00:00
Joey Hess
8e7dc958d2
forget: Preserve currently exported trees
Avoiding problems with exporttree remotes in some unusual circumstances.

This commit was sponsored by Brett Eisenberg on Patreon.
2021-04-13 15:00:23 -04:00
Joey Hess
0bcf155e11
thoughts 2021-04-13 14:41:27 -04:00
Joey Hess
e10ab30e3b
comment 2021-04-13 13:41:48 -04:00
Joey Hess
6911787042
idea 2021-04-13 13:41:36 -04:00
Joey Hess
a58e955293
bug report 2021-04-13 13:31:51 -04:00
Joey Hess
948dd8a0cc
change back to git-remote-gcrypt 1.4 url forms, with a note that that version is needed 2021-04-13 12:55:50 -04:00
Joey Hess
6f7730f6cf
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-13 12:45:40 -04:00
Joey Hess
67d91c63f7
update 2021-04-12 14:13:44 -04:00
https://launchpad.net/~r0lf
69efb3fa53 fix URI for rsync over ssh as per woffs' suggestion in #git-annex 2021-04-12 17:44:06 +00:00
https://launchpad.net/~r0lf
d05198f2ee fix URI for rsync over ssh as per woffs' suggestion in #git-annex 2021-04-12 17:42:25 +00:00
Joey Hess
1e322c329e
update 2021-04-12 13:00:24 -04:00
Joey Hess
4c35d58bfe
comment and analysis 2021-04-12 12:54:46 -04:00
Ilya_Shlyakhter
ad2a6d45db Added a comment 2021-04-12 15:39:31 +00:00
DeweyA123
16f9e4bfff removed 2021-04-12 15:15:43 +00:00
DeweyA123
3ee58091a1 removed 2021-04-12 15:14:40 +00:00
DeweyA123
766e52a197 Added a comment: Waiting as well 2021-04-12 15:12:53 +00:00
DeweyA123
45d6ea36f3 Added a comment: Waiting as well 2021-04-12 15:12:31 +00:00
DeweyA123
66883d9242 Added a comment: Waiting as well 2021-04-12 15:12:07 +00:00
Ilya_Shlyakhter
70991c1d65 Added a comment 2021-04-12 14:42:13 +00:00
Ilya_Shlyakhter
1eecb6e939 Added a comment: un-adding annexed files 2021-04-12 14:18:46 +00:00
Ilya_Shlyakhter
b853999c16 Added a comment: un-adding annexed files 2021-04-12 14:18:22 +00:00
Atemu
7923c6d7c2 Added a comment 2021-04-12 09:46:05 +00:00
Ilya_Shlyakhter
cf60184992 Added a comment: lockContent for special remotes w/o changing the protocol 2021-04-12 01:20:16 +00:00
Ilya_Shlyakhter
a3d2e2a09e Added a comment: un-adding a key 2021-04-12 00:50:42 +00:00
Atemu
4bc6f522ba Added a comment 2021-04-11 10:54:43 +00:00
Atemu
58728a312c Added a comment 2021-04-10 17:12:30 +00:00
Atemu
6f5ea582a0 2021-04-10 16:47:07 +00:00
Atemu
d23a8f1469 Added a comment 2021-04-08 19:33:49 +00:00
Joey Hess
805d325a8d
diffdriver: Support unlocked files 2021-04-08 14:32:09 -04:00
Joey Hess
e0dc101179
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-08 13:59:04 -04:00
Joey Hess
7b6ab0ae9a
comment 2021-04-08 13:51:43 -04:00
yarikoptic
e1ffa3e10a note on the order 2021-04-08 17:47:22 +00:00
yarikoptic
8f0a3799d0 initial report on diff driver behavior on unlocked files 2021-04-08 17:44:39 +00:00
Joey Hess
13c8fe220b
comment 2021-04-08 13:21:30 -04:00
Joey Hess
e5c4c86b45
comment 2021-04-08 12:57:57 -04:00
Atemu
da0ce2d2e0 Added a comment: Workaround 2021-04-08 14:02:54 +00:00
Atemu
86f782a4a0 2021-04-08 12:08:27 +00:00
Atemu
351f5d753f fix url 2021-04-08 11:56:13 +00:00
Atemu
474dd1a3fc 2021-04-08 11:50:59 +00:00
Ilya_Shlyakhter
9041b2b6a4 Added a comment: running untrusted code 2021-04-07 16:52:42 +00:00
Joey Hess
da88863082
comment and close, open related todo 2021-04-06 16:51:38 -04:00
Joey Hess
b57dde2590
comment 2021-04-05 15:47:42 -04:00
Joey Hess
98b223a71c
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-05 15:32:08 -04:00
Joey Hess
1b645e1ace
added --debugfilter (and annex.debugfilter) 2021-04-05 15:31:10 -04:00
Joey Hess
19c672e710
update 2021-04-05 10:56:07 -04:00
Atemu
a0c4405411 2021-04-05 09:31:48 +00:00
https://launchpad.net/~r0lf
10c04ed3b1 Added a comment: still an issue in Ubuntu Focal 2021-04-05 01:28:49 +00:00
https://launchpad.net/~r0lf
507b0fa6ea removed 2021-04-05 01:22:24 +00:00
https://launchpad.net/~r0lf
ed30ba4397 Added a comment: still an issue in focal 2021-04-05 01:20:30 +00:00
Atemu
45a93d7129 2021-04-04 09:23:41 +00:00
Joey Hess
3204f0bbaa
comments 2021-04-02 13:41:26 -04:00
Joey Hess
4a30fddc2a
idea 2021-04-01 15:49:30 -04:00
Joey Hess
370e71aa73
improve man page wording 2021-04-01 12:58:06 -04:00
Joey Hess
5c227b414e
improve description of syncing with import/export remotes 2021-04-01 12:50:19 -04:00
Joey Hess
3dac5630f0
comment 2021-04-01 12:32:50 -04:00
Joey Hess
632ae09e28
comment 2021-04-01 12:24:21 -04:00
Joey Hess
8868a3a4c7
Fix build with persistent-2.12.0.1
persistent stopped using askLogFunc, and the thing to use is askLoggerIO
from monad-logger. Bumped the dep to the first version that contained that.

Note that the i386ancient build uses a newer monad-logger than 0.3.10,
so the new versioned dep should not break it, and presumably nothing else
either.

This commit was sponsored by Noam Kremen on Patreon.
2021-04-01 12:21:02 -04:00
Ilya_Shlyakhter
4dde355c79 Added a comment: dockerized special remotes: security 2021-04-01 15:20:05 +00:00
nrg@bd619d1ebf16e6324c546adea8be8fe1cc2b4325
3b1088a865 2021-03-31 14:43:28 +00:00
Ilya_Shlyakhter
62a1577f5c Added a comment: git-annex-standalone-amd64.tar.gz not getting updated at archive.org 2021-03-31 03:35:12 +00:00
Ilya_Shlyakhter
57cbad31dd Added a comment 2021-03-30 19:17:08 +00:00
Joey Hess
9e32589876
add news item for git-annex 8.20210330 2021-03-30 14:34:14 -04:00
Joey Hess
24c576bfa7
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-30 12:58:34 -04:00
Joey Hess
c852dde866
comment 2021-03-30 12:57:26 -04:00
Lukey
01c00717f8 Added a comment 2021-03-30 16:51:53 +00:00
Lukey
6efe5d2931 removed 2021-03-30 16:50:35 +00:00
Lukey
557d718ee3 Added a comment 2021-03-30 16:49:05 +00:00
Joey Hess
4459e04117
comment 2021-03-30 12:48:43 -04:00
Lukey
a366e9d0fc Added a comment 2021-03-30 16:21:14 +00:00
Joey Hess
773752b040
comment 2021-03-30 12:06:36 -04:00
Lukey
568f1c421b Added a comment 2021-03-30 16:01:04 +00:00
Joey Hess
a5cc9d0342
mention the --activity=Fsck 2021-03-30 11:49:11 -04:00
Ilya_Shlyakhter
4403791c6c Added a comment: autoenabling external special remotes 2021-03-30 15:17:05 +00:00
Ilya_Shlyakhter
075e209ce2 added bug report re: git-annex-sync succeeding without fetching all files 2021-03-30 15:00:56 +00:00
Ilya_Shlyakhter
9b8661c327 added suggestion to have git-annex-info display the time of last interaction with repos 2021-03-30 14:31:14 +00:00
Kyle Meyer
fb03382f2d doc/install/guix: Prune list of disabled features 2021-03-29 14:26:01 -04:00
Joey Hess
99dd7eb480
update 2021-03-29 13:58:27 -04:00
Joey Hess
9838e858b5
comment 2021-03-29 13:39:21 -04:00
Joey Hess
91b8121c8d
close 2021-03-29 13:08:22 -04:00
Joey Hess
717caca083
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-29 13:07:40 -04:00
Lukey
6bb76b015e removed 2021-03-29 15:09:28 +00:00
Mcadamsdaniel@54b31d05ef6226d665c7bfe4a7227ca3d330fd07
3ef9153b38 removed 2021-03-29 15:07:08 +00:00
Mcadamsdaniel@54b31d05ef6226d665c7bfe4a7227ca3d330fd07
743c952c53 Added a comment: @seanl 2021-03-29 15:06:29 +00:00
Mcadamsdaniel@54b31d05ef6226d665c7bfe4a7227ca3d330fd07
10f6e36cfe Added a comment: @seanl 2021-03-29 15:04:36 +00:00
Ilya_Shlyakhter
4a63a37d9b Added a comment 2021-03-26 23:15:08 +00:00
Lukey
2f3e723a90 Added a comment 2021-03-26 21:47:41 +00:00
Joey Hess
07cbaf9a86
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-26 16:09:35 -04:00
Joey Hess
4611813ef1
Fix bug importing from a special remote into a subdirectory more than one level deep
Which generated unusual git trees that could confuse git merge,
since they incorrectly had 2 subtrees with the same name.

Root of the bug was a) not testing that at all! but also
b) confusing graftdirs, which contains eg "foo/bar" with
non-recursively read trees, which would contain eg "bar"
when reading a subtree of "foo".

It's worth noting that Annex.Import uses graftTree, but it really
shouldn't have needed to. Eg, when importing into foo/bar from a remote,
it's enough to generate a tree of foo/bar/x, foo/bar/y, and does not
include other files that are at the top of the master branch. It uses
graftTree, so it does include the other files, as well as the foo/bar
tree. git merge will do the same thing for both trees. With that said,
switching it away from graftTree would result in another import
generating a new commit that seems to delete files that were there in a
previous commit, so it probably has to keep using graftTree since it
used it before.

This commit was sponsored by Kevin Mueller on Patreon.
2021-03-26 16:04:36 -04:00
Ilya_Shlyakhter
f49c6fa9d2 Added a comment: conflicting git-annex-config values 2021-03-26 19:27:05 +00:00
Joey Hess
1a8f984634
initial analysis 2021-03-26 14:27:48 -04:00
Joey Hess
183b77fef4
comment 2021-03-26 13:32:19 -04:00
Joey Hess
7684cd28bb
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-26 13:29:57 -04:00
Joey Hess
f085ae4937
borg: Support importing files that are hard linked in the borg backup
Note that a key with no size field that is hard linked will
result in listImportableContents reporting a file size of 0,
rather than the actual size of the file. One result is that
the progress meter when getting the file will seem to get stuck
at 100%. Another is that the remote's preferred content expression,
if it tries to match against file size, will treat it as an empty file.
I don't see a way to improve the latter behavior, and the former behavior
is a minor enough problem.

This commit was sponsored by Jake Vosloo on Patreon.
2021-03-26 13:29:34 -04:00
Joey Hess
31eb5fddf3
borg: Fix a bug that prevented importing keys of type URL and WORM
Keys stored on the filesystem are mangled by keyFile to avoid problem
chars. So, that mangling has to be reversed when parsing files from a
borg backup back to a key.

The directory special remote also so mangles them. Some other special
remotes do not; eg S3 just serializes the key -- but S3 object names are
not limited to filesystem valid filenames anyway, so a S3 server must
not map them directly to files in any case. It seems unlikely that a
borg backup of some such special remote will get broken by this change.

This commit was sponsored by Graham Spencer on Patreon.
2021-03-26 12:07:00 -04:00
parhuzamos
72f5088d34 2021-03-26 12:34:01 +00:00
parhuzamos
2187892a81 2021-03-26 12:31:47 +00:00
Lukey
79adbbadce Added a comment 2021-03-25 18:26:32 +00:00
branchable@652bb419541f29c1d6b1fc16bd84c3867fbda245
252551e670 2021-03-25 17:25:29 +00:00
Joey Hess
537f9d9a11
Improved display of errors when accessing a git http remote fails.
New error message:

  Remote foo not usable by git-annex; setting annex-ignore

  http://localhost/foo/config download failed: Configuration of annex.security.allowed-ip-addresses does not allow accessing address ::1

If git config parse fails, or the git config file is not available at the url,
a better error message for that is also shown.

This commit was sponsored by Mark Reidenbach on Patreon.
2021-03-24 14:19:32 -04:00
git-annex@6f13b739194f758abc0b86556b7ce966c1bf3c00
14b846e9fa Added a comment: borg hardlinks 2021-03-24 10:29:16 +00:00
git-annex@6f13b739194f758abc0b86556b7ce966c1bf3c00
d4a3465f8b Added a comment: / vs. % in key 2021-03-24 10:07:30 +00:00
git-annex@6f13b739194f758abc0b86556b7ce966c1bf3c00
cc9d6889e2 2021-03-24 09:44:49 +00:00
tomdhunt
ffccfff618 Added a comment 2021-03-23 22:59:07 +00:00
Ilya_Shlyakhter
fc598d56e9 posted forum question re: git-annex-sync and git-annex-config 2021-03-23 20:13:18 +00:00
Ilya_Shlyakhter
a4cc0c95b4 added suggestion for additional git-annex-config settings 2021-03-23 20:11:39 +00:00
Ilya_Shlyakhter
547a5a8ca8 Added a comment: annex.supportunlocked=false 2021-03-23 20:02:19 +00:00
Joey Hess
f19271c5d9
comment 2021-03-23 15:51:21 -04:00
Joey Hess
806b6f77b9
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-23 15:47:21 -04:00
Ilya_Shlyakhter
3925235805 Added a comment: annex.supportunlocked 2021-03-23 19:30:44 +00:00
Joey Hess
5d78cd9d08
Sped up git-annex init in a clone of an existing repository
Seems that hasOrigin was never finding origin's git-annex branch, so a new
one got created each time. And so then it later needed to merge the two
branches, which is expensive.

Added --no-track to git branch to avoid it displaying a message about
setting up tracking branches. Of course there's no reason to make the
git-annex branch a tracking branch since git-annex auto-merges it.
2021-03-23 15:23:13 -04:00
yarikoptic
ed5fd5b896 Added a comment 2021-03-23 18:43:32 +00:00
Joey Hess
798f685077
New annex.supportunlocked config
Can beet to false to avoid some expensive things needed to support unlocked
files.

See my comment for why this only controls what init sets up, and not other
behavior.

I didn't bother with making the v5 upgrade code path look at this, though
it easily could, because the docs say to run git-annex init after setting
it to make it take effect.
2021-03-23 14:04:34 -04:00
Joey Hess
af96b49145
comment 2021-03-23 13:53:32 -04:00
Joey Hess
d89a9b0f78
comments 2021-03-23 12:05:05 -04:00
Joey Hess
e09560eea2
open a bug based on comment thread 2021-03-23 11:50:07 -04:00
Lukey
2ac2cc79c2 Added a comment 2021-03-23 07:19:40 +00:00
tomdhunt
a50071b60f Added a comment 2021-03-22 23:35:32 +00:00
Ilya_Shlyakhter
3b748d522b clarified git-annex-unlock docs re: git add 2021-03-22 19:58:43 +00:00
Ilya_Shlyakhter
420e402779 Added a comment: replacing a locked file with new content 2021-03-22 19:50:27 +00:00
Joey Hess
29f9cf188d
comment 2021-03-22 15:20:28 -04:00
Joey Hess
3a125a8a9a
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-22 15:09:22 -04:00
Joey Hess
637229c593
fix fsck --from --all to not fall over trying to check required content
fsck: When --from is used in combination with --all or similar options, do
not verify required content, which can't be checked properly when operating
on keys.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2021-03-22 15:08:07 -04:00
kyle
e15a185107 Added a comment: Re: push doc-only changes 2021-03-22 18:58:36 +00:00
Joey Hess
b8df74c016
comment 2021-03-22 14:44:24 -04:00
Joey Hess
da989596cd
git-annex is in openbsd ports 2021-03-22 14:37:06 -04:00
Joey Hess
e8ee1a4506
reorder
it seems to make sense to have linux and osx first since a lot of users
use those, and windows at the end because well, it's windows. but it
seemed odd to start with osx, so moved linux up.

alphabetical would maybe be better, but then android comes first, which
just feels weird since it's such a niche port. also the linux distro
sublist has a good reason not to be alphabetical, eg docker and conda
are on there as kind of last resorts
2021-03-22 14:30:23 -04:00
Joey Hess
9b8d6a86e8
freebsd is not a linux distribution 2021-03-22 14:28:03 -04:00
Joey Hess
5545e78a1e
Make --debug also enable debugging in child git-annex processes
Especially necessary with stalldetection using child processes for
transfers.

This commit was sponsored by Jack Hill on Patreon.
2021-03-22 14:25:28 -04:00
Joey Hess
1ddaa6b541
comment 2021-03-22 13:52:11 -04:00
Joey Hess
2af5bc8fa2
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-22 13:50:58 -04:00
Joey Hess
3a3832fcb4
remove link to old windows 7 build
that autobuilder is no longer available
2021-03-22 13:48:46 -04:00
Joey Hess
79b3e0dca9
comment 2021-03-22 13:43:58 -04:00
Lukey
25cf5e39df Added a comment 2021-03-22 17:19:37 +00:00
Joey Hess
5d75cbcdcf
webdav: deal with buggy webdav servers in renameExport
box.com already had a special case, since its renaming was known buggy.
In its case, renaming to the temp file succeeds, but then renaming the temp
file to final destination fails.

Then this 4shared server has buggy handling of renames across directories.
While already worked around with for the temp files when storing exports
now being in the same directory as the final filename, that also affected
renameExport when the file moves between directories.

I'm not entirely clear what happens on the 4shared server when it fails
this way. It kind of looks like it may rename the file to destination and
then still fail.

To handle both, when rename fails, delete both the source and the
destination, and fall back to uploading the content again. In the box.com
case, the temp file is the source, and deleting it makes sure the temp file
gets cleaned up. In the 4shared case, the file may have been renamed to the
destination and so cleaning that up avoids any interference with the
re-upload to the destination.
2021-03-22 13:08:18 -04:00
Joey Hess
c984d248d2
clarify 2021-03-22 12:15:54 -04:00
Joey Hess
f175d4cc90
rmurl: remove all forms of an url, no matter what the downloader is set to
* rmurl: When youtube-dl was used for an url, it no longer needs to be
  prefixed with "yt:" in order to be removed.
* rmurl: If an url is both used by the web and also claimed by another
  special remote, fix a bug that caused the url to to not be removed.

The youtube-dl change is a consequence of how the bug fix is implemented.
But I also think it's the right thing to do. Consider that, before,
git-annex addurl $url followed by git-annex rmurl $url would not remove the
url in the case where youtube-dl was used. That was surprising behavior.

In the unlikely case where a special remote claims an url, and it's been
added using OtherDownloader, but it was also added already as a web url,
it seems better for rmurl to remove both than to arbitrarily remove only one.

And in the case the bug report was filed for, when an url was added as a
web url, but a special remote now claims it, that should not prevent rmurl
removing the web url.

Calling setUrlMissing lets other callers of it behave differently.
Probably the calls to it in eg, Remote.External and Remote.BitTorrent are
fine, since they don't mangle the url and just remove what was provided,
and the OtherDownloader form of a bittorrent url, respectively.
I suspect unregisterurl needs to have a similar change made to rmurl, for
similar reasons.
2021-03-22 12:09:15 -04:00
Joey Hess
77d3d4350d
forgot to close this 2021-03-22 11:31:00 -04:00
Joey Hess
f15d083e75
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-22 10:59:57 -04:00
Joey Hess
34374a679d
comment 2021-03-22 10:58:12 -04:00
Joey Hess
a39a6096ec
comment 2021-03-22 10:37:33 -04:00
Joey Hess
f6833312a9
comment 2021-03-22 10:24:57 -04:00
Joey Hess
ee49bdd410
comment 2021-03-22 10:20:58 -04:00
Joey Hess
5dedaa3efa
close 2021-03-22 10:17:41 -04:00
Ilya_Shlyakhter
14fafeea8a Added a comment: another deduplication option 2021-03-22 13:51:35 +00:00
Ilya_Shlyakhter
99f090db0b Added a comment: keeping state re: unlocked files? 2021-03-21 18:29:17 +00:00
tomdhunt
9f932e0b4c Added a comment 2021-03-21 17:10:43 +00:00
gerta
4176634d8d Added a comment 2021-03-21 11:56:27 +00:00