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

RE: Can't edit log message

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2007-02-08 09:42:00 CET

Hi Matt D.,

You wrote:
> si wrote:
>>> "DAV request failed; it's possible that the repository's
>>> pre-revprop-change hook either failed or is non-existant
>>
>> Sorry if this sounds like a stupid question, but you do have
>> the pre-revprop-change hook installed right?
> Sorry but I'm new to Tortoise and SVN in general. I assumed that a
> default install of Subversion would support all of the
> default features
> of Tortoise. I haven't installed any type of hooks. Can logs not be
> modified with Tortoise unless else something has been modified?

This is not a TortoiseSVN problem, but a server side configuration problem.
The default configuration of Subversion is conservative and does not let you
change non versioned properties by default.

Look into the directory where your repository is created. There must be a
subfolder named hooks. Inside this folder you should find more than one
hook. There's one hook called 'pre-revprop-change'. Open this file in a
normal editor and check the hooks return value.

Near the end you should find the following lines:

---SNIP---
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"

if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
if [ "$PROPNAME" = "svn:date" ]; then exit 0; fi
exit 1
---SNIP---

The two lines 'if [ "$PROPNAME" = ... exit 0' allow you to change the
property of that name. In the example above svn:log and svn:date. If the
hook just contains the 'exit 1' line, you are not allowed to change any
property at all.

This info should get you going.

Cheers
- Lübbe

--
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Feb 8 10:03:08 2007

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

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