Commit graph

29603 commits

Author SHA1 Message Date
Ilya_Shlyakhter
eccdf47e6f Added a comment 2021-03-07 13:38:56 +00:00
tomdhunt
139fac8c49 Added a comment: Any way to delete a remote? 2021-03-07 01:53:25 +00:00
qiang.fang@ddaed0de00c2925f8036e6c61ce6e12654263ada
7ce80263ef Added a comment 2021-03-06 00:03:52 +00:00
Joey Hess
e8065ee99d
close todo 2021-03-05 14:46:09 -04:00
Joey Hess
fc61915230
use GIT keys for export of non-annexed files
This solves the problem that import of such files gets confused and
converts them back to annexed files.

The import code already used GIT keys internally when it determined a
file should not be annexed. So now when it sees a GIT key that export
used, it already does the right thing.

This also means that even older version of git-annex can import and will
do the right thing, once a fixed version has exported. Still, there may
be other complications around upgrades; still need to think it all
through.

Moved gitShaKey and keyGitSha from Key to Annex.Export since they're
only used for export/import.

Documented GIT keys in backends, since they do appear in the git-annex
branch now.

This commit was sponsored by Graham Spencer on Patreon.
2021-03-05 14:12:11 -04:00
Joey Hess
deac6f12b5
forgot to add this comment earlier 2021-03-05 12:40:39 -04:00
Joey Hess
8d983b6432
comment 2021-03-05 12:39:57 -04:00
Joey Hess
11048bee03
comment 2021-03-05 12:20:54 -04:00
branchable@bafd175a4b99afd6ed72501042e364ebd3e0c45e
346984aa42 2021-03-05 14:07:09 +00:00
gerta
a36b8def30 2021-03-03 13:12:29 +00:00
vrinek@ebb1af586fdc413fc8081c073e5ae591a619cbe2
16b3e5754d Fix borg create example (according to https://borgbackup.readthedocs.io/en/stable/usage/create.html#examples) 2021-03-02 21:58:31 +00:00
kyle
324f2c06c5 Added a comment: thanks 2021-03-02 20:51:53 +00:00
Joey Hess
1e46158c44
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-02 13:48:02 -04:00
Joey Hess
a14001785e
fix --branch combined with --unlocked or --locked
Since it's using git ls-tree anyway, can just look at the file modes to see
if they're unlocked or are symlinks.
2021-03-02 13:47:27 -04:00
gerta
3d48e96972 2021-03-02 08:04:22 +00:00
Joey Hess
25e4ab7e81
Prevent combinations of options such as --all with --include
Previously such nonsensical combinations always treated the matching option
as if it didn't match.

For now, made find --branch refuse matching options that need a
filename, because one is not provided to them in a way they'll use.
There's an open bug report to support it, but making it error out is
better than the old behavior of not finding what it was asked to.

Also, made --mimetype combined with eg --all work, by looking at the
object file when operating on keys.
2021-03-01 16:25:23 -04:00
Joey Hess
7a089f05b2
move comment to correct bug 2021-03-01 15:24:21 -04:00
Joey Hess
eb594c710e
unregisterurl: New command
Implemented by generalizing registerurl. Without the implicit batch mode
of registerurl since that is only a backwards compatability thing
(see commit 1d1054faa6).
2021-03-01 14:28:24 -04:00
Joey Hess
06665d733a
comment 2021-03-01 13:52:19 -04:00
Joey Hess
0482424fad
analysis 2021-03-01 13:36:18 -04:00
Joey Hess
db2e0485ae
Merge branch 'master' of ssh://git-annex.branchable.com 2021-03-01 13:10:50 -04:00
Joey Hess
a217f92dc1
fix problem with example 2021-03-01 13:09:22 -04:00
Ilya_Shlyakhter
cd682cf227 Added a comment: issue of pushing refs to annexed files but not info on how to fetch them 2021-03-01 16:46:57 +00:00
Ilya_Shlyakhter
324838324b Added a comment: issue with example 2021-02-28 23:18:29 +00:00
spwhitton
30299f52b1 annex-review-unused -> git annex reviewunused 2021-02-28 20:20:03 +00:00
gerta
12169b7fda removed 2021-02-28 13:51:07 +00:00
gerta
27531ce81a 2021-02-27 06:58:15 +00:00
gerta
0d8b275710 2021-02-27 05:52:40 +00:00
Joey Hess
9835fa5d01
todo 2021-02-26 12:12:41 -04:00
arelius@a7e47ae13cb3452464261e3a99bfe6d2c25895fd
c802c0685e Added a comment 2021-02-25 21:46:22 +00:00
kyle
4c48791d41 Added a comment 2021-02-25 21:25:52 +00:00
kyle
9d96f41185 Added a comment: setpresentkey 0 2021-02-25 21:18:50 +00:00
yarikoptic
e5a24a502c or just a rmurl --key? 2021-02-25 20:37:25 +00:00
yarikoptic
4c1ffaac56 TODO for unregisterurl 2021-02-25 20:27:46 +00:00
kyle
6a98e69f2f 2021-02-24 22:37:06 +00:00
Joey Hess
61c3797dd5
comment and close not a bug 2021-02-24 13:31:19 -04:00
Joey Hess
a942ed4bb9
Windows: Correct the path to the html help file for 64 bit build. 2021-02-24 13:19:42 -04:00
Joey Hess
0c90ccc40c
retitle 2021-02-24 13:16:03 -04:00
Joey Hess
0f09185683
comment 2021-02-24 13:15:58 -04:00
m15
c98b3cde6c 2021-02-24 10:44:02 +00:00
arelius@a7e47ae13cb3452464261e3a99bfe6d2c25895fd
7bf0f95f38 2021-02-24 04:52:39 +00:00
arelius@a7e47ae13cb3452464261e3a99bfe6d2c25895fd
08795b0263 Added a comment 2021-02-24 04:49:34 +00:00
arelius@a7e47ae13cb3452464261e3a99bfe6d2c25895fd
def4ac2f90 Added a comment 2021-02-24 04:32:08 +00:00
arelius@a7e47ae13cb3452464261e3a99bfe6d2c25895fd
c3ab606dd6 2021-02-24 04:30:59 +00:00
Joey Hess
33af7d1932
add news item for git-annex 8.20210223 2021-02-23 14:41:46 -04:00
Atemu
5e5829a8d4 2021-02-23 15:16:50 +00:00
Joey Hess
530e96b80e
fix unannex data overwrite bug
unannex, uninit: When an annexed file is modified, don't overwrite the
modified version with an older version from the annex

This commit was sponsored by Mark Reidenbach on Patreon.
2021-02-22 13:35:00 -04:00
Joey Hess
224bc7579b
bug report 2021-02-22 13:03:22 -04:00
Joey Hess
62d5a73bdd
unannex, uninit: Avoid running git rm once per annexed file, for a large speedup. 2021-02-22 12:56:11 -04:00
Joey Hess
dd97017246
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-22 12:40:06 -04:00
Joey Hess
3ba349eec3
comment 2021-02-22 12:38:34 -04:00
Joey Hess
17a08f38e2
comment 2021-02-22 12:31:55 -04:00
EvanDeaubl
abb70e83dd Added a comment: One possible workaround 2021-02-22 16:23:41 +00:00
zsolt1
4381ad636e Added a comment 2021-02-21 18:11:36 +00:00
git-annex.branchable.com@d12f3f46c9222459d17f96bc7be04f7cd03a6732
1e4fac1046 Added a comment 2021-02-21 15:50:49 +00:00
Lukey
4f63f0d162 Added a comment 2021-02-20 21:35:10 +00:00
zsolt1
0f68eed33c Added a comment: reproduce 2021-02-20 19:06:45 +00:00
git-annex.branchable.com@d12f3f46c9222459d17f96bc7be04f7cd03a6732
26c19de0d9 Add workaround 2021-02-20 19:05:42 +00:00
git-annex.branchable.com@d12f3f46c9222459d17f96bc7be04f7cd03a6732
c37bfccb63 Initial report 2021-02-20 19:04:18 +00:00
zsolt1
c71f005889 2021-02-20 19:02:26 +00:00
jwrauch
9dcb11fc23 Added a comment 2021-02-19 18:58:17 +00:00
yarikoptic
a876884987 initial observation about slow uninit 2021-02-19 17:08:39 +00:00
jwrauch
904f25c559 Added a comment 2021-02-19 16:19:53 +00:00
jwrauch
79fb2f499d Added a comment 2021-02-19 16:17:34 +00:00
jwrauch
dab459787f Added a comment 2021-02-19 16:10:03 +00:00
Lukey
fbbd1d7cf1 Added a comment 2021-02-19 15:43:48 +00:00
jwrauch
5e2f2f7d9b 2021-02-19 14:14:13 +00:00
Lukey
4fc0c58e24 Added a comment 2021-02-19 07:28:15 +00:00
Lukey
6708bff1a9 Added a comment 2021-02-19 07:16:27 +00:00
jodumont
a16d0a5f90 Added a comment: how to rename/remove the [here] ?? 2021-02-19 04:56:47 +00:00
jodumont
b0684e7567 Added a comment: Explanation for a noGUI usage 2021-02-19 04:39:35 +00:00
georg.schnabel@bd6be2144f897f5caa0028e0dd1e0a65634add81
1845c4e1e3 Added a comment: import from special directory remote fails due to running out of memory 2021-02-17 14:29:53 +00:00
georg.schnabel@bd6be2144f897f5caa0028e0dd1e0a65634add81
8c2629cfd1 2021-02-17 13:58:00 +00:00
Joey Hess
48310f2d55
windows build fix from jwodder 2021-02-15 13:35:01 -04:00
Joey Hess
0cb2b1b126
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-15 13:31:55 -04:00
Joey Hess
664c15f20a
comment 2021-02-15 13:31:13 -04:00
falsifian
4407ade4c3 Added a comment 2021-02-12 03:52:39 +00:00
jwodder
80ec124fb0 2021-02-11 16:06:00 +00:00
jwodder
69f2fb7a23 2021-02-11 16:04:20 +00:00
Joey Hess
cb7bb3e4b9
comment 2021-02-10 21:49:25 -04:00
Joey Hess
e3832af5d5
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-10 16:40:16 -04:00
Joey Hess
f44d4704c6
incremental checksum for local remotes
This benchmarks only slightly faster than the old git-annex. Eg, for a 1
gb file, 14.56s vs 15.57s. (On a ram disk; there would certianly be
more of an effect if the file was written to disk and didn't stay in
cache.)

Commenting out the updateIncremental calls make the same run in 6.31s.
May be that overhead in the implementation, other than the actual
checksumming, is slowing it down. Eg, MVar access.

(I also tried using 10x larger chunks, which did not change the speed.)
2021-02-10 16:05:24 -04:00
Joey Hess
6487a75d33
comment 2021-02-10 13:15:00 -04:00
yarikoptic
f5c3eb86f9 Added a comment 2021-02-09 22:48:07 +00:00
Joey Hess
86814582e8
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-09 17:06:32 -04:00
Joey Hess
d8598dc3a0
comment 2021-02-09 17:05:56 -04:00
Joey Hess
fd51b0cd83
comment 2021-02-09 13:42:49 -04:00
nguenthe@0f416ab0ba07a395eb8a0c85732e0105e4970e10
c208f8c3d4 Added a comment 2021-02-09 17:09:17 +00:00
nguenthe@0f416ab0ba07a395eb8a0c85732e0105e4970e10
ed28f4a744 Added a comment 2021-02-09 17:06:25 +00:00
Joey Hess
cbe84b62b9
close 2021-02-08 18:17:59 -04:00
Joey Hess
f36a0c1b13
deal with cabal unpack not preserving execute bit 2021-02-08 14:32:24 -04:00
Joey Hess
8f3554a7a8
close as dup 2021-02-08 14:19:43 -04:00
Joey Hess
6bc24b1bce
2021 2021-02-08 13:44:58 -04:00
Joey Hess
3a66cd715f
avoid making absolute git remote path relative
When a git remote is configured with an absolute path, use that path,
rather than making it relative. If it's configured with a relative path,
use that.

Git.Construct.fromPath changed to preserve the path as-is,
rather than making it absolute. And Annex.new changed to not
convert the path to relative. Instead, Git.CurrentRepo.get
generates a relative path.

A few things that used fromAbsPath unncessarily were changed in passing to
use fromPath instead. I'm seeing fromAbsPath as a security check,
while before it was being used in some cases when the path was
known absolute already. It may be that fromAbsPath is not really needed,
but only git-annex-shell uses it now, and I'm not 100% sure that there's
not some input that would cause a relative path to be used, opening a
security hole, without the security check. So left it as-is.

Test suite passes and strace shows the configured remote url is used
unchanged in the path into it. I can't be 100% sure there's not some code
somewhere that takes an absolute path to the repo and converts it to
relative and uses it, but it seems pretty unlikely that the code paths used
for a git remote would call such code. One place I know of is gitAnnexLink,
but I'm pretty sure that git remotes never deal with annex symlinks. If
that did get called, it generates a path relative to cwd, which would have
been wrong before this change as well, when operating on a remote.
2021-02-08 13:18:01 -04:00
Joey Hess
df26c9a492
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-08 11:39:36 -04:00
yarikoptic
2038d839cc Added a comment: why relative path? 2021-02-08 14:47:43 +00:00
yarikoptic
30728860ac removed 2021-02-08 14:46:11 +00:00
yarikoptic
6834093433 Added a comment 2021-02-08 14:44:39 +00:00
Joey Hess
8df2215891
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-05 15:34:04 -04:00
Joey Hess
724c97952b
update 2021-02-05 10:22:42 -04:00
falsifian
be5a0e4b8f 2021-02-05 05:11:24 +00:00
Joey Hess
3d3b55e7f2
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-03 15:57:46 -04:00
Joey Hess
dd39e9e255
suggest when user may want annex.stalldetection
When annex.stalldetection is not enabled, and a likely stall is detected,
display a suggestion to enable it.

Note that the progress meter display is not taken down when displaying
the message, so it will display like this:

	0%    8 B                 0 B/s
	  Transfer seems to have stalled. To handle stalling transfers, configure annex.stalldetection
	0%    10 B                0 B/s

Although of course if it's really stalled, it will never update
again after the message. Taking down the progress meter and starting
a new one doesn't seem too necessary given how unusual this is,
also this does help show the state it was at when it stalled.

Use of uninterruptibleCancel here is ok, the thread it's canceling
only does STM transactions and sleeps. The annex thread that gets
forked off is separate to avoid it being canceled, so that it
can be joined back at the end.

A module cycle required moving from dupState the precaching of the
remote list. Doing it at startConcurrency should cover all the cases
where the remote list is used in concurrent actions.

This commit was sponsored by Kevin Mueller on Patreon.
2021-02-03 15:57:19 -04:00
Joey Hess
135757d64a
automatic stall detection
annex.stalldetection can now be set to "true" to make git-annex do
automatic stall detection when it detects a remote is updating its transfer
progress consistently enough.

This commit was sponsored by Luke Shumaker on Patreon.
2021-02-03 13:33:57 -04:00
gueux
59fa8b7671 Added a comment 2021-02-03 17:20:24 +00:00
gueux
31f5482729 Added a comment 2021-02-03 17:06:24 +00:00
Joey Hess
904689f11b
Merge branch 'master' of ssh://git-annex.branchable.com 2021-02-02 19:39:24 -04:00
guardcat
ebb805b611 2021-02-02 21:04:21 +00:00
Joey Hess
aec2cf0abe
addon commands
Seems only fair, that, like git runs git-annex, git-annex runs
git-annex-foo.

Implementation relies on O.forwardOptions, so that any options are passed
through to the addon program. Note that this includes options before the
subcommand, eg: git-annex -cx=y foo

Unfortunately, git-annex eats the --help/-h options.
This is because it uses O.hsubparser, which injects that option into each
subcommand. Seems like this should be possible to avoid somehow, to let
commands display their own --help, instead of the dummy one git-annex
displays.

The two step searching mirrors how git works, it makes finding
git-annex-foo fast when "git annex foo" is run, but will also support fuzzy
matching, once findAllAddonCommands gets implemented.

This commit was sponsored by Dr. Land Raider on Patreon.
2021-02-02 16:32:49 -04:00
jrollins
627940cf7b Added a comment 2021-02-02 17:43:19 +00:00
Joey Hess
d0fe0c5e10
close old todo 2021-02-02 13:25:58 -04:00
Joey Hess
696ee5d464
close 2021-02-02 13:21:34 -04:00
Joey Hess
233b2ab133
reject 2021-02-02 13:19:28 -04:00
Joey Hess
80a16a9dc8
remove no longer relevant part 2021-02-02 13:15:32 -04:00
Joey Hess
811399c8a1
meant to close this earlier 2021-02-02 13:12:47 -04:00
Joey Hess
cdbf80d338
comment 2021-02-02 13:10:07 -04:00
Joey Hess
d2ff391919
fix syntax 2021-02-02 13:01:31 -04:00
Joey Hess
5cad76198a
close 2021-02-02 12:52:00 -04:00
Joey Hess
d631304237
remove priority tag (unused) 2021-02-02 12:42:20 -04:00
Joey Hess
ba0de2d26a
comment 2021-02-02 12:33:01 -04:00
Joey Hess
e8d31910d0
update tutorial to work with 6 year old version of git-annex-shell 2021-02-02 12:26:37 -04:00
jrollins
4e5a27841a Added a comment 2021-02-01 19:30:54 +00:00
jrollins
8de52b9f94 Added a comment 2021-02-01 19:07:29 +00:00
jrollins
85e9e67748 Added a comment 2021-02-01 19:04:42 +00:00
jrollins
f2b21baec4 Added a comment 2021-02-01 18:42:24 +00:00
gueux
c7096eb1ee Added a comment 2021-02-01 18:33:52 +00:00
jrollins
3aa72e95e3 Added a comment 2021-02-01 18:25:09 +00:00
gueux
657cc67385 Added a comment 2021-02-01 18:11:41 +00:00
jrollins
d1fe1bf908 Added a comment 2021-02-01 17:45:16 +00:00
Joey Hess
71f96a8d84
comment 2021-02-01 12:42:30 -04:00
Joey Hess
a6b0e8c7ea
comment 2021-02-01 12:40:30 -04:00
Joey Hess
ec035c2b40
comment 2021-02-01 12:27:24 -04:00
Joey Hess
f3b57baf61
comment 2021-02-01 12:24:48 -04:00
Joey Hess
895b02d8a3
comment 2021-02-01 12:16:26 -04:00
Joey Hess
7d0cbea564
response 2021-02-01 12:07:22 -04:00
Joey Hess
6c237fbeb2
remove spam 2021-02-01 12:01:33 -04:00
Joey Hess
58216ef39d
Include libkqueue.h file needed to build the assistant on BSDs
I suspect this is a bug in cabal sdist, because with
Includes: Utility/libkqueue.h
the file is not included, but putting it in extra-files does
get it into the tarball.
2021-02-01 12:00:56 -04:00
Joey Hess
41bf440729
Fix build on openbsd. Thanks, James Cook for the patch. 2021-02-01 11:56:17 -04:00
arnoldbarclay
35a5ee92e2 Added a comment: App Development 2021-02-01 07:57:04 +00:00
gitannex@5bd4fdc44060e9df930b142f801e3fc0d543c85d
131aeb53a3 2021-02-01 05:35:28 +00:00
jrollins
b25438a5ac Added a comment: problems with init after clone 2021-01-31 20:34:32 +00:00
jrollins
8a3ffbf831 removed 2021-01-31 20:32:11 +00:00
jrollins
e14eececd8 Added a comment: problems with annex init in cloned repo 2021-01-31 20:31:36 +00:00
jrollins
65b7c8cb09 Added a comment 2021-01-31 20:28:23 +00:00
jrollins
e5314ec9ee 2021-01-31 20:22:50 +00:00
jrollins
82e058ee24 2021-01-31 20:17:19 +00:00
jrollins
602c74ed0a 2021-01-31 20:12:07 +00:00
EvanDeaubl
87222b70a5 nimbus.io as a storage provider is gone 2021-01-31 18:30:21 +00:00
falsifian
7bf84e4963 Added a comment: tests mostly pass 2021-01-31 05:07:16 +00:00
falsifian
7cfa1e61bf 2021-01-31 04:56:16 +00:00