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

pre-commit doesn't output errors when moving files

From: Berwyn Hoyt <berwyn_at_brush.co.nz>
Date: 2007-07-18 04:07:41 CEST
The pre-commit script will not output an error on failure when you are moving files.  Client output looks like this:

svn ci -m 'test"
Adding: P:\mpledge\setup\ipstats.py 
Deleting: P:\mpledge\setup\traffic\ipstats.py 
Error: Commit failed (details follow): 
Error: MERGE request failed on '/trunk/setup' 
Error: MERGE of '/trunk/setup': 409 Conflict (https://svn.mpledge.com

I've got the server down to a very simple pre-commit script:
  echo test1
  echo test2 1>&2
  echo "running pre-commit $@" >>/var/log/svn
  exit 1

- The commit succeeds fine if I change the pre-commit script above to exit 0.
- The above script logs a line to /var/log/svn, so I know the script is running fine.
- The problem does not occur if I'm just changing a file, only when I svn mv it (in this case, between directories)
- I'm using https access through apache.  The problem does not occur if I check out the repository using "svn co file://..."
- The server is runing debian sarge with svn (and mod_dav_svn.so) version 1.4.2 (r22196).
- This appears to have similar symptoms to a bug fixed in svn v1.3, but there are no long times involved and it only fails on moved files so it is different. See:

So, in summary, set up an https (may work for http) server and move a file between directories and make sure there's something in it that triggers an error in the pre-commit script.  Can anyone else reproduce this?


Berwyn Hoyt, Senior Hardware Engineer: berwyn@brush.co.nz
Ph: +64 3 359 2101; Mobile: +64 21 045 7830
Brush Technology: www.brush.co.nz

--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.org Received on Thu Jul 19 04:11:43 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.