diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-10-02 11:58:31 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-10-02 11:58:31 -0400 |
commit | 6dc6b4b7d9236a2ecbc3260945e0cd532a157c26 (patch) | |
tree | f579ab43822f9cd7c7a07d7c0f433eca63777e11 /doc/bugs/inconsistent_output_upon_addurl_--batch_complicates_if_not_forbids_reliable_parsing_of_output.mdwn | |
parent | 156adb9af66a17c69e6d402d1e3d3bd477af72be (diff) |
you requested his old closed bugs not be deleted yet
Diffstat (limited to 'doc/bugs/inconsistent_output_upon_addurl_--batch_complicates_if_not_forbids_reliable_parsing_of_output.mdwn')
-rw-r--r-- | doc/bugs/inconsistent_output_upon_addurl_--batch_complicates_if_not_forbids_reliable_parsing_of_output.mdwn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/bugs/inconsistent_output_upon_addurl_--batch_complicates_if_not_forbids_reliable_parsing_of_output.mdwn b/doc/bugs/inconsistent_output_upon_addurl_--batch_complicates_if_not_forbids_reliable_parsing_of_output.mdwn new file mode 100644 index 000000000..6601e9ba5 --- /dev/null +++ b/doc/bugs/inconsistent_output_upon_addurl_--batch_complicates_if_not_forbids_reliable_parsing_of_output.mdwn @@ -0,0 +1,24 @@ +### Please describe the problem. + +if using addurl in --batch mode, there is no --json formatting and text output is somewhat inconsistent. It might include "downloading ..." with 'ok' on a separate line, possibly with a msg on recording state in git, or within the same line report 'ok', or 'failed' in upcoming lines. This complicates parsing of such output to verify correct operation for a given addurl pair + +[[!format sh """ + +$> echo 'http://127.0.0.1:33369/about.txt about.txt' | git -c receive.autogc=false annex addurl --with-files --batch --debug 2>/dev/null +addurl about.txt (downloading http://127.0.0.1:33369/about.txt ...) +ok +(recording state in git...) + +$> echo 'http://127.0.0.1:33369/about.txt about.txt' | git -c receive.autogc=false annex addurl --with-files --batch --debug 2>/dev/null +addurl about.txt ok + +$> echo 'http://127.0.0.1:33369/about.stxt about.txt' | git -c receive.autogc=false annex addurl --with-files --batch --debug 2>/dev/null +addurl about.txt +failed + +"""]] + +[[!meta author=yoh]] + +> I've made --json work for addurl; I feel that's the way to go for parsing +> its output. [[done]] --[[Joey]] |