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.
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
Received on 2010-06-10 08:08:51 CEST