aboutsummaryrefslogtreecommitdiff
path: root/Messages
Commit message (Collapse)AuthorAge
* split msg into linesGravatar Joey Hess2018-02-19
| | | | | | msg is what would be output to stderr, so has some layout and formatting, which is perhaps not ideal, but let's at least avoid it containing line breaks.
* fix buildGravatar Joey Hess2018-02-19
|
* send stderr to json when --json-error-messages enabledGravatar Joey Hess2018-02-19
|
* always include error-messages field when --json-error-messagesGravatar Joey Hess2018-02-19
| | | | | | | | | Always include error-messages field, even if empty, to make the json be self-documenting. This was a design requirement for --json-error-messages. This commit was supported by the NSF-funded DataLad project.
* fix --json-progress --json to be same as --json --json-progressGravatar Joey Hess2018-02-19
| | | | | | | Fix behavior of --json-progress followed by --json, in which the latter option disabled the former. This commit was supported by the NSF-funded DataLad project.
* --json: multi-line notesGravatar Joey Hess2018-02-16
| | | | | | | | | | | --json: When there are multiple lines of notes about a file, make the note field multiline, rather than the old behavior of only including the last line. Using newlines in the note is perhaps not ideal, but upgrading it to an array in this case would be an annoying inconsistency to need to deal with. This commit was sponsored by Ole-Morten Duesund on Patreon.
* Added INFO to external special remote protocol.Gravatar Joey Hess2018-02-06
| | | | | | | It's left up to the special remote to detect when git-annex is new enough to support the message; an old git-annex will blow up. This commit was supported by the NSF-funded DataLad project.
* Display progress meter when uploading a key without size informationGravatar Joey Hess2017-11-14
| | | | | | Getting the size by statting the content file. This commit was supported by the NSF-funded DataLad project.
* typoGravatar Joey Hess2017-05-19
|
* fix build failure w/o concurrent-outputGravatar Joey Hess2017-05-19
| | | | | Also removed warning on old version, since the autobuilder highlights warnings as errors and this is too minor for that.
* avoid warning when the concurrent-output flag is disabledGravatar Joey Hess2017-05-16
|
* clear regions before ssh promptGravatar Joey Hess2017-05-16
| | | | | | | | | | | When built with concurrent-output 1.9, ssh password prompts will no longer interfere with the -J display. To avoid flicker, only done when ssh actually does need to prompt; ssh is first run in batch mode and if that succeeds the connection is up and no need to clear regions. This commit was supported by the NSF-funded DataLad project.
* adeiu, MissingHGravatar Joey Hess2017-05-16
| | | | | | | | | | | | | | | | Removed dependency on MissingH, instead depending on the split library. After laying groundwork for this since 2015, it was mostly straightforward. Added Utility.Tuple and Utility.Split. Eyeballed System.Path.WildMatch while implementing the same thing. Since MissingH's progress meter display was being used, I re-implemented my own. Bonus: Now progress is displayed for transfers of files of unknown size. This commit was sponsored by Shane-o on Patreon.
* Ssh password prompting improved when using -JGravatar Joey Hess2017-05-11
| | | | | | | | | | | | | When ssh connection caching is enabled (and when GIT_ANNEX_USE_GIT_SSH is not set), only one ssh password prompt will be made per host, and only one ssh password prompt will be made at a time. This also fixes a race in prepSocket's stale ssh connection stopping when run with -J. It was possible for one thread to start a cached ssh connection, and another thread to immediately stop it, resulting in excess connections being made. This commit was supported by the NSF-funded DataLad project.
* factor non-type stuff out of KeyGravatar Joey Hess2017-02-24
|
* add missing case for unknown size with normal outputGravatar Joey Hess2016-10-05
| | | | This was lost in previous change, causing a crash in that case.
* Make --json-progress output be shown even when the size of a object is not ↵Gravatar Joey Hess2016-09-29
| | | | known.
* Add "total-size" field to --json-progress output.Gravatar Joey Hess2016-09-29
|
* drop incremental json object display; clean up codeGravatar Joey Hess2016-09-09
| | | | | | | | | | | | | This gets rid of quite a lot of ugly hacks around json generation. I doubt that any real-world json parsers can parse incomplete objects, so while it's not as nice to need to wait for the complete object, especially for commands like `git annex info` that take a while, it doesn't seem worth the added complexity. This also causes the order of fields within the json objects to be reordered. Since any real json parser shouldn't care, the only possible problem would be with ad-hoc parsers of the old json output.
* refactorGravatar Joey Hess2016-09-09
|
* make --json-progress work for url downloadsGravatar Joey Hess2016-09-09
|
* make --json-progress update meter when getting from git remote with rsyncGravatar Joey Hess2016-09-09
|
* better locking for json with -JGravatar Joey Hess2016-09-09
| | | | | | | Avoid threads emitting json at the same time and scrambling, which was still possible even with the buffering, just less likely. Converted json IO actions to JSONChunk data too.
* addurl, get: Added --json-progress option, which adds progress objects to ↵Gravatar Joey Hess2016-09-09
| | | | | | | the json output. This doesn't work right when used with -J yet, and there is some really ugly hand-crafting of part of the json output.
* Remove key:null from git-annex add --json output.Gravatar Joey Hess2016-09-09
|
* make maybeShowJSON also add to the bufferGravatar Joey Hess2016-09-09
|
* buffer json output until done when in concurrent modeGravatar Joey Hess2016-09-09
|
* disentangle concurrency and message typeGravatar Joey Hess2016-09-09
| | | | | | | | This makes -Jn work with --json and --quiet, where before setting -Jn disabled those options. Concurrent json output is currently a mess though since threads output chunks over top of one-another.
* still update othermeter when not displaying progress at consoleGravatar Joey Hess2016-09-08
| | | | | See no reason not to do this; the othermeter will be updating a transfer info file or the like.
* Rate limit console progress display updates to 10 per second. Was updating ↵Gravatar Joey Hess2016-09-08
| | | | as frequently as changes were reported, up to hundreds of times per second, which used unncessary bandwidth when running git-annex over ssh etc.
* avoid build warnings when building w/o concurrent-outputGravatar Joey Hess2016-09-06
|
* fix build with old ghcGravatar Joey Hess2016-08-08
|
* avoid using Strings for JSON output; keep it ByteString throughoutGravatar Joey Hess2016-07-26
|
* improved use of Aeson for JSONActionItemGravatar Joey Hess2016-07-26
|
* Removed dependency on json library; all JSON is now handled by aeson.Gravatar Joey Hess2016-07-26
| | | | | I've eyeballed all --json commands, and the only difference should be that some fields are re-ordered.
* aeson parser for --json output linesGravatar Joey Hess2016-07-26
|
* allow using Aeson for streaming JSON outputGravatar Joey Hess2016-07-26
| | | | | | | Keeping Text.JSON use for now, because it seems a better fit for most of the commands, which don't use very structured JSON objects, but just output whatever fields suites them. But this lets Aeson be used when a more structured data type is available to serialize to JSON.
* improve json when showStart' is given only a keyGravatar Joey Hess2016-03-06
| | | | | | Before, the json contained file:key; change that to key: If a file and a key are given, inclue both file: and key:
* fix build w/o concurrent-outputGravatar Joey Hess2016-02-15
|
* quiet warning on windowsGravatar Joey Hess2016-02-15
|
* Work around problem with concurrent-output when in a non-unicode locale by ↵Gravatar Joey Hess2016-02-14
| | | | | | | | | | | | avoiding use of it in such a locale. Instead -J will behave as if it was built without concurrent-output support in this situation. Ie, it will be mostly quiet, except when there's an error. Note that it's not a problem for a filename to contain invalid utf-8 when in a utf-8 locale. That is handled ok by concurrent-output. It's only displaying unicode characters in a non-unicode locale that doesn't work.
* avoid spawning file size polling thread when not in -J modeGravatar Joey Hess2015-11-16
|
* Display progress meter in -J mode when downloading from the web.Gravatar Joey Hess2015-11-16
| | | | | Including in addurl, and get --from web, but also in S3 and External special remotes when a web url is known for content in those remotes.
* fix build warning when built w/o concurrent-outputGravatar Joey Hess2015-11-10
|
* Concurrent progress bars are now displayed when using -J with a command that ↵Gravatar Joey Hess2015-11-06
| | | | moves file contents around.
* don't display console regions untill there is output in themGravatar Joey Hess2015-11-05
|
* join back threads before ending concurrent output so display worksGravatar Joey Hess2015-11-05
| | | | | I didn't really want to put allowConcurrentOutput in CmdLine.Action, but there were dep loops and that was the best place available.
* don't display blank regions once doneGravatar Joey Hess2015-11-04
|
* remove some debug printsGravatar Joey Hess2015-11-04
|
* arrange for regional output manager to run when -J is enabledGravatar Joey Hess2015-11-04
| | | | | | | | | | Commands that want to use it have to run their seek action inside allowConcurrentOutput. Which seems reasonable; perhaps some future command will want to support the -J flag but not use regions. The region state moved from Annex to MessageState. This makes sense organizationally, and note that some uses of onLocal use a different Annex state, but pass the MessageState into it, which is what is needed.