Dunno if this is really a good idea (it may need to be Grumpy Old
Manned), but I found myself wishing I could do darcs record --ask-deps
--match foo once because the patch I wanted to depend on was really far
This may not be worth the clutter...
In general I think anything that asks about patches should support
matchers etc, so +1 for this proposal from that point of view.
The only problem I see is that normally it's the primary command
("record", "pull" etc) that triggers patch asking, whereas here it's an
option that triggers it. So if another option for record came along that
also asked about patches, then it'd be ambiguous what --match referred
One solution could be to allow to further restrict the candidates during
interactive selection: we add a command key (e.g. 'r' for "restrict
selection") that gives us a one-line prompt where we can enter a match
expression; then the whole undecided part of the selection gets filtered
and we re-enter the manual selection.
Such a feature would be generally useful, I think.
The next question is whether we want to allow to "un-restrict", too. Or
perhaps we want to make it possible to edit the match expression?
Perhaps even one that was given on the command line. Now that I think of
it, I am getting the as yet rather vague idea of merging /all/ matching
options into a generalized match expression. We could then define the
meaning of this language precisely, and the behavior of all matching
options (including combinations) would be defined by translating them to
a generalized match expression. I think this would allow us to close all
the various tickets regarding matching options with one big stroke.