This will simplify the writing of hooks, which can simply specify the repository directory (with the scope if needed), usually readily available inside the hook.
As an example, I've modified the trac-post-commit-hook.cmd to use the `repository notify` command and to take advantage of the above feature.