]> dgit.raspbian.org Git - git-annex.git/log
git-annex.git
4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 1 Nov 2021 17:41:19 +0000 (13:41 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agometadata --batch: Avoid crashing when a non-annexed file is input
Joey Hess [Mon, 1 Nov 2021 17:38:14 +0000 (13:38 -0400)]
metadata --batch: Avoid crashing when a non-annexed file is input

Turns out that CommandStart actions do not have their exceptions caught,
which is why the giveup was causing a crash. Mostly these actions
do not do very much work on their own, but it does seem possible there
are other commands whose CommandStart also throws an exception.

So, my first attempt at a fix was to catch those exceptions. But,
--json-error-messages then causes a difficulty, because in order to output
a json error message, an action needs to have been started; that sets up
the json object that the error message will be included in a field of.

While it would be possible to output an object with just an error field,
this would be json output of a format that the user has no reason to
expect, that happens only in an exceptional circumstance. That is something
I have always wanted to avoid with the json output; while git-annex man
pages don't document what the json looks like, the output has always
been made to be self-describing. Eg, it includes "error-messages":[]
even when there's no errors.

With that ruled out, it doesn't seem a good idea to catch CommandStart
exceptions and display the error to stderr when --json-error-messages
is set. And so I don't know if it makes sense to catch exceptions from that
at all. Maybe I'd have a different opinion if --json-error-messages did not
exist though.

So instead, output a blank line like other batch commands do.
This also leaves open the possibility of implementing support for matching
object with metadata --json, which would also want to output a blank line
when the input didn't match.

Sponsored-by: Dartmouth College's DANDI project
4 years agoAdded a comment
Lukey [Sat, 30 Oct 2021 16:45:52 +0000 (16:45 +0000)]
Added a comment

4 years ago(no commit message)
erewhon [Sat, 30 Oct 2021 03:00:05 +0000 (03:00 +0000)]

4 years ago(no commit message)
jenkin.schibel@286264d9ceb79998aecff0d5d1a4ffe34f8b8421 [Fri, 29 Oct 2021 18:24:15 +0000 (18:24 +0000)]

4 years agoadd news item for git-annex 8.20211028
Joey Hess [Thu, 28 Oct 2021 16:01:31 +0000 (12:01 -0400)]
add news item for git-annex 8.20211028

4 years agoreleasing package git-annex version 8.20211028
Joey Hess [Thu, 28 Oct 2021 16:00:56 +0000 (12:00 -0400)]
releasing package git-annex version 8.20211028

4 years agofix addurl concurrency issue
Joey Hess [Wed, 27 Oct 2021 20:15:41 +0000 (16:15 -0400)]
fix addurl concurrency issue

addurl: Support adding the same url to multiple files at the same time when
using -J with --batch --with-files.

Implementation was easier than expected, was able to reuse OnlyActionOn.

While it will download the url's content multiple times, that seems like
the best thing to do; see my comment for why.

Sponsored-by: Dartmouth College's DANDI project
4 years agoadd a comment about checkSaneLock
Joey Hess [Wed, 27 Oct 2021 18:55:30 +0000 (14:55 -0400)]
add a comment about checkSaneLock

See commit 8c2dd7d8ee814614bf3c871903b5d4d2aba193f4 for original
introduction of it, but needing to spelunk that far back to understand
the code is not good.

4 years agomove transfer already in progress message to warning
Joey Hess [Wed, 27 Oct 2021 18:46:21 +0000 (14:46 -0400)]
move transfer already in progress message to warning

This makes it be displayed in the error-messages field with
--json-error-messages. And with --quiet, it will let it be displayed,
which makes sense because it's telling the user why what they requested
to do has failed to happen.

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 27 Oct 2021 18:40:41 +0000 (14:40 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agocomment
Joey Hess [Wed, 27 Oct 2021 18:40:02 +0000 (14:40 -0400)]
comment

4 years agoAdded a comment
jwodder [Wed, 27 Oct 2021 18:19:23 +0000 (18:19 +0000)]
Added a comment

4 years agocomment
Joey Hess [Wed, 27 Oct 2021 18:18:19 +0000 (14:18 -0400)]
comment

4 years agoavoid redundant freezeContent call
Joey Hess [Wed, 27 Oct 2021 18:11:34 +0000 (14:11 -0400)]
avoid redundant freezeContent call

This opens the potential for the object file to be in place but
git-annex is interrupted before it can freeze it. git-annex fsck already
fixes that situation, which can also occur when lockContentForRemoval
thaws content.

Also improve comment to not be Windows-specific.

4 years agoAdded a comment
jwodder [Wed, 27 Oct 2021 18:16:44 +0000 (18:16 +0000)]
Added a comment

4 years agoCall freezeContent after move into annex
Reiko Asakura [Tue, 26 Oct 2021 19:46:38 +0000 (15:46 -0400)]
Call freezeContent after move into annex

This change better supports Windows ACL management using
annex.freezecontent-command and annex.thawcontent-command and matches
the behaviour of adding an unlocked file.

By calling freezeContent after the file has moved into the annex,
the file's delete permission can be denied. If the file's delete
permission is denied before moving into the annex, the file cannot
be moved or deleted. If the file's delete permission is not denied after
moving into the annex, it will likely inherit a grant for the delete
permission which allows it to be deleted irrespective of the permissions
of the parent directory.

4 years agocomment
Joey Hess [Wed, 27 Oct 2021 17:55:36 +0000 (13:55 -0400)]
comment

4 years agocomment
Joey Hess [Wed, 27 Oct 2021 16:56:09 +0000 (12:56 -0400)]
comment

4 years agoupdate, bugfix also fixed git-annex info
Joey Hess [Wed, 27 Oct 2021 16:22:02 +0000 (12:22 -0400)]
update, bugfix also fixed git-annex info

4 years agocomment
Joey Hess [Wed, 27 Oct 2021 16:21:43 +0000 (12:21 -0400)]
comment

4 years ago(no commit message)
jwodder [Wed, 27 Oct 2021 16:08:30 +0000 (16:08 +0000)]

4 years ago(no commit message)
mich_hein@7649a6a913fc77618845b4f94a5ae54fa432708a [Wed, 27 Oct 2021 13:28:56 +0000 (13:28 +0000)]

4 years agoAdded a comment
jkniiv [Tue, 26 Oct 2021 23:55:13 +0000 (23:55 +0000)]
Added a comment

4 years ago(no commit message)
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Tue, 26 Oct 2021 22:37:52 +0000 (22:37 +0000)]

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Tue, 26 Oct 2021 20:13:19 +0000 (20:13 +0000)]
Added a comment

