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

svnlook log doesn't return message

From: <matthieu.mary_at_externe.bnpparibas.com>
Date: Thu, 28 Feb 2008 16:56:39 +0100

Hello,

I have a problem during my commit: I control the log message with a
pre-commit hook . If we don't have a log message, I reject the commit.

When I trying to commit three files (after add the with tortoisesvn add
feature) - admin_habilitations.php, admin_news.php, admin_users.php -
wiith tortoisesvn and with a message, my transaction is reject because
it's say me that it can't find the log message. I check log message with
self made script. my script seems to work fine because on some others
projects, validation seems to works fine.

I run subversion under windows throw Apache web server running as service.
my svnparentpath is: D:\repositories

my hooks are bat files which call php scripts files:

My pre-commit. hook bat file have the following content:

@echo off
"D:\php\php.exe" %~dp0pre-commit.php %1 %2

svnlook command runned by php script file is the following one:
"C:\svn\bin\svnlook.exe" log -t 1-1 D:\repositories/myproject

My apache log file have the following related content:

192.168.10.2 - - [28/Feb/2008:16:09:04 +0100] "OPTIONS
/svn/myproject/trunk HTTP/1.1" 401 401
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "OPTIONS
/svn/myproject/trunk HTTP/1.1" 200 190
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "MKACTIVITY
/svn/myproject/!svn/act/591bdb4d-b58b-2647-b885-12509f36fa77 HTTP/1.1" 201
229
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPFIND
/svn/myproject/trunk HTTP/1.1" 207 442
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPFIND
/svn/myproject/!svn/vcc/default HTTP/1.1" 207 402
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "CHECKOUT
/svn/myproject/!svn/bln/1 HTTP/1.1" 201 243
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPPATCH
/svn/myproject/!svn/wbl/591bdb4d-b58b-2647-b885-12509f36fa77/1 HTTP/1.1"
207 355
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPFIND
/svn/myproject/trunk HTTP/1.1" 207 398
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "CHECKOUT
/svn/myproject/!svn/ver/1/trunk HTTP/1.1" 201 247
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPFIND
/svn/myproject/trunk/admin_habilitations.php HTTP/1.1" 404 238
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPFIND
/svn/myproject/trunk/admin_news.php HTTP/1.1" 404 229
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPFIND
/svn/myproject/trunk/admin_users.php HTTP/1.1" 404 232
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PUT
/svn/myproject/!svn/wrk/591bdb4d-b58b-2647-b885-12509f36fa77/trunk/admin_users.php
HTTP/1.1" 201 253
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPPATCH
/svn/myproject/!svn/wrk/591bdb4d-b58b-2647-b885-12509f36fa77/trunk/admin_users.php
HTTP/1.1" 207 507
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PUT
/svn/myproject/!svn/wrk/591bdb4d-b58b-2647-b885-12509f36fa77/trunk/admin_habilitations.php
HTTP/1.1" 201 259
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PROPPATCH
/svn/myproject/!svn/wrk/591bdb4d-b58b-2647-b885-12509f36fa77/trunk/admin_habilitations.php
HTTP/1.1" 207 513
192.168.10.2 - myaccount [28/Feb/2008:16:09:04 +0100] "PUT
/svn/myproject/!svn/wrk/591bdb4d-b58b-2647-b885-12509f36fa77/trunk/admin_news.php
HTTP/1.1" 201 250
192.168.10.2 - myaccount [28/Feb/2008:16:09:05 +0100] "PROPPATCH
/svn/myproject/!svn/wrk/591bdb4d-b58b-2647-b885-12509f36fa77/trunk/admin_news.php
HTTP/1.1" 207 504
192.168.10.2 - myaccount [28/Feb/2008:16:09:05 +0100] "MERGE
/svn/myproject/trunk HTTP/1.1" 409 333
192.168.10.2 - myaccount [28/Feb/2008:16:09:06 +0100] "DELETE
/svn/myproject/!svn/act/591bdb4d-b58b-2647-b885-12509f36fa77 HTTP/1.1" 204
-

my related error log is the following one:

[Thu Feb 28 16:09:05 2008] [error] [client 192.168.10.2] Could not MERGE
resource "/svn/myproject/!svn/act/591bdb4d-b58b-2647-b885-12509f36fa77"
into "/svn/myproject/trunk". [409, #0]
[Thu Feb 28 16:09:05 2008] [error] [client 192.168.10.2] An error occurred
while committing the transaction. [409, #165001]
[Thu Feb 28 16:09:05 2008] [error] [client 192.168.10.2] 'pre-commit' hook
failed with error output:\n********** You should set a log message (error
code: 3) ********** [409, #165001]

Could you help me please? There something I don't understand, but don't
know why and have look for solution in ressources without succes.

Best regards,

Matthieu

This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
Do not print this message unless it is necessary,
consider the environment.

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.
Received on 2008-02-28 16:57:13 CET

This is an archived mail posted to the Subversion Users mailing list.