darcs

Issue 2398 --xml is incompatible with --interactive

Title --xml is incompatible with --interactive
Priority feature Status given-up
Milestone Resolved in
Superseder Nosy List bfrk
Assigned To
Topics

Created on 2014-05-30.14:31:12 by bfrk, last changed 2020-08-15.19:57:35 by bfrk.

Messages
msg17497 (view) Author: bfrk Date: 2014-05-30.14:31:10
This has probably been the case since the very beginning. I propose to
re-think this choice.

First, using -i and --xml together can make good sense. For instance, I
have often wanted to do "darcs changes -i --xml", so I can view all the
patch meta-data (including the hash), but still one-by-one, i.e.
interactively. This is not possible now and for no good reason I can
think of.

Second, I think that generally options should be either mutually
exclusive (and then darcs should fail with an error message complaining
about conflicting options) or else mutually independent (orthogonal), so
we can freely combine them. This makes the whole user experience more
predictable. Deviating from this principle might be necessary in some
exceptional cases, e.g. for compatibility, so this should be understood
as a guide line, rather than a strict rule. Still, I think it applies in
the case of --xml vs. -i.

Strictly speaking, making --xml and -i respect each other would be an
incompatible UI change, but I guess the number of usages that would
actually break because of this is minimal. Currently, if I specify -i
and --xml together, the --xml option simply gets ignored. (BTW, this
happens even if --interactive is only specified in a defaults file, but
this is a different issue and will be fixed once my new options system
is in effect.) I guess that few applications rely on that behavior, that
is, use -i to cancel a --xml option.

If my proposal for replacing --xml with --json gets accepted
(issue2397), it would make even more sense to mix it with -i: the --json
output could easily be rendered in a properly indented, human readable
fashion.
msg22436 (view) Author: bfrk Date: 2020-08-15.19:57:32
Nowadays plain darcs log also displays the hash, so I no longer feel 
any need to have an interactive xml output.
History
Date User Action Args
2014-05-30 14:31:12bfrkcreate
2020-08-15 19:57:35bfrksetpriority: feature
status: unknown -> given-up
messages: + msg22436