4 years agoUpdated patch
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Tue, 26 Oct 2021 19:55:58 +0000 (19:55 +0000)]
Updated patch

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Tue, 26 Oct 2021 19:54:53 +0000 (19:54 +0000)]
Added a comment

4 years agoFix using lookupkey inside a subdirectory
Joey Hess [Tue, 26 Oct 2021 18:58:44 +0000 (14:58 -0400)]
Fix using lookupkey inside a subdirectory

Caused by dirContains ".." "foo" being incorrectly False.

Also added a test of dirContains, which includes all the previous bug fixes
I could find and some obvious cases.

Reversion in version 8.20211011

Sponsored-by: Brett Eisenberg on Patreon
4 years agocomment
Joey Hess [Tue, 26 Oct 2021 18:12:35 +0000 (14:12 -0400)]
comment

4 years agoreview
Joey Hess [Tue, 26 Oct 2021 18:08:56 +0000 (14:08 -0400)]
review

4 years agowhen private journal file exists, still read from git-annex branch
Joey Hess [Tue, 26 Oct 2021 17:43:50 +0000 (13:43 -0400)]
when private journal file exists, still read from git-annex branch

Fix bug that caused stale git-annex branch information to read when
annex.private or remote.name.annex-private is set.

The private journal file should not prevent reading more current
information from the git-annex branch, but used to.

Note that, overBranchFileContents has to do additional work now, when
there's a private journal file, it reads from the branch redundantly
and more slowly.

