git-annex.git
5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 22:05:19 +0000 (22:05 +0000)]
Added a comment

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 22:00:08 +0000 (22:00 +0000)]
Added a comment

5 years agoAdded a comment
Lukey [Thu, 31 Dec 2020 21:46:33 +0000 (21:46 +0000)]
Added a comment

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 20:51:12 +0000 (20:51 +0000)]
Added a comment

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 20:34:55 +0000 (20:34 +0000)]
Added a comment

5 years agoremoved
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 19:41:18 +0000 (19:41 +0000)]
removed

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 19:40:22 +0000 (19:40 +0000)]
Added a comment

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 19:40:01 +0000 (19:40 +0000)]
Added a comment

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 19:34:56 +0000 (19:34 +0000)]
Added a comment

5 years agoAdded a comment
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 18:55:30 +0000 (18:55 +0000)]
Added a comment

5 years ago(no commit message)
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 18:51:50 +0000 (18:51 +0000)]

5 years agoAdded a comment
Lukey [Thu, 31 Dec 2020 17:32:47 +0000 (17:32 +0000)]
Added a comment

5 years ago(no commit message)
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Thu, 31 Dec 2020 16:58:50 +0000 (16:58 +0000)]

5 years agoAdded a comment
Lukey [Tue, 29 Dec 2020 23:30:47 +0000 (23:30 +0000)]
Added a comment

5 years agoadd news item for git-annex 8.20201129
Joey Hess [Tue, 29 Dec 2020 17:52:34 +0000 (13:52 -0400)]
add news item for git-annex 8.20201129

5 years agoreleasing package git-annex version 8.20201129
Joey Hess [Tue, 29 Dec 2020 17:51:40 +0000 (13:51 -0400)]
releasing package git-annex version 8.20201129

5 years agoupdate to lts-16.27
Joey Hess [Tue, 29 Dec 2020 17:51:08 +0000 (13:51 -0400)]
update to lts-16.27

5 years agoupdate
Joey Hess [Tue, 29 Dec 2020 16:52:55 +0000 (12:52 -0400)]
update

5 years agoclose
Joey Hess [Tue, 29 Dec 2020 16:48:21 +0000 (12:48 -0400)]
close

