[darcs-devel] [issue1345] Pluggable suggestions for --ask-deps

Robin Green bugs at darcs.net
Wed Feb 4 14:19:17 UTC 2009


New submission from Robin Green <greenrd at greenrd.org>:

Wish to add two subsidiary options for --ask-deps (i.e. options that are
disallowed when --ask-deps is not enabled):

--suggest-deps would use "plugins" for various file formats (e.g. Haskell source
code, Haskell literate source code, Gitit wiki pages, etc.) to try to
automatically suggest patches that should be depended upon. The suggestion, and
the reasoning behind them, would appear immediately before the corresponding
"depend on this patch" question.

--only-suggestions to *only* ask about the patches that the dependency plugins
suggest (this obviously requires some confidence in the suggester plugins'
correctness and completeness, and might not be appropriate if there is no plugin
for a certain filetype used in the repository - hence this behaviour should be
optional).

Not sure it's possible to do this 100% reliably automatically: A patch might add
something to a long comment that looks like code, but of course because it's
inside a comment, it creates no build dependencies - but that's not obvious just
looking at the patch itself. But if the user is confident that it's going to
work tolerably well, they can just use --ask-deps --suggest-deps
--only-suggestions and then press 'a' to select all.

I intend to implement this in the near future (unless someone else wants to do it).

----------
assignedto: greenrd
messages: 7272
nosy: dmitry.kurochkin, greenrd, kowey, simon, thorkilnaur
priority: feature
status: in-progress
title: Pluggable suggestions for --ask-deps

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1345>
__________________________________


More information about the darcs-devel mailing list