Commit graph

47105 commits

Author SHA1 Message Date
Joey Hess
c20b8610b6
enableremote: Allow type= to be provided when it does not change the type of the special remote
Fixes breakage in datalad test suite
https://github.com/datalad/datalad/issues/7747

Also, revert the change I earlier made to git-annex's own test suite due to
the same problem.
2025-09-29 10:40:10 -04:00
Joey Hess
555377e625
Remove the Servant build flag
Always build with support for annex+http urls and git-annex p2phttp.
2025-09-25 13:40:06 -04:00
Joey Hess
69bc7a0966
remove unnecessary import 2025-09-25 13:27:43 -04:00
Joey Hess
9af2f5b814
add news item for git-annex 10.20250925 2025-09-25 13:22:02 -04:00
Joey Hess
06a6b0b9b9
releasing package git-annex version 10.20250925 2025-09-25 13:21:55 -04:00
nadir
6a51a75861 Added a comment 2025-09-24 21:52:32 +00:00
Joey Hess
b0cd91c707
update 2025-09-24 13:04:51 -04:00
Joey Hess
c688852cd1
comments 2025-09-24 12:54:20 -04:00
Joey Hess
44b1980782
Merge branch 'master' of ssh://git-annex.branchable.com 2025-09-24 12:21:32 -04:00
Joey Hess
47521f6db5
preparing for a release 2025-09-24 12:06:45 -04:00
Joey Hess
eaed11722f
reorder 2025-09-24 12:05:45 -04:00
Joey Hess
23509bad54
fixed 2025-09-24 12:03:18 -04:00
Arnie97
9cdf151525 Added a comment: the X prefix conflicts with the eXternal backend namespace 2025-09-24 12:05:05 +00:00
jnkl
2fde6b7ee8 2025-09-23 18:50:19 +00:00
Joey Hess
297e1303e3
Merge branch 'master' of ssh://git-annex.branchable.com 2025-09-23 13:57:09 -04:00
Joey Hess
6fcccbba19
clean up imports needed by old versions of ghc
Now that ghc 9.0.2 is the oldest supported version.

Eg cruft from
https://web.archive.org/web/20190424185034/https://prime.haskell.org/wiki/Libraries/Proposals/SemigroupMonoid

Sponsored-by: Jack Hill
2025-09-23 13:55:13 -04:00
jnkl
64ce7cca21 2025-09-23 17:48:41 +00:00
Joey Hess
34894c22be
avoid unused import on Windows 2025-09-23 13:11:32 -04:00
Joey Hess
406732df70
fix build warnings 2025-09-23 13:11:04 -04:00
Joey Hess
f2abeaae12
fix windows build 2025-09-23 13:02:24 -04:00
Joey Hess
2f910640b1
Merge branch 'master' of ssh://git-annex.branchable.com 2025-09-23 12:54:33 -04:00
Joey Hess
ff65cd6954
invalidate recorded content identifier tree when export changes
Fix bug that made changes to a special remote sometimes be missed when
importing a tree from it. The diff import would miss when a change was
exported, then manually undone on the special remote (eg deleting a newly
exported file). A full import is needed to catch such changes.

After upgrading, any such missed changes will be included in the next
tree imported from a special remote. This happens because the previously
recorded content identifier tree does not have export information included,
so it is treated as invalid, and a full import is done.

Fixes reversion introduced in version 10.20230626, commit
40017089f2

Unfortunately, this does mean that after each export, the next import will
be a full import. Which can take significantly longer than the diff import
does, when there are a lot of files in the tree.

It would be better if exporting also update the content identifier tree.
However, I don't know if that can be done inexpensively. It would be future
optimisation work, in any case.

(That could only be done for an export that is run in the same
repository as the import. When an export is run in a different repository,
the export.log gets updated, and that propagates to the repository where
import is later run. At that point, a full import is done.)

Sponsored-by: Luke T. Shumaker
2025-09-23 12:52:55 -04:00
Joey Hess
a1cd61b1c4
remove accidentially added debug prints 2025-09-23 11:34:16 -04:00
yarikoptic
c552ea8108 2025-09-23 14:26:07 +00:00
yarikoptic
1c38869e32 Windows still FTBFS 2025-09-23 14:24:30 +00:00
Joey Hess
478f42d3f3
thought 2025-09-22 23:57:30 -04:00
Joey Hess
3d1c871b8d
worse 2025-09-22 23:48:46 -04:00
Joey Hess
2323579068
promote forum post to bug, analysis 2025-09-22 19:30:23 -04:00
Joey Hess
722a215354
fix test suite
dfbf76e2ca broke it.

