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

Re: external argument pass to "pre-commit" trigger...

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-05-21 16:28:39 CEST

martinay <martinay@videotron.ca> writes:

> The goal I wish to achieve :
>
> - using the simple "svn" command line, I want to provide some "external
> arguments" to hook to our BugTracker, so that each time someone checkin
> something, some infos will be added to BugTracker's DB using the the
> "pre-commit" and "post-commit" script ...
>
> What I've discovered :
>
> - It seems that an "svn commit" command didn't provide any "external
> arguments" accessible by the trigger scripts.

No, the pre-commit and post-commit hook scripts receive only fixed
arguments. It's assumed that you can use 'svnlook' or other tools to
examine the stuff that is committed.

What kind of "external arguments" do the hook scripts need to pass to
your bug tracker? If it's metadata about the commit, perhaps it could
come out of a file or directory property?

For example, require that users set a specific 'bug-number' property
when they commit (enforced by the pre-commit hook script). Then the
post-commit hook script can look for the property.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 21 16:30:59 2003

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.