1 patch for repository /home/sebfisch/Code/Haskell/darcs/screened:
Sat Mar 9 21:22:19 CET 2013 Sebastian Fischer <mail@sebfisch.de>
* resolve issue2312: posthooks for 'record' and 'amend-record' should receive DARCS_PATCHES
I have extended the 'record' and 'amend-record' commands to supply the
environment variable DARCS_PATCHES to posthooks.
The contents of DARCS_PATCHES is computed and provided by a new
function `Darcs.UI.Commands.Util.setChangesEnvAfter` that is used to
wrap the 'record' and 'amend-record' commands.
This function reads the repository before and after the executed
command. It uses the existing function
`Darcs.Patch.Depends.findCommonWithThem` to compute the changes made
by the command and `Darcs.UI.Commands.setEnvDarcsPatches` to provide
them to posthooks.
I compute the changes using `readRepo` twice - once before and once
after a 'record' or 'amend-record'. Is this ok regarding efficiency?
Is there a better way to retrieve the necessary descriptions of the
changes made by each command?
Attachments
|