Re: pre-commit hook script help
Still no luck...
does anyone have a hook script that checks files for properties upon check
in that I can modify?
On 11/9/06, Gavin Lambert <firstname.lastname@example.org> wrote:
> Quoth Phil <mailto:email@example.com>:
> > I need a hook script that will either check to make sure
> > svn:needs-lock is set for all files or a hook script that will set
> > svn:needs-lock for all files. I have the following hook script that
> > works but only for files WITHOUT spaces in the file name...
> > Could someone help me by suggestiong how I can improve the following
> > script or perhaps they have written one that works that I could
> > modify.
> Wild guess (ie. not tested at all): try changing this line:
> > the_files=`$SVNLOOK changed -t "$TXN" "$REPO" | $SED -n
> > 's/^\(A\|.U\)\s*\(.*[^/]\)$/\2/p'`
> to have double-quotes around the \2.
> > echo "File $a_file doesn't have the svn:needs-lock property
> > set." 1>&2 echo "Repository policy dictates that all files
> > must set the svn:needs-lock property." 1>&2 exit 1
> Just out of curiosity: why? Normally needs-lock is only a good idea for
> binary or otherwise unmergable files. Having files locked all the time
> is a major pain in the butt, especially if you have distributed
Received on Fri Nov 10 15:58:01 2006
This is an archived mail posted to the Subversion Users