[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

commit: affected paths in commit hooks

From: Winston Smith <smith_winston_6079_at_hotmail.com>
Date: Thu, 10 Jun 2010 17:08:14 +1100

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.

- Winston

                                               
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
Received on 2010-06-10 08:08:51 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.