[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-20 10:35:18 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:
  #!/bin/sh
  echo test1
  echo test2 1>&2
  echo "running pre-commit $@" >>/var/log/svn
  exit 1

Details:
- 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:
    http://subversion.tigris.org/issues/show_bug.cgi?id=2668

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?

Cheers,
Berwyn
--
--

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: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.org Received on Fri Jul 20 10:34:46 2007

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.