5 years agoimprove tip
Joey Hess [Mon, 28 Dec 2020 23:38:12 +0000 (19:38 -0400)]
improve tip

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 28 Dec 2020 21:05:00 +0000 (17:05 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoupdate
Joey Hess [Mon, 28 Dec 2020 21:04:41 +0000 (17:04 -0400)]
update

5 years agotip for probably best use case for borg with git-annex
Joey Hess [Mon, 28 Dec 2020 20:55:04 +0000 (16:55 -0400)]
tip for probably best use case for borg with git-annex

5 years agodon't support dropping from thirdPartyPopulated for now
Joey Hess [Mon, 28 Dec 2020 20:48:38 +0000 (16:48 -0400)]
don't support dropping from thirdPartyPopulated for now

This code I'm reverting works. But it has a problem: The export db and
log and the ContentIdentifier db and log still list the content as being
stored in the remote. So when I ran borg create again and stored the
content in borg again in a new archive, git-annex sync noticed that, but
since it didn't update the tree for the old archives, it then thought
the content that had been removed from them was still in them, and so
git-annex get failed in an ugly way:

Include pattern 'tmp/x/.git/annex/objects/pX/ZJ/SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' never matched.
[2020-12-28 16:40:44.878952393] process [933616] done ExitFailure 1

  user error (borg ["extract","/tmp/b::abs4","tmp/x/.git/annex/objects/pX/ZJ/SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"] exited 1)

It does not seem worth it to update the git tree for the export when dropping
content, that would make drop of many files very expensive in git tree objects
created. So, let's not support this I suppose..

5 years agosupport removing objects from borg
Joey Hess [Mon, 28 Dec 2020 20:36:52 +0000 (16:36 -0400)]
support removing objects from borg

5 years agosupport removal from thirdPartyPopulated
Joey Hess [Mon, 28 Dec 2020 20:36:26 +0000 (16:36 -0400)]
support removal from thirdPartyPopulated

also some other fixes to thirdPartyPopulated

5 years agoborg appendonly config
Joey Hess [Mon, 28 Dec 2020 20:23:38 +0000 (16:23 -0400)]
borg appendonly config

5 years agorevert recent lockContent change
Joey Hess [Mon, 28 Dec 2020 20:05:14 +0000 (16:05 -0400)]
revert recent lockContent change

lockContent should only be done when it's versioned

5 years agoBug report: annex.adjustedbranchrefresh ignored
gb@4a49bb1afcf3d183bba8f07297b0395808768c6c [Mon, 28 Dec 2020 20:03:34 +0000 (20:03 +0000)]
Bug report: annex.adjustedbranchrefresh ignored

5 years agomove untrust forcing from Logs.Trust into Remote
Joey Hess [Mon, 28 Dec 2020 19:08:53 +0000 (15:08 -0400)]
move untrust forcing from Logs.Trust into Remote

No behavior changes here, but this is groundwork for letting remotes
such as borg vary untrust forcing depending on configuration.

5 years agosimplify
Joey Hess [Mon, 28 Dec 2020 18:57:23 +0000 (14:57 -0400)]
simplify

adjustExportImport' is never called with both isexport and isimport False.

5 years agosplit off versionedExport from appendonly
Joey Hess [Mon, 28 Dec 2020 18:37:15 +0000 (14:37 -0400)]
split off versionedExport from appendonly

S3 uses versionedExport, while GitLFS uses appendonly.

This is groundwork for later changes.

5 years ago(no commit message)
AlbertZeyer [Mon, 28 Dec 2020 16:31:09 +0000 (16:31 +0000)]

5 years ago(no commit message)
AlbertZeyer [Mon, 28 Dec 2020 16:02:24 +0000 (16:02 +0000)]

5 years ago(no commit message)
AlbertZeyer [Mon, 28 Dec 2020 15:50:54 +0000 (15:50 +0000)]

5 years ago(no commit message)
AlbertZeyer [Mon, 28 Dec 2020 15:46:52 +0000 (15:46 +0000)]

5 years ago(no commit message)
AlbertZeyer [Mon, 28 Dec 2020 15:33:08 +0000 (15:33 +0000)]

5 years agoswitch to createrepo_c
Joey Hess [Fri, 25 Dec 2020 20:32:03 +0000 (16:32 -0400)]
switch to createrepo_c

createrepo used python2 and got removed from debian

5 years agoremoved
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Wed, 23 Dec 2020 19:57:49 +0000 (19:57 +0000)]
removed

5 years agogenerate more compact git-annex branch for imports
Joey Hess [Wed, 23 Dec 2020 19:21:33 +0000 (15:21 -0400)]
generate more compact git-annex branch for imports

Especially from borg, where the content identifier logs
all end up being the same identical file!

But also, for other imports, the location tracking logs can,
in some cases, be identical files.

Bonus optimisation: Avoid looking up (and parsing when set)
GIT_ANNEX_VECTOR_CLOCK env var every time a log is written to.
Although the lookup does happen at startup even when no
log will be written now.

5 years agoavoid grafting in an imported tree when it's not changed
Joey Hess [Wed, 23 Dec 2020 18:31:14 +0000 (14:31 -0400)]
avoid grafting in an imported tree when it's not changed

This just avoids some churn in the git-annex branch.

5 years agograft in imported tree to avoid gc
Joey Hess [Wed, 23 Dec 2020 18:27:38 +0000 (14:27 -0400)]
graft in imported tree to avoid gc

Fix a bug that could prevent getting files from an importtree=yes remote,
because the imported tree was allowed to be garbage collected.

5 years agoremove ContentIndentifiersCidRemoteIndex uniqueness constraint
Joey Hess [Wed, 23 Dec 2020 17:58:01 +0000 (13:58 -0400)]
remove ContentIndentifiersCidRemoteIndex uniqueness constraint

For reasons explained in the bug report.

