SVN pre-commit hooks with perl tests
jesse at fsck.com
Wed Jan 11 18:36:47 GMT 2006
On Wed, Jan 11, 2006 at 06:30:47PM +0000, Paul Makepeace wrote:
> Looking into implementing pre-commit hook tests in SVN to prevent
> check-ins when a subset of tests fail. One problem that's come up is
> that sometimes it's useful to know the working directory, e.g. to load
> files. SVN's pre-commit template says the working dir is undefined.
> Has a) anyone done this (didn't find any examples online) b) know how
> to get the user's CWD?
What does "the user's cwd" mean when you're doing a commit via HTTP or
SSH? Maybe the right thing is to do a checkout into a sandbox? Though
at that point, do you even _have_ the new content?
> Paul Makepeace .............................. http://paulm.com/inchoate/
> "What is bait? The contents of my bowels."
> -- http://paulm.com/toys/surrealism/
More information about the london.pm