migrate: Fix failure to migrate from URL keys. (Reversion introduced in version 6.20180926)
This commit is contained in:
parent
d73f92d8bc
commit
4431b82bce
5 changed files with 63 additions and 13 deletions
19
doc/todo/do_not_allow_using_stop_in_CommandPerform.mdwn
Normal file
19
doc/todo/do_not_allow_using_stop_in_CommandPerform.mdwn
Normal file
|
@ -0,0 +1,19 @@
|
|||
`stop` does different things depending on the stage of a command that it's
|
||||
used in.
|
||||
|
||||
In CommandStart, it quietly stops any further action.
|
||||
|
||||
In CommandPerform, it causes the command to fail,
|
||||
which looks like "commandname actionitem failed".
|
||||
If no other output is emitted to say why it failed,
|
||||
this is not nice.
|
||||
|
||||
(It can't be used in CommandCleanup.)
|
||||
|
||||
It would be good to get rid of support for running `stop` in
|
||||
CommandPerform. Simply change the type:
|
||||
|
||||
- stop :: Annex (Maybe a)
|
||||
+ stop :: CommandStart
|
||||
|
||||
And follow the compile errors.
|
Loading…
Add table
Add a link
Reference in a new issue