Commit graph

35301 commits

Author SHA1 Message Date
Joey Hess
586db7f06d
Avoid making a commit when upgrading from direct mode to v7
Three reasons:

* Committing as part of an upgrade is very unusual and unexpected.
* The commit was failing with a weird error message when done during an
  automatic upgrade.
* Let me remove more of that sweet^Whorrible direct mode code.
2019-08-26 16:35:44 -04:00
Joey Hess
689d1fcc92
remove most remnants of direct mode
A few remain, as needed for upgrades, and for accessing objects from
remotes that are direct mode repos that have not been converted yet.
2019-08-26 16:27:48 -04:00
Joey Hess
adb89ee71b
update test suite for removal of direct mode
Removed that pass and all the complications of checking direct mode's
edge cases.
2019-08-26 15:07:10 -04:00
Joey Hess
20741b1eb4
Automatically convert direct mode repositories to v7 with adjusted unlocked branches
* Automatically convert direct mode repositories to v7 with adjusted
  unlocked branches and set annex.thin.
* init: When run on a crippled filesystem with --version=5,
  will error out, since version 7 is needed for adjusted unlocked branch.
* direct: This command always errors out as direct mode is no longer
  supported.
* indirect: This command has become a deprecated noop.
* proxy: This command is deprecated because it was only needed in direct
  mode. (But it continues to work.)

Also removed mentions of direct mode throughough the documentation.

I have not removed all the direct mode code yet.
2019-08-26 15:05:25 -04:00
Joey Hess
f6fb4b8cdb
avoid side message when doing automatic upgrade to v7
An automatic upgrade is supposed to be silent.
2019-08-26 13:54:52 -04:00
Joey Hess
5877a15d7b
fix hard links when upgrading from direct mode
When upgrading a direct mode repo to v7 with adjusted unlocked branches,
fix a bug that prevented annex.thin from taking effect for the files in
working tree.

The hard links used to be ok, but commit 8e22114735 accidentially
broke them. It repopulates the worktree file, which is already a hard link,
and when it's creating the new file, the link count is already 2, and so it
doesn't make a hard link then.
2019-08-26 13:54:39 -04:00
Joey Hess
1e02360283
remove only case 2019-08-26 13:28:28 -04:00
Joey Hess
2fd27c6df5
assistant: When creating a new repository use v7 adjusted branches with annex.thin
Rather than direct mode, which this is a small step on the path to
removing.

Init on a crippled filesystem already used v7 adjusted branches,
and like that, this doesn't pose any interoperability issues with old
versions of git-annex that clone the same repo, because files are only
unlocked on the adjusted branch.
2019-08-26 12:54:14 -04:00
Joey Hess
b599e8e6ac
move module only used by assistant 2019-08-26 12:32:45 -04:00
Joey Hess
0c718763fd
planning
several entangled things
2019-08-26 12:29:43 -04:00
Joey Hess
9bf3a5c405
close as probably fixed in recent test suite improvements 2019-08-26 12:27:27 -04:00
Joey Hess
b627c5b4d0
followup 2019-08-26 12:20:57 -04:00
ronald@bfae3dfd3105df06e4cc44c37b3e8dc430bd137a
04a928eccc fix git:// url for repo 2019-08-25 19:12:58 +00:00
Joey Hess
c650389118
info: error out when file matching options used on non-directory
When file matching options are specified when getting info of
something other than a directory, they won't have any effect, so error out
to avoid confusion.

This commit was sponsored by mo on Patreon.
2019-08-24 13:20:19 -04:00
Joey Hess
8012d61874
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-23 16:52:23 -04:00
Joey Hess
cb318d4404
todo 2019-08-23 16:52:08 -04:00
giuly
1eb2a87147 Datalad/Git annex/unkown archive format 2019-08-23 19:40:04 +00:00
yarikoptic
9531f5b6d4 initial report about regression failing to detect need for pidlock 2019-08-23 14:16:11 +00:00
Joey Hess
246ec97338
update 2019-08-22 21:04:19 -04:00
https://christian.amsuess.com/chrysn
e4161b6ea5 Added a comment: workaround not working any more 2019-08-21 11:34:23 +00:00
Ilya_Shlyakhter
afe5be0463 Added a comment: another instance of git-annex-sync not being idempotent 2019-08-20 17:08:45 +00:00
Ilya_Shlyakhter
f0ca57a232 added a hyperlink to conda installation page 2019-08-20 02:45:43 +00:00
Ilya_Shlyakhter
908476a9b8 Added a comment: hourly windows autobuild seems to have stopped running 2019-08-19 19:47:06 +00:00
Joey Hess
0bb42aea9a
add news item for git-annex 7.20190819 2019-08-19 12:27:15 -04:00
Joey Hess
972fd11f4e
releasing package git-annex version 7.20190819 2019-08-19 12:26:45 -04:00
Joey Hess
bb16a26109
use headExists
Turns out that 7be690f326 broke the
test suite on the i386ancient builder. There, git show-ref --verify HEAD
fails with "'HEAD' - not a valid ref". Apparently git 2.1.4 didn't
support that.

