This project has moved. For the latest updates, please go here.
1
Vote

SharpSvn.SvnRepositoryIOException: DAV request failed;

description

Hi All,
I am getting runtime error when try to migrate from SourceSafe to SubVersion using code provided on SourceSafe to SVN Import and Migration Source Code.

Runtime error is mentioned below.

SharpSvn.SvnRepositoryIOException: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent ---> SharpSvn.SvnRepositoryIOException: At least one property change failed; repository is unchanged ---> SharpSvn.SvnRepositoryIOException: Error setting property 'author':
Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook

--- End of inner exception stack trace ---

--- End of inner exception stack trace ---

at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets) in g:\dist\src\sharpsvn\svnclientargs.cpp:line 78

at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error, Object targets) in g:\dist\src\sharpsvn\svnclientargs.cpp:line 42

at SharpSvn.SvnClient.InternalSetRevisionProperty(Uri target, SvnRevision revision, String propertyName, svn_string_t* value, svn_string_t* original_value, SvnSetRevisionPropertyArgs args, AprPool pool) in g:\dist\src\sharpsvn\commands\setrevisionproperty.cpp:line 205

at SharpSvn.SvnClient.SetRevisionProperty(Uri target, SvnRevision revision, String propertyName, String value, SvnSetRevisionPropertyArgs args) in g:\dist\src\sharpsvn\commands\setrevisionproperty.cpp:line 89

at SharpSvn.SvnClient.SetRevisionProperty(Uri target, SvnRevision revision, String propertyName, String value) in g:\dist\src\sharpsvn\commands\setrevisionproperty.cpp:line 40

at Cyotek.SourceSafeSvnMigration.VssMigration.SetRevisionProperties(SvnClient svnClient, SvnCommitResult commitResult, Changeset changeset) in D:\TRANGO\vsstosvn-21953\Cyotek.SourceSafeSvnMigration\VssMigration.cs:line 810
Failed to set Revision Property

Any help on this is highly appreciated !!

Thanks,

KUNJ OJHA

comments

cyotek wrote May 31, 2015 at 9:07 AM

Hello,

Basically, your SVN repository is not configured to allow changes to revision properties.

How you enable this probably differs by server, so you'll probably need to do a search on the name of your server software for hook configuration.

I use Visual SVN Server, and have it configured so that log messages can be edited, but nothing more. The instructions below show how to do this, however the exact sequence will depend on your server software.
  • Open Visual SVN Server Manager
  • Right click your repository and choose Properties from the context menu
  • Click the Hooks tab
  • Look for pre-revision property change hook and double click it
  • This will open a popup window which accepts a standard shell script for configuring the hook
This is the one I use to allow ONLY log message changes:
if "%4" == "svn:log" exit 0
echo Property "%4" cannot be changed >&2
exit 1
If a zero exit code is returned, SVN Server will allow the action, anything else and it won't.

Hope this helps!

Regards;
Richard Moss