Implemented using a persistent migration, which works fine. It may add a
little startup overhead when a remote is enabled that uses this, but
probably un-noticable.

On the next major version, it would be fine to delete this database,
and regenerate it from the git-annex branch information. Then this
change could be reverted.

Did nothing about adding back the data that got dropped from the db
due to the bug. Only the borg special remote was probably affected,
and it's not been released yet. rm -rf .git/annex/cidsdb does work.

5 years agobug
Joey Hess [Wed, 23 Dec 2020 17:41:02 +0000 (13:41 -0400)]
bug

5 years agoavoid using export method when the remote only supports import
Joey Hess [Wed, 23 Dec 2020 17:17:46 +0000 (13:17 -0400)]
avoid using export method when the remote only supports import

5 years agoborg: add subdir= config
Joey Hess [Wed, 23 Dec 2020 17:02:13 +0000 (13:02 -0400)]
borg: add subdir= config

Note that, after changing it with enableremote, syncing won't rescan
known archives in the borg repo using the changed config. Probably not a
problem?

Also used File in some places where filenames that could theoretically
start with - are passed to borg, to avoid it confusing them with
options.

5 years agomake sync --content get from third-party populated remotes like borg
Joey Hess [Wed, 23 Dec 2020 16:10:39 +0000 (12:10 -0400)]
make sync --content get from third-party populated remotes like borg

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 22 Dec 2020 20:55:15 +0000 (16:55 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agodevblog
Joey Hess [Tue, 22 Dec 2020 20:53:40 +0000 (16:53 -0400)]
devblog

5 years agotodo
Joey Hess [Tue, 22 Dec 2020 20:37:19 +0000 (16:37 -0400)]
todo

5 years agomove unimplemented option to todo
Joey Hess [Tue, 22 Dec 2020 20:28:13 +0000 (16:28 -0400)]
move unimplemented option to todo

5 years agomerged borg
Joey Hess [Tue, 22 Dec 2020 20:22:44 +0000 (16:22 -0400)]
merged borg

Still a couple related todos, but it's basically usable now.

5 years agoMerge branch 'borg'
Joey Hess [Tue, 22 Dec 2020 20:19:32 +0000 (16:19 -0400)]
Merge branch 'borg'

5 years agotodo
Joey Hess [Tue, 22 Dec 2020 20:19:02 +0000 (16:19 -0400)]
todo

5 years agoimplement retrieveExportWithContentIdentifier
Joey Hess [Tue, 22 Dec 2020 20:07:53 +0000 (16:07 -0400)]
implement retrieveExportWithContentIdentifier

Moved out an XXX to a todo

This seems about ready to merge..

5 years agoborg can prompt
Joey Hess [Tue, 22 Dec 2020 19:48:17 +0000 (15:48 -0400)]
borg can prompt

5 years agonotice when an archive that was seen before gets deleted
Joey Hess [Tue, 22 Dec 2020 19:45:06 +0000 (15:45 -0400)]
notice when an archive that was seen before gets deleted

5 years agoimplemented checkPresentExportWithContentIdentifier
Joey Hess [Tue, 22 Dec 2020 19:34:41 +0000 (15:34 -0400)]
implemented checkPresentExportWithContentIdentifier

5 years agotodo
Joey Hess [Tue, 22 Dec 2020 19:01:07 +0000 (15:01 -0400)]
todo

5 years agotodo
Joey Hess [Tue, 22 Dec 2020 19:00:11 +0000 (15:00 -0400)]
todo

5 years agooptimisation for borg
Joey Hess [Tue, 22 Dec 2020 18:35:02 +0000 (14:35 -0400)]
optimisation for borg

Skip needing to list importable contents when unchanged since last time.

5 years agoconvert listImportableContents to throwing exceptions
Joey Hess [Tue, 22 Dec 2020 18:20:11 +0000 (14:20 -0400)]
convert listImportableContents to throwing exceptions

5 years agoavoid borg list of archives that have been listed before
Joey Hess [Tue, 22 Dec 2020 18:06:40 +0000 (14:06 -0400)]
avoid borg list of archives that have been listed before

This makes sync a lot faster in the common case where there's no new
backup.

There's still room for it to be faster. Currently the old imported tree
has to be traversed, to generate the ImportableContents. Which then
gets turned around to generate the new imported tree, which is
identical. So, it would be possible to just return a "no new imports",
or an ImportableContents that has a way to graft in a tree. The latter
is probably too far to go to optimise this, unless other things need it.
The former might be worth it, but it's already pretty fast, since git
ls-tree is pretty fast.

5 years agoimprove storage of redundant ContentIdentifiers
Joey Hess [Tue, 22 Dec 2020 16:00:11 +0000 (12:00 -0400)]
improve storage of redundant ContentIdentifiers

When a ContentIdentifier is already recorded, don't add it to the log
again, and avoid updating the log.

5 years agoinclude borg archive name in tree, use empty ContentIdentifier
Joey Hess [Tue, 22 Dec 2020 15:53:00 +0000 (11:53 -0400)]
include borg archive name in tree, use empty ContentIdentifier

It's unusual to use a ContentIdentifier that is not semi-unique
for different contents. Note that in importKeys, it checks if a content
identifier is one that's known before, to avoid downloading the same
content twice. But that's done in a code path not used for borg repos,
because they are thirdpartypopulated.

5 years agonotes on ImportableContents history not being used for retrieval
Joey Hess [Tue, 22 Dec 2020 15:23:00 +0000 (11:23 -0400)]
notes on ImportableContents history not being used for retrieval

5 years ago(no commit message)
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234 [Mon, 21 Dec 2020 20:59:21 +0000 (20:59 +0000)]

5 years agoimport from borg is basically working
Joey Hess [Mon, 21 Dec 2020 20:20:58 +0000 (16:20 -0400)]
import from borg is basically working

Still some issues to deal with, see TODO and XXX.

Here's what gets logged, for each key:

cid log:
1608582045.832799227s 6720ebad-b20e-4460-a8f2-2477361aea75 !MjAyMC0xMi0yMVQxMTozMzoxNw==:!MjAyMC0xMi0yMVQxMzowNzoyNg==

The "!Mj" are base64 encoded borg archive names, since mine were
dates and contained some characters not allowed in cid logs unescaped.
There were archives that each contained the key. This list will grow as
more borg backups are done and learned about.

tree generated:
120000 blob 5ef6a4615c084819b44cd4e3a31657664ddf643b x/dotgit/annex/objects/06/mv/SHA256E-s30--a5d8532e64ec28f5491e25e7a6c1cb68f80507c1be6c1b35f8ec53d25413e5da/SHA256E-s30--a5d8532e64ec28f5491e25e7a6c1cb68f80507c1be6c1b35f8ec53d25413e5da
120000 blob 063a139d3021c8db60f5c576d29fada2b824d91c x/dotgit/annex/objects/72/PP/SHA256E-s30--e80b09a854b4e4d99a76caaa6983b34272480e0b4fdb95d04234a54b4849b893/SHA256E-s30--e80b09a854b4e4d99a76caaa6983b34272480e0b4fdb95d04234a54b4849b893
120000 blob b53b54916fd6abf21fedf796deca08d5ac7a75af x/dotgit/annex/objects/Ww/pk/SHA256E-s30--6aac072a8ebf02a5807c4f15e77ed585a6c87b3b333ba625a3c8d6b4dc50a9f2/SHA256E-s30--6aac072a8ebf02a5807c4f15e77ed585a6c87b3b333ba625a3c8d6b4dc50a9f2

This commit was sponsored by Denis Dzyubenko on Patreon.

5 years agoimprove thirdpartypopulated support
Joey Hess [Mon, 21 Dec 2020 20:03:27 +0000 (16:03 -0400)]
improve thirdpartypopulated support

May actually work now.

Note that, importKey now has to add the size to the key if it's supposed
to have size. Remote.Directory relied on the importer adding the size,
which is no longer done, so it was changed; it was the only one.
This way, importKey does not need to behave differently between regular
and thirdpartypopulated imports.

5 years agoAdded a comment: well done!
jkniiv [Mon, 21 Dec 2020 18:14:26 +0000 (18:14 +0000)]
Added a comment: well done!

5 years agosupport thirdPartyPopulated
Joey Hess [Mon, 21 Dec 2020 17:46:04 +0000 (13:46 -0400)]
support thirdPartyPopulated

These don't have importTree in their config, because they don't support
tree import, but they do still support import, and do not support export
or key/value modification.

5 years agofix logic error in thirdPartyPopulated handling
Joey Hess [Mon, 21 Dec 2020 17:24:07 +0000 (13:24 -0400)]
fix logic error in thirdPartyPopulated handling

5 years agoAdded a comment: "mirror" workflow: usage of "wanted" expression is inconsistent...
amerlyq+annex@12121d70a602f094228689a0a24d348d478a8af1 [Mon, 21 Dec 2020 07:34:28 +0000 (07:34 +0000)]
Added a comment: "mirror" workflow: usage of "wanted" expression is inconsistent with regular annex remote

5 years agoAdded a comment: adb special remote
amerlyq+annex@12121d70a602f094228689a0a24d348d478a8af1 [Mon, 21 Dec 2020 06:36:33 +0000 (06:36 +0000)]
Added a comment: adb special remote

5 years agobug report
Joey Hess [Sun, 20 Dec 2020 20:19:25 +0000 (16:19 -0400)]
bug report

5 years ago(no commit message)
dzhu [Sat, 19 Dec 2020 23:05:32 +0000 (23:05 +0000)]

5 years agorefactor
Joey Hess [Fri, 18 Dec 2020 21:04:46 +0000 (17:04 -0400)]
refactor

That code was not borg specific, and I can see making more remotes for
other backup software.

5 years agostarted borg special remote
Joey Hess [Fri, 18 Dec 2020 20:52:49 +0000 (16:52 -0400)]
started borg special remote

Still need to implement 3 methods, but importKeyM looks like it will
work well to find annex object files.

5 years agoMerge branch 'master' into borg
Joey Hess [Fri, 18 Dec 2020 20:05:09 +0000 (16:05 -0400)]
Merge branch 'master' into borg

5 years agobuild fix
Joey Hess [Fri, 18 Dec 2020 20:04:56 +0000 (16:04 -0400)]
build fix

5 years agostart borg special remote
Joey Hess [Fri, 18 Dec 2020 20:03:51 +0000 (16:03 -0400)]
start borg special remote

Compiles, but unusable so far.

5 years agoMerge branch 'master' into borg
Joey Hess [Fri, 18 Dec 2020 19:27:24 +0000 (15:27 -0400)]
Merge branch 'master' into borg

5 years agoadd thirdPartyPopulated interface
Joey Hess [Fri, 18 Dec 2020 18:52:57 +0000 (14:52 -0400)]
add thirdPartyPopulated interface

This is to support, eg a borg repo as a special remote, which is
populated not by running git-annex commands, but by using borg. Then
git-annex sync lists the content of the remote, learns which files are
annex objects, and treats those as present in the remote.

So, most of the import machinery is reused, to a new purpose. While
normally importtree maintains a remote tracking branch, this does not,
because the files stored in the remote are annex object files, not
user-visible filenames. But, internally, a git tree is still generated,
of the files on the remote that are annex objects. This tree is used
by retrieveExportWithContentIdentifier, etc. As with other import/export
remotes, that  the tree is recorded in the export log, and gets grafted
into the git-annex branch.

importKey changed to be able to return Nothing, to indicate when an
ImportLocation is not an annex object and so should be skipped from
being included in the tree.

It did not seem to make sense to have git-annex import do this, since
from the user's perspective, it's not like other imports. So only
git-annex sync does it.

Note that, git-annex sync does not yet download objects from such
remotes that are preferred content. importKeys is run with
content downloading disabled, to avoid getting the content of all
objects. Perhaps what's needed is for seekSyncContent to be run with these
remotes, but I don't know if it will just work (in particular, it needs
to avoid trying to transfer objects to them), so I skipped that for now.