headExists works there and does the same thing.
2019-08-19 11:12:19 -04:00
Joey Hess
f845636e30
correct license to AGPL
This code was already AGPL, except for the bit split out
to Utility/MD5.hs in commit 426053cb6c.
That commit accidentially updated the license of this file from AGPL
to GPL.

Thanks to Sean Whitton for spotting this.
2019-08-17 14:08:07 -04:00
Joey Hess
a6933e1629
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-16 14:09:27 -04:00
Joey Hess
7f97575941
Makefile: Changed default zsh completion location to zsh default fpath.
Systems such as Debian that have overridden the default fpath will need to
set ZSH_COMPLETIONS_PATH.

I feel that Debian is causing unncessary complexity by making this change,
and have filed a bug report about it.

This also means that when git-annex is installed with PREFIX=/usr/local
it will use /usr/local/share/zsh/site-functions which works with probably
all versions of zsh.
2019-08-16 14:08:56 -04:00
Joey Hess
5fcaaf77db
Make git-annex-standalone.deb include the shell completions again
Was lost when the install-completions target was added.
2019-08-16 13:47:48 -04:00
Joey Hess
e03919bd93
simplify
git-annex build-depends on a new enough optparse-applicative that zsh
and fish completions will always be generated
2019-08-16 13:36:26 -04:00
Ilya_Shlyakhter
09f79e5256 Added a comment: storing checksums for non-checksum keys in metadata 2019-08-16 16:06:29 +00:00
Ilya_Shlyakhter
41fee0b0fc removed 2019-08-16 16:03:41 +00:00
Ilya_Shlyakhter
9f62583717 Added a comment: storing checksums for non-checksum keys in metadata 2019-08-16 16:02:41 +00:00
Joey Hess
b532d69498
add missing build dep of install-completions
Since it runs git-annex to generate the completions files.
2019-08-16 11:42:00 -04:00
Joey Hess
206f9ad7c0
add comment 2019-08-16 11:36:33 -04:00
Joey Hess
e4a8366162
fix edge case failure in prop_view_roundtrips
"./" made it fail, because that gets eliminated
2019-08-16 11:35:32 -04:00
Joey Hess
fa62c32233
Fix intermittent failure of the test suite
Its repeated opening and writing to the sqlite database somehow caused
inode cache information to occasionally be lost.

This loses code coverage, since running git-annex as a child process
prevents tracking what parts of the code are exercised. I have not looked
at the code coverage in a long time. It would probably be possible to
collect code coverage for the child procesess and merge it together.
2019-08-16 11:11:55 -04:00
Joey Hess
83cdc511da
use GHC not ghc 2019-08-16 11:00:28 -04:00
https://launchpad.net/~felixonmars
14b2a257fb 2019-08-16 07:25:29 +00:00
Joey Hess
b68198d7be
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-15 21:44:29 -04:00
Joey Hess
61bc26dc40
comment 2019-08-15 21:44:14 -04:00
eschwartz@5abb721e66990e478c7d1caf96beb4f9794eb168
c131c0f0c5 2019-08-15 22:46:53 +00:00
Joey Hess
7cd2120b23
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-15 17:45:05 -04:00
Joey Hess
be52546af6
update 2019-08-15 17:30:38 -04:00
Joey Hess
8e2396fcff
bug 2019-08-15 17:17:59 -04:00
eschwartz@5abb721e66990e478c7d1caf96beb4f9794eb168
7a0ed9dc75 Added a comment 2019-08-15 21:15:09 +00:00
Joey Hess
94e57a7fbc
comment 2019-08-15 15:19:57 -04:00
Joey Hess
c8cca57b3b
Merge branch 'master' of ssh://git-annex.branchable.com 2019-08-15 14:48:13 -04:00
Joey Hess
69cefe8190
followup and display rsync exit status 2019-08-15 14:47:22 -04:00