Winston Smith <smith_winston_6079_at_hotmail.com> writes:
> I am trying to pass down the paths that are affected by a commit down
> to the commit hooks. My question is how can I detect these paths? I
> have tried to do so when the editor is driven, but functions like
> ra_svn_handle_* would only read the basename of any dir or file
> affected. I have tried to do an svn_path_get_absolute, but this simply
> prepends each path with "/root/" instead of the real path relativ to the
> repos root.
> Suppose I am editing a file x/y relative to the repos root, so during
> driving the editor, I'd like to detect the path x/y in some way. I
> have manages to extract 'y', but not 'x/y'. Initially, I thought the
> editor works like a stack machine, that is, first 'x' gets opened
> through open_dir, then 'y' gets edited through open_file, text_delta,
> close_file, and then 'x' gets closed through close_dir. But the call
> to open_dir never happens. Is there anything I missed out, or can
> anyone suggest an easier way to do that? Thanks.
I'm not sure what you are trying to do. ra_svn_handle_* are part of
the svn:// protocol, they don't have much to do with the commit hooks.
Commit hooks can already see which paths are affected, the pre-commit
hook looks at the transaction and the post-commit hook looks at the
svn_path_get_absolute gives you a path in the working copy, not the
Received on 2010-06-10 10:41:15 CEST