(Untested and unused as of yet.)

This commit was sponsored by Jochen Bartl on Patreon.

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 18 Dec 2020 19:14:10 +0000 (15:14 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agofix handling of importtree-only remotes
Joey Hess [Fri, 18 Dec 2020 19:11:53 +0000 (15:11 -0400)]
fix handling of importtree-only remotes

Don't want to try to use these remotes as key/value remotes, which will
surely fail. It only recently became possible for importtree to be set
w/o exporttree, so before this code was ok.

(cherry picked from commit 97599cb0f7f4115aa5a3e81a91ee3d1d6c52dc84)

5 years agoupdate
Joey Hess [Fri, 18 Dec 2020 15:06:23 +0000 (11:06 -0400)]
update

5 years agochange info from export=yes to exporttree=yes and same for import
Joey Hess [Thu, 17 Dec 2020 21:06:50 +0000 (17:06 -0400)]
change info from export=yes to exporttree=yes and same for import

for consistency

5 years agoAdded a comment: encryption=onlycreds
Ilya_Shlyakhter [Thu, 17 Dec 2020 21:01:33 +0000 (21:01 +0000)]
Added a comment: encryption=onlycreds

5 years agoMerge branch 'master' into borg
Joey Hess [Thu, 17 Dec 2020 20:50:25 +0000 (16:50 -0400)]
Merge branch 'master' into borg

5 years agoavoid redundant set of a S3 verison ID that is already recorded
Joey Hess [Thu, 17 Dec 2020 20:49:17 +0000 (16:49 -0400)]
avoid redundant set of a S3 verison ID that is already recorded

I think this could cause unnecessary changes to the git-annex branch,
and retrieveExportWithContentIdentifier is now also used for getting
content from importtree=yes remotes, so it would happen more frequently
so let's avoid.

5 years agoMerge branch 'master' into borg
Joey Hess [Thu, 17 Dec 2020 20:36:15 +0000 (16:36 -0400)]
Merge branch 'master' into borg

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 17 Dec 2020 20:35:10 +0000 (16:35 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agotodo
Joey Hess [Thu, 17 Dec 2020 20:29:51 +0000 (16:29 -0400)]
todo

5 years agoupdate warnExportImportConflict for import-only remotes
Joey Hess [Thu, 17 Dec 2020 20:25:46 +0000 (16:25 -0400)]
update warnExportImportConflict for import-only remotes

5 years agofix call to warnExportImportConflict
Joey Hess [Thu, 17 Dec 2020 20:25:02 +0000 (16:25 -0400)]
fix call to warnExportImportConflict

That needs a Remote that has the right export/import set up, not the input
Remote, which does not yet.

5 years agoadd missing space
Joey Hess [Thu, 17 Dec 2020 19:58:14 +0000 (15:58 -0400)]
add missing space

5 years agoimport remotes use ContentIdentifier for getting and checking content
Joey Hess [Thu, 17 Dec 2020 19:52:12 +0000 (15:52 -0400)]
import remotes use ContentIdentifier for getting and checking content

This is better than using the equivilant actions for export remotes,
especially for getting content, since the ContentIdentifier checking
means we can be sure (enough) that the content is valid to not force
verification of content. Which allows getting keys of types that cannot
be verified.

Also, reorganized the internals of adjustExportImport which was becoming
very hard to follow. Now it's clear what each method does in each case.

5 years agoforce verification after getting file from export remote
Joey Hess [Thu, 17 Dec 2020 19:31:22 +0000 (15:31 -0400)]
force verification after getting file from export remote

This way, if annex.verify is disabled, it's still checked, since this is
not a key/value store, it has to be checked.

5 years agoAdded a comment
kyle [Thu, 17 Dec 2020 19:05:13 +0000 (19:05 +0000)]
Added a comment

5 years agorefactor common code
Joey Hess [Thu, 17 Dec 2020 18:01:42 +0000 (14:01 -0400)]
refactor common code