Regarding --remote-repo, I think this was a half-hearted attempt to make it
easier to call commands from outside of darcs: instead of passing options
and regular arguments, you could pass only options. The idea is not bad in
principle, so I would not be against restoring it /if/ it were done
consequently for all commands and in such a way that the command
implementations never needs to look at plain arguments (so we can remove
this parameter). This would require unifying the "hooks" that deal with some
of the plain argument handling (commandExtraArgs, commandExtraArgHelp,
commandArgdefaults) to a procedure that completely handles them. This hook
should also ensure that all paths from the command line are converted to
absolute paths, which means we can also eliminate the two AbsolutePath
arguments, so the actual command implementations would have type
[DarcsFlag]->IO().
2 patches for repository http://darcs.net/screened:
patch fa65e78142a790d445d4465fa509d8f723b1f017
Author: Ben Franksen <ben.franksen@online.de>
Date: Fri Dec 9 19:23:37 CET 2022
* remove the --remote-repo option
Passing remote repos via option instead of plain arguments is redundant,
obscure, and complicates the code.
patch 8c1131290443248d423cabe0b5566f840e6cb3b3
Author: Ben Franksen <ben.franksen@online.de>
Date: Fri Dec 9 22:26:07 CET 2022
* remove the set-default hint
See my comments to issue1898. It is ages ago since --set-default was the
default for push and pull. And we really need a better way to set
preferences such as the defaultrepo.
Attachments
|