Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2018-03-27 16:31:21 -04:00
commit bb91aef7fa
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 71 additions and 1 deletions

View file

@ -0,0 +1,35 @@
### Please describe the problem.
From our inspection, `annex metadata` call relies on `ls-files` to determine if the file is known to annex. But if there is an `addurl --batch` running which is adding those files, `git` is not immediately aware of them, thus `git annex metadata` returns "peacefully" without actually performing any operation on metadata.
### What steps will reproduce the problem?
this is an extract from what we are doing in datalad, so might be insufficient (let us know if so)
1. run `git annex addurl --batch` and add a file
2. run `git annex metadata` to assign some metadata to the just addurl'ed file
### What version of git-annex are you using? On what operating system?
6.20180316+gitg308f3ecf6-1~ndall+1
### Please provide any additional information below.
[[!format sh """
$> git -c receive.autogc=0 -c gc.auto=0 annex --debug metadata --json -s verbal_iq+=116 -s performance_iq+=89 -s age+=16.77 -s handedness+=ambidextrous -s site_id+=pitt -s session_count+=1 -s dsm_iv_tr+=autism -s sex+=Male -s project+=abide_initiative -s full_iq+=103 -s MRI+=yes -s diagnosis+=autism -s participant_id+=50002 -s session_id+=1 -s species+=homo-sapiens -- sub-50002/ses-1/T1_rep-0.mgz [2018-03-27 11:25:15.953624157] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","ls-files","--cached","-z","--","sub-50002/ses-1/T1_rep-0.mgz"]
[2018-03-27 11:25:15.957761277] process done ExitSuccess
# no error exit code
$> px | grep addurl.*batch
yoh 26767 0.0 0.0 17892 2184 pts/16 T 11:05 0:00 | \_ /usr/lib/git-annex.linux/exe/git --library-path /usr/lib/git-annex.linux//usr/lib/x86_64-linux-gnu/gconv:/usr/lib/git-annex.linux//usr/lib/x86_64-linux-gnu/audit:/usr/lib/git-annex.linux//etc/ld.so.conf.d:/usr/lib/git-annex.linux//lib64:/usr/lib/git-annex.linux//usr/lib/x86_64-linux-gnu:/usr/lib/git-annex.linux//lib/x86_64-linux-gnu: /usr/lib/git-annex.linux/shimmed/git/git -c receive.autogc=0 -c gc.auto=0 annex addurl --with-files --json --batch
yoh 26790 0.0 0.3 1074180296 63604 pts/16 Tl 11:05 0:00 | \_ /usr/lib/git-annex.linux/exe/git-annex --library-path /usr/lib/git-annex.linux//usr/lib/x86_64-linux-gnu/gconv:/usr/lib/git-annex.linux//usr/lib/x86_64-linux-gnu/audit:/usr/lib/git-annex.linux//etc/ld.so.conf.d:/usr/lib/git-annex.linux//lib64:/usr/lib/git-annex.linux//usr/lib/x86_64-linux-gnu:/usr/lib/git-annex.linux//lib/x86_64-linux-gnu: /usr/lib/git-annex.linux/shimmed/git-annex/git-annex addurl --with-files --json --batch
"""]]
P.S. It might be a related observation that git-annex metadata does exit with non-0 exit code whenever it is ran on a non-existing file, but it exits with 0 exit code (but without performing any action) when ran on the existing but not known to git file. I wondered if there could be if not a change in behavior but a flag to make `annex metadata PATHs` exit with non-0 code if it didn't handle some path(s) from the provided. Then we could use it within our "set metadata" to guarantee that we do not omit any file for which we thought we would get metadata operation performed.
[[!meta author=yoh]]

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="misc@e661ec6eb62aa0134e4ac4ca16f98640acf5c627"
nickname="misc"
avatar="http://cdn.libravatar.org/avatar/78f317f1cdf5dfdaa295207a6dbf1311"
subject="comment 2"
date="2018-03-27T05:53:43Z"
content="""
That's exactly what I needed, thanks!
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="dittigas"
avatar="http://cdn.libravatar.org/avatar/58cabd2b30471004288fac2b535faaa8"
subject="git-annex-webapp missing from Fedora 27"
date="2018-03-27T07:43:53Z"
content="""
My installation does not seem to include the webapp feature. I.e git-annex webapp, git annex webapp or git-annex-webapp are not abailble.
"""]]

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="ilyawebmail@d5db0da13c02cda3860f534f3f02acdc914360b9"
nickname="ilyawebmail"
avatar="http://cdn.libravatar.org/avatar/34c90de0aa8b47144f32671827bd97d1"
subject="conda install now available on Linux (no root privileges needed)"
date="2018-03-27T18:33:36Z"
content="""
On Linux, an up-to-date binary distribution of git-annex can now be installed with the conda package manager ( https://conda.io/docs/ ) from with conda-forge channel ( https://conda-forge.org/ ). After installing conda, do: \"conda install -c conda-forge git-annex\".
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="dittigas"
avatar="http://cdn.libravatar.org/avatar/58cabd2b30471004288fac2b535faaa8"
subject="How do I mark a specialremote (box.com) as being in the transfer group (cli)"
date="2018-03-27T07:39:28Z"
content="""
I've got thing set up (2 client, with box.com as a special remote)... client one uploads it's content, but client 2 does not download anything. I'd like to have box.com set up as as a trandfer repo, which will loos it's content when client 2 got the files.
"""]]

View file

@ -67,7 +67,7 @@ The behavior of some commands changes in an upgraded repository:
to the git repository. To cause some files to be added directly
to git, you can configure `annex.largefiles`. For example:
git config annex.largefiles "largerthan=100kb and not (include=*.c or include=*.h)"
`git config annex.largefiles "largerthan=100kb and not (include=*.c or include=*.h)"`
* `git annex unlock` and `git annex lock` change how the pointer to
the annexed content is stored in git.