[darcs-devel] [issue2311] posthook for 'get' should run in created repo

noreply bugs at darcs.net
Sat Jun 8 20:22:57 UTC 2013


noreply <noreply at darcs.net> added the comment:

The following patch sent by Sebastian Fischer <mail at 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.

----------
resolvedin:  -> 2.10.0 HEAD
status: has-patch -> resolved

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


More information about the darcs-devel mailing list