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

Re: Problem with svnsync when the auth directory has been removed

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 20 Aug 2015 17:12:58 +0100

Vincent Lefevre <vincent-svn_at_vinc17.net> writes:

> When the .config/auth directory has been removed (or has never
> existed, e.g. when the mirror repository is accessed from a
> different machine), I get an error:
>
> $ svnsync sync file://$PWD/svn-mpfr
> svnsync: E165001: Revprop change blocked by pre-revprop-change hook
> (exit code 1) with output:
> Only the svnsync user can change revprops
>
> with the pre-revprop-change hook mentioned on:
>
> http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt
>
> I would have expected the username "svnsync" to be remembered.

.subversion/auth is where it is recorded. If you don't have that it is
not remembered.

> There's no documentation at all about the way it is remembered,

It is recorded the same way all other auth credentials are recorded.

> and
> the relation to the .config/auth directory was not obvious: there's
> nothing related to authentication here.

The only slightly tricky thing is that ra_local has some slightly odd
rules about when it gets authentication credentials.

> It seems that the fix is to provide the "--sync-username svnsync"
> option to svnsync, and then this option is no longer needed. Again,
> this is not documented.

It is documented in "svnsync init --help". I've updated the file in
notes to refer to --source-username and --sync-username.

-- 
Philip Martin
WANdisco
Received on 2015-08-20 18:13:22 CEST

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.