The following patch sent by Sebastian Fischer <mail@sebfisch.de> updated issue issue2311 with
status=resolved;resolvedin=2.10.0 HEAD
* resolve issue2311: posthook for 'get' should run in created repo
Ignore-this: e340bfcfac76da2afe9c919b25c219e7
I have added a function `getPosthookDir` to `Darcs.UI.RunCommand` that
computes a working dir for posthooks based on the current directory
based on the name of the command and the directory in which the
command is run.
For most commands the previous behavior is retained. For the `get`
command, the newly created repository is used as working dir for
posthooks.
To avoid code duplication, I have exported `makeRepoName` from
`Darcs.UI.Commands.Get` and used it in the function `getPosthookDir`
to compute the name that darcs will use for the newly created
repository.
The newly added tests for issue2311 (which were previously failing)
now pass.
|