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

Reporting Errors from hook-scripts

From: Lukas Ruf <ruf_at_rawip.org>
Date: 2004-04-15 16:24:56 CEST

Dear all,

I would like to mention the problem why a transaction failed.

After some fiddling around, I managed to configure
commit-access-control.cfg appropriately such that when called from
pre-commit commit-access-control.pl either allows writing or refuses.

This results in an transaction report as follows:
  !81> svn commit -m write_lock Makefile
  Sending Makefile
  Transmitting file data .svn: Commit failed (details follow):
  svn: MERGE request failed on $DAV_PATH/'linux/2.4/upstream_tags/2.4.25'
  svn:
  'pre-commit' hook failed with error output:

I tried to add to pre-commit:

  if [ "$?" = "1" ]; then
    echo "Commit Access not granted:"
    exit 1
  fi

But without success....

Although only manicure, I would appreciate very much if anybody could
help me to understand how an explanatory message can be given back.

Thanks in advance!

wbr,
Lukas

-- 
Lukas Ruf           | Wanna know anything about raw |
<http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
eMail Style Guide: <http://www.rawip.org/style.html>|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 15 16:25:33 2004

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.