enableremote with the same type= as initremote had before might be worth
allowing, but I'll wait and see if someone else complains
2025-09-22 15:00:26 -04:00
Joey Hess
16d7432a2f
prevent deadlock when reconcileStaged runs restagePointerFiles
Fix hang that could occur when using git-annex adjust on a branch with a
number of files greater than annex.queuesize. Or potentially other
commands.

When reconcileStaged is running, the database is being opened. But
restagePointerFiles closes the database, and later writes to it. So it will
deadlock if called by reconcileStaged.

The deadlock occurred when the git queue happened to be full, causing
adding a call to restagePointerFiles to it to flush the queue and
restagePointerFiles to run at the wrong time.

Fixed by making reconcileStaged, when it populates or depopulates a pointer
file, arrange for restagePointerFiles to be run as a cleanup action, rather
than from the git queue.

But, what if restagePointerFiles is already in the git queue before
reconcileStaged is run? If it adds anything else to the git queue, causing
the queue to flush, it would still deadlock. To avoid this hypothetical
situation, added a Annex.inreconcilestaged, and made restagePointerFiles
check it and not do anything.

Note that, I did consider the simpler approach of only running
restagePointerFiles as a cleanup action, rather than from the git queue.
But see commit 6a3bd283b8 for why it was made
to use the queue in the first place. I wanted to avoid tying this bug fix
to a behavior change.

Sponsored-by: mycroft
2025-09-22 14:56:50 -04:00
Joey Hess
ada2664b9c
update 2025-09-22 12:07:16 -04:00
Joey Hess
75c7800424
comment 2025-09-22 11:19:13 -04:00
Joey Hess
d99380be85
comment 2025-09-22 11:15:32 -04:00
Joey Hess
6fa46c6443
comment 2025-09-22 11:10:32 -04:00
Joey Hess
b1c2508159
comment 2025-09-22 11:02:24 -04:00
Joey Hess
dfbf76e2ca
enableremote: Disallow using type= to attempt to change the type of an existing remote
Changing the type out from under an existing special remote exposes the
existing config to something that may interpret it wildly differently. As
seen in the bug report, this can even result in behavior that makes
git-annex say it's buggy. So prevent the user from doing this. --sameas is
the better way.

Sponsored-by: Kevin Mueller
2025-09-22 10:54:16 -04:00
Joey Hess
e1c6a48f96
comment 2025-09-22 10:27:28 -04:00
Joey Hess
b397e71341
Add git-remote-p2p-annex and git-remote-tor-annex to standalone builds 2025-09-22 10:20:36 -04:00
matrss
94163be1d7 2025-09-20 17:54:22 +00:00
Joey Hess
60985889a9
fix windows build 2025-09-18 11:59:22 -04:00
Joey Hess
d8042850e6
response 2025-09-18 11:54:51 -04:00
Joey Hess
ff623b7a7e
Merge branch 'master' of ssh://git-annex.branchable.com 2025-09-18 11:07:20 -04:00
yarikoptic
19c8fef45e FTBFS on Windows 2025-09-16 20:48:22 +00:00
Joey Hess
8570a48913
typo 2025-09-16 16:38:54 -04:00
yarikoptic
101c054835 Added a comment 2025-09-16 19:34:27 +00:00
yarikoptic
cf024862c2 Added a comment 2025-09-16 19:33:40 +00:00
Joey Hess
92c4a34414
annex.assistant.allowunlocked
Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
2025-09-16 14:58:26 -04:00
Joey Hess
40d0b5f2ef
fix bug in recent commit 2025-09-16 14:32:04 -04:00
Joey Hess
f8b360f59d
tag repronim based on https://git-annex.branchable.com/forum/Is_there_a_way_to_have_assistant_add_files_locked__63__/#comment-096bedb2d22d5aae6a51a53179372d4f 2025-09-16 13:45:36 -04:00
Joey Hess
c98dc21880
improve example 2025-09-16 13:34:54 -04:00