svn: Value will not be set unless forced (solved)
I'm trying to retrospectively change the author property of certain revisions in my subversion repository.
I run: Code:
svn propedit -r 185 --revprop svn:author Code:
svn: Value will not be set unless forced |
If you don't already know about them, each svn command has a help page. For 'propedit', use 'svn help propedit'.
As you'll see there, you can force operations using '--force'. Usually if something needs to be forced with svn you should make sure you're doing things the 'right way'. These properties are not revision controlled the way everything else in the repository is. Once you've changed it, the old settings are lost. |
Thanks, for some reason I totally missed seeing that on svn help propedit - either going blind or stupid..
Now I get: Code:
$ svn propedit --force -r 185 --revprop svn:author Code:
#!/bin/sh |
You also have to make sure the script is actually executable. By default, the hook scripts are NOT executable. Just do a 'chmod 755 pre-revprop-change'.
|
it already is - any other ideas?
|
solved! - post-revprop-change was looking for a perl script it didn't have: propchange-email.pl
located this on the filesystem, copied it to my hook scripts directory and edited post-revprop-change to Code:
/home/svn/hooks/propchange-email.pl "$REPOS" "$REV" "$USER" "$PROPNAME" watchers@example.org |
All times are GMT -5. The time now is 10:01 PM. |