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

[PATCH] Make pre-commit hook have access to lock tokens

From: Chia-liang Kao <clkao_at_clkao.org>
Date: Mon, 28 Jul 2008 08:57:11 -0400

[[[
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 14:57:29 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.