make query commands not output extraneous messages

config group groupwanted numcopies schedule wanted required:  Avoid
displaying extraneous messages about repository auto-init, git-annex branch
merging, etc, when being used to get information.
This commit is contained in:
Joey Hess 2017-02-16 13:24:16 -04:00
parent baa2ab2c7d
commit d0651bb567
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
10 changed files with 51 additions and 15 deletions

View file

@ -9,3 +9,5 @@ not metadata=distribution-restrictions=*
so it is necessary to avoid considering all the merging and recording messages, complicating using wanted in the scripts etc
[[!meta author=yoh]]
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="joey"
subject="""comment 3"""
date="2017-02-16T16:53:30Z"
content="""
This can happen at other times than repository auto-init too.
Generally plumbing commands just turn off all such messages very early,
but in this case, the command has one mode where it's supposed to get data,
which is plumbing-like, and another mode where it sets data, which is
supposed to display normal messages about what it's doing. So it didn't
turn messages off until after parsing the command line, which is too late.
Affected commands: config group groupwanted numcopies schedule wanted required
Fairly sure that's a complete set, at least it's all the commands with
both a get and a set mode.
"""]]