You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Vincent Lefevre <vi...@vinc17.net> on 2015/08/20 16:29:40 UTC
Problem with svnsync when the auth directory has been removed
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.
There's no documentation at all about the way it is remembered, and
the relation to the .config/auth directory was not obvious: there's
nothing related to authentication here.
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.
--
Vincent Lefèvre <vi...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Re: Problem with svnsync when the auth directory has been removed
Posted by Philip Martin <ph...@wandisco.com>.
Vincent Lefevre <vi...@vinc17.net> writes:
> On 2015-08-20 17:12:58 +0100, Philip Martin wrote:
>>
>> It is recorded the same way all other auth credentials are recorded.
>
> Except for svn+ssh (which is what I always use) because the
> auth credentials are part of the SSH configuration.
In what way is it different from, say, svn --username?
>> It is documented in "svnsync init --help".
>
> It mentions the option, but doesn't say when it is needed or not.
Agian, the documentation for --sync-username is comparable to the
documentation of --username for svn.
Do you have some suggestion about how the documentation could be
improved?
--
Philip Martin
WANdisco
Re: Problem with svnsync when the auth directory has been removed
Posted by Vincent Lefevre <vi...@vinc17.net>.
On 2015-08-20 17:12:58 +0100, Philip Martin wrote:
> Vincent Lefevre <vi...@vinc17.net> writes:
> > There's no documentation at all about the way it is remembered,
>
> It is recorded the same way all other auth credentials are recorded.
Except for svn+ssh (which is what I always use) because the
auth credentials are part of the SSH configuration.
> > 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".
It mentions the option, but doesn't say when it is needed or not.
--
Vincent Lefèvre <vi...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Re: Problem with svnsync when the auth directory has been removed
Posted by Philip Martin <ph...@wandisco.com>.
Vincent Lefevre <vi...@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
Re: Problem with svnsync when the auth directory has been removed
Posted by Vincent Lefevre <vi...@vinc17.net>.
On 2015-08-20 16:29:40 +0200, Vincent Lefevre wrote:
> When the .config/auth directory has been removed (or has never
I meant .subversion/auth directory.
--
Vincent Lefèvre <vi...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)