Sponsored-by: Jack Hill on Patreon
4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 26 Oct 2021 16:11:40 +0000 (12:11 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoAdded a comment
Lukey [Mon, 25 Oct 2021 10:25:05 +0000 (10:25 +0000)]
Added a comment

4 years ago(no commit message)
Lukey [Mon, 25 Oct 2021 10:16:35 +0000 (10:16 +0000)]

4 years agoAdded a comment
pat [Sun, 24 Oct 2021 22:42:35 +0000 (22:42 +0000)]
Added a comment

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Sun, 24 Oct 2021 21:23:56 +0000 (21:23 +0000)]
Added a comment

4 years ago(no commit message)
jwodder [Sun, 24 Oct 2021 19:21:54 +0000 (19:21 +0000)]

4 years ago(no commit message)
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Sun, 24 Oct 2021 19:12:23 +0000 (19:12 +0000)]

4 years agostill think we should highlight this as new info
jkniiv [Sun, 24 Oct 2021 15:10:13 +0000 (15:10 +0000)]
still think we should highlight this as new info

4 years agoAdded a comment
username [Sat, 23 Oct 2021 15:53:57 +0000 (15:53 +0000)]
Added a comment

4 years agoMoved WSL1 guide to a tips page
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Fri, 22 Oct 2021 22:14:40 +0000 (22:14 +0000)]
Moved WSL1 guide to a tips page

4 years ago(no commit message)
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Fri, 22 Oct 2021 22:13:46 +0000 (22:13 +0000)]

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Fri, 22 Oct 2021 15:58:11 +0000 (15:58 +0000)]
Added a comment

4 years ago(no commit message)
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Thu, 21 Oct 2021 21:24:24 +0000 (21:24 +0000)]

4 years ago(no commit message)
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Thu, 21 Oct 2021 17:17:42 +0000 (17:17 +0000)]

4 years agoAdded a comment
git-annex.visiteur@e9d364191d2ffc1b163c8d9e4c57dbadf58aad8e [Thu, 21 Oct 2021 08:24:55 +0000 (08:24 +0000)]
Added a comment

4 years agoremove obsolete libgcc1
Joey Hess [Thu, 21 Oct 2021 07:02:16 +0000 (03:02 -0400)]
remove obsolete libgcc1

last seen in debian oldstable

4 years ago(no commit message)
jwodder [Thu, 21 Oct 2021 04:54:26 +0000 (04:54 +0000)]

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Thu, 21 Oct 2021 02:09:02 +0000 (02:09 +0000)]
Added a comment

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Thu, 21 Oct 2021 02:06:50 +0000 (02:06 +0000)]
Added a comment

4 years ago(no commit message)
jwodder [Thu, 21 Oct 2021 01:35:48 +0000 (01:35 +0000)]

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Wed, 20 Oct 2021 22:54:39 +0000 (22:54 +0000)]
Added a comment

