SVN pre-commit hooks with perl tests
london.pm.org at paulm.com
Wed Jan 11 18:50:58 GMT 2006
Je 2006-01-11 18:36:47 +0000, jesse skribis:
> 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
My terminology was sloppy, yes. What I mean is what you might intuitively
expect: the root of the to-be-checked-in project.
> Maybe the right thing is to do a checkout into a sandbox?
I hope not.
> at that point, do you even _have_ the new content?
Paul Makepeace .............................. http://paulm.com/inchoate/
"What is a bag of puppies? The moon rising over the mountain."
More information about the london.pm