Apparently this patch somehow contains parts of my other patch. sorry
for sending from patch hell. here's the cleaned up version.
2008/7/28 Chia-liang Kao <clkao_at_clkao.org>:
> [[[
> Make pre-commit hook take lock tokens associated with the commit from stdin.
>
> * subversion/include/svn_fs.h
> * subversion/libsvn_fs/access.c
> Impose lock token restriction on newline characters.
> (svn_fs_access_add_lock_token2): New. Like svn_fs_access_add_lock_token but
> takes the path as well.
> (svn_fs_access_get_lock_tokens): New.
>
> * subversion/libsvn_ra_local/ra_plugin.c
> (svn_ra_local__get_commit_editor): Call svn_fs_access_add_lock_token2 instead,
> with the full paths in repository.
>
> * subversion/libsvn_repos/hooks.c
> (_lock_token_content): New, for turning path -> lock token hashs into
> serialized format used in pre-commit hook.
> (svn_repos__hooks_pre_commit): If there are lock tokens, make the stdin of
> the hook script take a series of lock tokens associated with this commit.
>
> * subversion/libsvn_repos/repos.c: Document the new pre-commit feature that
> lock tokens are passed in from stdin.
>
> * subversion/mod_dav_svn/repos.c
> (get_resource): Call svn_fs_access_add_lock_token2 intead.
>
> * subversion/mod_dav_svn/version.c
> (dav_svn__push_locks): Call svn_fs_access_add_lock_token2 instead.
>
> * subversion/svnserve/serve.c
> (add_lock_tokens): Call svn_fs_access_add_lock_token2 instead.
>
> ]]]
>
> Cheers,
> CLK
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-28 15:47:25 CEST