4 years agocomment
Joey Hess [Wed, 20 Oct 2021 19:25:35 +0000 (15:25 -0400)]
comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 20 Oct 2021 19:16:42 +0000 (15:16 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agofix build failure on windows
Joey Hess [Wed, 20 Oct 2021 19:12:12 +0000 (15:12 -0400)]
fix build failure on windows

Utility.QuickCheck also has an instance Arbitrary FileID.
It seems that this problem used to be ignored by ghc but now it notices
it.

4 years agoAdded a comment: Same problem with git-annex 8.20210223
git-annex.visiteur@e9d364191d2ffc1b163c8d9e4c57dbadf58aad8e [Wed, 20 Oct 2021 19:09:29 +0000 (19:09 +0000)]
Added a comment: Same problem with git-annex 8.20210223

4 years agocomment
Joey Hess [Wed, 20 Oct 2021 18:51:18 +0000 (14:51 -0400)]
comment

4 years agocomment
Joey Hess [Wed, 20 Oct 2021 18:12:08 +0000 (14:12 -0400)]
comment

4 years agocomment
Joey Hess [Wed, 20 Oct 2021 17:57:44 +0000 (13:57 -0400)]
comment

4 years agoupdate
Joey Hess [Wed, 20 Oct 2021 17:48:37 +0000 (13:48 -0400)]
update

4 years agooops, I misread, still happens for adjusted branches
Joey Hess [Wed, 20 Oct 2021 17:45:56 +0000 (13:45 -0400)]
oops, I misread, still happens for adjusted branches

4 years agolinked bugs
Joey Hess [Wed, 20 Oct 2021 17:32:03 +0000 (13:32 -0400)]
linked bugs

4 years agochangelog
Joey Hess [Wed, 20 Oct 2021 17:26:01 +0000 (13:26 -0400)]
changelog

A user tested 0f38ad9a69f07f6c6dfb164ad87ecfd56036496f on WSL, and it
seems to have fixed the problem.

4 years agocomment
Joey Hess [Wed, 20 Oct 2021 17:24:46 +0000 (13:24 -0400)]
comment

4 years agoupdate per other comment
Joey Hess [Wed, 20 Oct 2021 17:12:16 +0000 (13:12 -0400)]
update per other comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 20 Oct 2021 17:07:09 +0000 (13:07 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agocomment
Joey Hess [Wed, 20 Oct 2021 17:06:51 +0000 (13:06 -0400)]
comment

4 years agoavoid using a second db connection for writes
Joey Hess [Wed, 20 Oct 2021 16:32:46 +0000 (12:32 -0400)]
avoid using a second db connection for writes

This is a potentially breaking change in a very delicate area. However,
examining the code path for writes, I don't see any benefit to opening a
second db connection for them. If the write throws an exception,
commitDb will retry it with a new db connection.

A potential benefit to not opening a second db connection, beyond using
less resources, is it just might avoid problems in WSL with sqlite that
I have hypothesized are caused by multiple db connections.

Commit 5f9eff3f32e0101ee673c3dde221f0f27f32e3c8 explains why it needs to
shut down the db connection to force the database to be updated on disk:
When closeDb does not get called, garbage collection of DbHandle may not
give the workterThread time to cleanly shut down before git-annex exits,
resulting in a recently written change not reaching disk.

4 years agoeliminate single/multi writer distinction
Joey Hess [Wed, 20 Oct 2021 16:24:40 +0000 (12:24 -0400)]
eliminate single/multi writer distinction

After commit f4bdecc4ecce8bcbb2d8ccbb524ba1f3f76565ba, there is no
longer any distinction between SingleWriter and MultiWriter's handling
of read after write.

Databases that were SingleWriter still have lock files that are used to
prevent multiple writers.

This does make writing to such databases a bit more expensive,
because the MultiWriter code path that is now used opens a second db
connection in order to write to them.

4 years agoimprove with continuation
Joey Hess [Wed, 20 Oct 2021 16:13:49 +0000 (12:13 -0400)]
improve with continuation

no behavior change

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Wed, 20 Oct 2021 14:42:33 +0000 (14:42 +0000)]
Added a comment

4 years agoAdded a comment: Still seeing the issue.
gitannexuser2021 [Tue, 19 Oct 2021 22:37:45 +0000 (22:37 +0000)]
Added a comment: Still seeing the issue.

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 19 Oct 2021 19:15:29 +0000 (15:15 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoimprove sqlite MultiWriter handling of read after write
Joey Hess [Tue, 19 Oct 2021 19:13:29 +0000 (15:13 -0400)]
improve sqlite MultiWriter handling of read after write

This removes a messy caveat that was easy to forget and caused at least one
bug. The price paid is that, after a write to a MultiWriter db, it has to
close the db connection that it had been using to read, and open a new
connection. So it might be a little bit slower. But, writes are usually
batched together, so there's often only a single write, and so there should
not be much of a slowdown. Notice that SingleWriter already closed the db
connection after a write, so paid the same overhead.

This is the second try at fixing a bug: git-annex get when run as the first
git-annex command in a new repo did not populate all unlocked files.
(Reversion in version 8.20210621)

Sponsored-by: Boyd Stephen Smith Jr. on Patreon
4 years agoAdded a comment
Lukey [Tue, 19 Oct 2021 17:17:47 +0000 (17:17 +0000)]
Added a comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 19 Oct 2021 17:17:04 +0000 (13:17 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoreopen
Joey Hess [Tue, 19 Oct 2021 17:16:29 +0000 (13:16 -0400)]
reopen

4 years agoclose keys db to possibly work around WSL1 issue
Joey Hess [Tue, 19 Oct 2021 17:07:49 +0000 (13:07 -0400)]
close keys db to possibly work around WSL1 issue

4 years ago(no commit message)
paperbenni [Tue, 19 Oct 2021 16:45:12 +0000 (16:45 +0000)]

4 years agocomment
Joey Hess [Tue, 19 Oct 2021 16:43:08 +0000 (12:43 -0400)]
comment

4 years agoremove xmpp mention
Joey Hess [Tue, 19 Oct 2021 16:26:22 +0000 (12:26 -0400)]
remove xmpp mention

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 19 Oct 2021 16:03:51 +0000 (12:03 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agocomment
Joey Hess [Tue, 19 Oct 2021 14:08:28 +0000 (10:08 -0400)]
comment

4 years agoAdded a comment
Atemu [Tue, 19 Oct 2021 13:05:50 +0000 (13:05 +0000)]
Added a comment

4 years agoAdded a comment
Atemu [Tue, 19 Oct 2021 12:26:33 +0000 (12:26 +0000)]
Added a comment

4 years agoupdate to lts-18.13
Joey Hess [Mon, 18 Oct 2021 20:27:10 +0000 (16:27 -0400)]
update to lts-18.13

ghc 8.10

4 years agoavoid warning when built with unix-compat 0.5.3
Joey Hess [Mon, 18 Oct 2021 20:25:28 +0000 (16:25 -0400)]
avoid warning when built with unix-compat 0.5.3

It re-exports modificationTimeHiRes, and provides a windows version.

Might be worth using that windows version eventually, but I have not
tested it.

4 years agorename to avoid warning
Joey Hess [Mon, 18 Oct 2021 20:25:00 +0000 (16:25 -0400)]
rename to avoid warning

a new version of persistent exports an "exists"

4 years agoAdded a comment
username [Mon, 18 Oct 2021 19:54:29 +0000 (19:54 +0000)]
Added a comment

4 years agoremove osx stack.yaml
Joey Hess [Mon, 18 Oct 2021 17:14:57 +0000 (13:14 -0400)]
remove osx stack.yaml

The OSX autobuilder is now using github CI, and can use a current
version of ghc, rather than the old one.

Sponsored-by: Dartmouth College's Datalad project
4 years agopin aws to revision 0
Joey Hess [Mon, 18 Oct 2021 15:57:02 +0000 (11:57 -0400)]
pin aws to revision 0

revision 1 seems to have introduced a build failure

Sponsored-by: Dartmouth College's Datalad project
4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 18 Oct 2021 15:50:33 +0000 (11:50 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoAdded a comment
Lukey [Mon, 18 Oct 2021 15:36:06 +0000 (15:36 +0000)]
Added a comment

4 years agonote about encryption/chunking
Joey Hess [Mon, 18 Oct 2021 15:11:24 +0000 (11:11 -0400)]
note about encryption/chunking

4 years agoAdded a comment: directory special remote
username [Sun, 17 Oct 2021 22:15:52 +0000 (22:15 +0000)]
Added a comment: directory special remote

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Sun, 17 Oct 2021 01:14:18 +0000 (01:14 +0000)]
Added a comment

4 years agoAdded a comment
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Sat, 16 Oct 2021 15:46:32 +0000 (15:46 +0000)]
Added a comment

4 years agoAdded a comment
Lukey [Sat, 16 Oct 2021 15:27:35 +0000 (15:27 +0000)]
Added a comment

4 years agoNote about case sensitivity dirs
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476 [Sat, 16 Oct 2021 15:25:00 +0000 (15:25 +0000)]
Note about case sensitivity dirs