Joey Hess [Fri, 23 Apr 2021 18:21:57 +0000 (14:21 -0400)]
implement annex.privateremote and remote.name.private configs
The slightly unusual parsing in Types.GitConfig avoids the need to look
at the remote list to get configs of remotes. annexPrivateRepos combines
all the configs, and will only be calculated once, so it's nice and
fast.
privateUUIDsKnown and regardingPrivateUUID now need to read from the
annex mvar, so are not entirely free. But that overhead can be optimised
away, as seen in getJournalFileStale. The other call sites didn't seem
worth optimising to save a single MVar access. The feature should have
impreceptable speed overhead when not being used.
Joey Hess [Fri, 23 Apr 2021 17:28:23 +0000 (13:28 -0400)]
make remoteKeyToRemoteName safer
If it's passed a ConfigKey such as annex.version, avoid returning
an empty remote name and return Nothing instead. Also, foo.bar.baz is
not treated as a remote named "bar".
Joey Hess [Fri, 23 Apr 2021 17:26:10 +0000 (13:26 -0400)]
fix build after merge
Joey Hess [Fri, 23 Apr 2021 17:06:33 +0000 (13:06 -0400)]
Merge branch 'master' into hiddenannex
Joey Hess [Fri, 23 Apr 2021 16:37:28 +0000 (12:37 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 23 Apr 2021 16:36:56 +0000 (12:36 -0400)]
importfeed: fix bug while also speeding up 12x!
* Fix bug that could make git-annex importfeed not see recently recorded
state when configured with annex.alwayscommit=false.
* importfeed: Made "checking known urls" phase run 12 times faster.
The massive speedup is because it no longer queries for metadata
accompanying each url. Instead it processes the whole git-annex branch and
checks all metadata files for feed item ids, and uses any it finds.
This could result in a behavior change, in an unlikely situation: If a feed
id is recorded in a key's metadata, but the url gets removed, the old code
would not see that item id and would re-download it if it finds an url for
it in a feed, while the new code will see the item id. I don't think
the old behavior was intentional, and it may be that the new behavior is
better. Not gonna worry about this.
Joey Hess [Fri, 23 Apr 2021 15:44:10 +0000 (11:44 -0400)]
refactoring
fooness [Fri, 23 Apr 2021 15:39:28 +0000 (15:39 +0000)]
removed
Joey Hess [Fri, 23 Apr 2021 15:32:25 +0000 (11:32 -0400)]
convert withKnownUrls to use overBranchFileContents
This only partly fixes importfeed to see journalled files, since it
separately cats metadata directly from the branch. Held off on a
changelog for a bug fix until that's dealt with.
Joey Hess [Fri, 23 Apr 2021 05:01:29 +0000 (01:01 -0400)]
Revert "reorder another test"
This reverts commit
3e63f00f636eac897d58264733ec34d400598b19.
Joey Hess [Fri, 23 Apr 2021 04:38:18 +0000 (00:38 -0400)]
windows needs to die
Joey Hess [Fri, 23 Apr 2021 04:25:22 +0000 (00:25 -0400)]
close old bug
Joey Hess [Thu, 22 Apr 2021 23:15:43 +0000 (19:15 -0400)]
rename forum post that breaks windows checkout
at least sometimes, not on the autobuilder. I think git treats the ...
as a possible path traveral or something
Joey Hess [Thu, 22 Apr 2021 16:47:05 +0000 (12:47 -0400)]
update
Joey Hess [Thu, 22 Apr 2021 14:03:35 +0000 (10:03 -0400)]
reorder another test
continuing to try to narrow down cause of failure on windows
Joey Hess [Thu, 22 Apr 2021 13:40:25 +0000 (09:40 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Atemu [Thu, 22 Apr 2021 10:01:01 +0000 (10:01 +0000)]
Added a comment
Joey Hess [Thu, 22 Apr 2021 03:42:00 +0000 (23:42 -0400)]
update
pat [Wed, 21 Apr 2021 22:33:55 +0000 (22:33 +0000)]
Added a comment
Joey Hess [Wed, 21 Apr 2021 21:30:27 +0000 (17:30 -0400)]
comment
Joey Hess [Wed, 21 Apr 2021 21:19:25 +0000 (17:19 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 21 Apr 2021 21:18:47 +0000 (17:18 -0400)]
alternative
pat [Wed, 21 Apr 2021 21:04:27 +0000 (21:04 +0000)]
Joey Hess [Wed, 21 Apr 2021 21:01:03 +0000 (17:01 -0400)]
docs
Joey Hess [Wed, 21 Apr 2021 20:26:23 +0000 (16:26 -0400)]
got private repos really working
This new TODO will need private indexes to resolve; until then the
private journal has to be checked when private UUIDs are known.
Joey Hess [Wed, 21 Apr 2021 20:02:56 +0000 (16:02 -0400)]
optimisation
Avoid trying to read private journal files when no private uuids are
known.
Joey Hess [Wed, 21 Apr 2021 19:54:37 +0000 (15:54 -0400)]
adapt recent bug fixes to support private journal
At this point, private repos should mostly work, except for a few
commands that directly read from the git-annex branch and will not see
the private journal.
Private index not yet implemented.
Joey Hess [Wed, 21 Apr 2021 19:45:12 +0000 (15:45 -0400)]
Merge branch 'master' into hiddenannex
Joey Hess [Wed, 21 Apr 2021 19:40:32 +0000 (15:40 -0400)]
fix --all to include not yet committed files from the journal
Fix bug caused by recent optimisations that could make git-annex not see
recently recorded status information when configured with
annex.alwayscommit=false.
This does mean that --all can end up processing the same key more than once,
but before the optimisations that introduced this bug, it used to also behave
that way. So I didn't try to fix that; it's an edge case and anyway git-annex
behaves well when run on the same key repeatedly.
I am not too happy with the use of a MVar to buffer the list of files in the
journal. I guess it doesn't defeat lazy streaming of the list, if that
list is actually generated lazily, and anyway the size of the journal is
normally capped and small, so if configs are changed to make it huge and
this code path fire, git-annex using enough memory to buffer it all is not a
large problem.
Joey Hess [Wed, 21 Apr 2021 18:19:58 +0000 (14:19 -0400)]
refactoring
Joey Hess [Wed, 21 Apr 2021 18:02:15 +0000 (14:02 -0400)]
fix branch precacheing bug by checking journal
Fix bug caused by recent optimisations that could make git-annex not see
recently recorded status information when configured with
annex.alwayscommit=false.
When not using --all, precaching only gets triggered when the
command actually needs location logs, and so there's no speed hit there.
This is a minor speed hit for --all, because it precaches even when the
location log is not actually going to be used, and so checking the journal
is not necessary. It would have been possible to defer checking the journal
until the cache gets used. But that would complicate the usual Branch.get
code path with two different kinds of caches, and the speed hit is really
minimal. A better way to speed up --all, later, would be to avoid
precaching at all when the location log is not going to be used.
Joey Hess [Wed, 21 Apr 2021 17:46:39 +0000 (13:46 -0400)]
wip
Joey Hess [Wed, 21 Apr 2021 17:24:32 +0000 (13:24 -0400)]
bug report
Joey Hess [Wed, 21 Apr 2021 17:04:40 +0000 (13:04 -0400)]
Merge branch 'master' into hiddenannex
Joey Hess [Wed, 21 Apr 2021 17:02:47 +0000 (13:02 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 21 Apr 2021 17:01:41 +0000 (13:01 -0400)]
reorder tests debugging windows failure
This order will work just as well, so no need to revert this change
later.
Kyle Meyer [Wed, 21 Apr 2021 16:36:34 +0000 (12:36 -0400)]
doc/git-annex.mdwn: Fix quoting of annex.supportunlocked
kyle [Wed, 21 Apr 2021 16:34:50 +0000 (16:34 +0000)]
Added a comment: re: clarifying unlocked files
kyle [Wed, 21 Apr 2021 16:32:42 +0000 (16:32 +0000)]
Added a comment: re: Are my unlocked, annexed files still safe?
Joey Hess [Wed, 21 Apr 2021 16:18:04 +0000 (12:18 -0400)]
update
Joey Hess [Wed, 21 Apr 2021 16:15:57 +0000 (12:15 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 21 Apr 2021 16:15:42 +0000 (12:15 -0400)]
comment
Ilya_Shlyakhter [Wed, 21 Apr 2021 16:08:05 +0000 (16:08 +0000)]
Added a comment: clarifying unlocked files
pat [Wed, 21 Apr 2021 15:47:48 +0000 (15:47 +0000)]
Added a comment: Are my unlocked, annexed files still safe?
Ilya_Shlyakhter [Wed, 21 Apr 2021 15:37:38 +0000 (15:37 +0000)]
Added a comment: auto-expire temp repos
Joey Hess [Tue, 20 Apr 2021 19:18:56 +0000 (15:18 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 20 Apr 2021 19:18:18 +0000 (15:18 -0400)]
update
Joey Hess [Tue, 20 Apr 2021 18:32:41 +0000 (14:32 -0400)]
start implementing hidden git-annex repositories
This adds a separate journal, which does not currently get committed to
an index, but is planned to be committed to .git/annex/index-private.
Changes that are regarding a UUID that is private will get written to
this journal, and so will not be published into the git-annex branch.
All log writing should have been made to indicate the UUID it's
regarding, though I've not verified this yet.
Currently, no UUIDs are treated as private yet, a way to configure that
is needed.
The implementation is careful to not add any additional IO work when
privateUUIDsKnown is False. It will skip looking at the private journal
at all. So this should be free, or nearly so, unless the feature is
used. When it is used, all branch reads will be about twice as expensive.
It is very lucky -- or very prudent design -- that Annex.Branch.change
and maybeChange are the only ways to change a file on the branch,
and Annex.Branch.set is only internal use. That let Annex.Branch.get
always yield any private information that has been recorded, without
the risk that Annex.Branch.set might be called, with a non-private UUID,
and end up leaking the private information into the git-annex branch.
And, this relies on the way git-annex union merges the git-annex branch.
When reading a file, there can be a public and a private version, and
they are just concacenated together. That will be handled the same as if
there were two diverged git-annex branches that got union merged.
Atemu [Tue, 20 Apr 2021 18:30:39 +0000 (18:30 +0000)]
Added a comment
Atemu [Tue, 20 Apr 2021 18:05:27 +0000 (18:05 +0000)]
Added a comment
Joey Hess [Tue, 20 Apr 2021 17:13:45 +0000 (13:13 -0400)]
optimisation
Avoid unnecessary conversion to/from String.
Joey Hess [Tue, 20 Apr 2021 16:42:57 +0000 (12:42 -0400)]
remove now redundant function
fooness [Tue, 20 Apr 2021 16:38:33 +0000 (16:38 +0000)]
Joey Hess [Tue, 20 Apr 2021 15:57:10 +0000 (11:57 -0400)]
comment
Joey Hess [Tue, 20 Apr 2021 15:41:43 +0000 (11:41 -0400)]
fix reversion in recent CoW changes
File handle accidentially left open is both a FD leak and causes the
haskell RTS to reject opening it again with "file is locked".
Joey Hess [Tue, 20 Apr 2021 15:08:06 +0000 (11:08 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
https://launchpad.net/~r0lf [Tue, 20 Apr 2021 13:49:58 +0000 (13:49 +0000)]
https://launchpad.net/~r0lf [Tue, 20 Apr 2021 13:46:07 +0000 (13:46 +0000)]
Joey Hess [Mon, 19 Apr 2021 17:58:43 +0000 (13:58 -0400)]
thoughts
Joey Hess [Mon, 19 Apr 2021 17:20:07 +0000 (13:20 -0400)]
yoh asked me to tag this datalad
Ilya_Shlyakhter [Mon, 19 Apr 2021 15:38:38 +0000 (15:38 +0000)]
Added a comment
yarikoptic [Mon, 19 Apr 2021 13:43:18 +0000 (13:43 +0000)]
initial report for test fails on windows
pat [Mon, 19 Apr 2021 00:09:16 +0000 (00:09 +0000)]
Ilya_Shlyakhter [Sun, 18 Apr 2021 23:45:26 +0000 (23:45 +0000)]
Added a comment
Ilya_Shlyakhter [Sun, 18 Apr 2021 22:03:26 +0000 (22:03 +0000)]
removed
Ilya_Shlyakhter [Sun, 18 Apr 2021 22:03:02 +0000 (22:03 +0000)]
Added a comment: semantics of preferred content expressions
Joey Hess [Sun, 18 Apr 2021 17:07:03 +0000 (13:07 -0400)]
comment
pat [Sun, 18 Apr 2021 16:18:46 +0000 (16:18 +0000)]
Added a comment
Ilya_Shlyakhter [Sun, 18 Apr 2021 15:40:55 +0000 (15:40 +0000)]
Added a comment
datamanager [Sun, 18 Apr 2021 15:38:33 +0000 (15:38 +0000)]
Added a comment: reply
Added a comment: migration warning still present after migration
pat [Sun, 18 Apr 2021 01:19:54 +0000 (01:19 +0000)]
Added a comment
pat [Sun, 18 Apr 2021 01:12:07 +0000 (01:12 +0000)]
pat [Sun, 18 Apr 2021 00:40:44 +0000 (00:40 +0000)]
removed
pat [Sun, 18 Apr 2021 00:39:11 +0000 (00:39 +0000)]
rename forum/Drop_doesn__39__t_respect_mincopies.mdwn to bugs/Drop_doesn__39__t_respect_mincopies.mdwn
pat [Sun, 18 Apr 2021 00:30:08 +0000 (00:30 +0000)]
removed
Ilya_Shlyakhter [Sat, 17 Apr 2021 22:54:45 +0000 (22:54 +0000)]
Added a comment
Ilya_Shlyakhter [Sat, 17 Apr 2021 22:54:34 +0000 (22:54 +0000)]
Added a comment
Ilya_Shlyakhter [Sat, 17 Apr 2021 22:31:52 +0000 (22:31 +0000)]
Added a comment: drop --not-used-elsewhere
Ilya_Shlyakhter [Sat, 17 Apr 2021 22:23:45 +0000 (22:23 +0000)]
Added a comment: updating the keys database incrementally
pat [Sat, 17 Apr 2021 21:05:28 +0000 (21:05 +0000)]
Added a comment
pat [Sat, 17 Apr 2021 20:51:30 +0000 (20:51 +0000)]
Ilya_Shlyakhter [Sat, 17 Apr 2021 20:38:09 +0000 (20:38 +0000)]
added suggestion: let git-annex-matching-options query .gitattributes
pat [Sat, 17 Apr 2021 20:22:35 +0000 (20:22 +0000)]
removed
pat [Sat, 17 Apr 2021 20:21:57 +0000 (20:21 +0000)]
Added a comment
pat [Sat, 17 Apr 2021 20:21:39 +0000 (20:21 +0000)]
Added a comment
pat [Sat, 17 Apr 2021 20:01:25 +0000 (20:01 +0000)]
Ilya_Shlyakhter [Sat, 17 Apr 2021 19:34:19 +0000 (19:34 +0000)]
Added a comment: re: Sync from one remote to another
pat [Sat, 17 Apr 2021 02:59:15 +0000 (02:59 +0000)]
Joey Hess [Fri, 16 Apr 2021 18:45:46 +0000 (14:45 -0400)]
comment
Joey Hess [Fri, 16 Apr 2021 18:41:51 +0000 (14:41 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 16 Apr 2021 18:41:12 +0000 (14:41 -0400)]
thoughts
Lukey [Fri, 16 Apr 2021 18:29:22 +0000 (18:29 +0000)]
Added a comment
Joey Hess [Fri, 16 Apr 2021 17:54:50 +0000 (13:54 -0400)]
comment
Joey Hess [Fri, 16 Apr 2021 17:49:05 +0000 (13:49 -0400)]
comment
Joey Hess [Fri, 16 Apr 2021 17:30:52 +0000 (13:30 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 16 Apr 2021 17:30:23 +0000 (13:30 -0400)]
idea
kousu [Fri, 16 Apr 2021 08:17:36 +0000 (08:17 +0000)]
Added a comment: Hardlinks
Ilya_Shlyakhter [Thu, 15 Apr 2021 16:32:34 +0000 (16:32 +0000)]
Added a comment: lockContent for special remotes
yarikoptic [Thu, 15 Apr 2021 13:04:18 +0000 (13:04 +0000)]
reporting fresh test fails