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

Re: Post-commit hooks - can they tell what's just been committed?

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-10-25 22:55:07 CEST

On Oct 25, 2006, at 15:50, John wrote:

> Is it possible to determine which projects have just been committed to
> SVN when running a post-commit hook (or any other hook)?

The post-commit hook is given the file-system path of the repository
and the revision number that was just committed. You can pass these
to "svnlook changed" or "svnlook dirs-changed" to determine what was
changed in this revision.

As to the other hooks, which ones are you thinking of?

The pre-commit hook runs before the commit is finished, so it
obviously cannot see into the future to see what *has* been
committed. It can, however, see what *is about to be* committed. It
is given the repository path and a transaction ID, which svnlook also
accepts.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 25 22:56:08 2006

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

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