svnsync sync error parsing arguments

141 views
Skip to first unread message

Joel Rees

unread,
Feb 21, 2014, 8:59:52 PM2/21/14
to us...@subversion.apache.org
As near as I can tell, I successfully initialized the mirror. That is,
it gave me no error messages the first time I ran the initialization.
(I didn't record all this, sorry.)

When I tried to sync, it gave me this:

-----------------
$svnsync sync https://svn.sourceforge.jp/svnroot/bif-c/
https://svn.code.sf.net/p/bif-c/code --sync-username reiisi
--source-username reiisi
svnsync: より詳しく知りたいときは 'svnsync help' を試してみてください
[For details about svnsync, try svnsync help.]
svnsync: 引数をパースする際にエラーが生じました
[Error parsing arguments. (If the error message was correctly
translated into Japanese.)]
----------------

svin info gives me this much:

------------------
$svnsync info "https://svn.sourceforge.jp/svnroot/bif-c/" --sync-username reiisi
認証領域: <https://svn.sourceforge.jp:443> SourceForge.jp Subversion
'reiisi' のパスワード:
Source URL: https://svn.code.sf.net/p/bif-c/code
Source Repository UUID: 40e07b2b-f213-4bbf-ac1f-8f4869237126
Last Merged Revision: 0
$ svnsync info "https://svn.code.sf.net/p/bif-c/code" --source-username reiisi
Source URL: file:///nfs/classic/sf-svn/b/bi/bif-c
Source Repository UUID: 40e07b2b-f213-4bbf-ac1f-8f4869237126
Last Merged Revision: 15
------------------

I don't have access to set the hooks myself, but the admins at
sourceforge.jp say they set start-commit and re-revprop-change to
allow any member of the project on sourceforge.jp to sync. Which
should be sort-of okay, since the project is strictly intended as a
mirror, and the only members of the project will be mirror
maintainers.

Any suggestions?

--
Joel Rees

Be careful where you see conspiracy.
Look first in your own heart.

Philip Martin

unread,
Feb 24, 2014, 8:14:49 AM2/24/14
to Joel Rees, us...@subversion.apache.org
Joel Rees <joel...@gmail.com> writes:

> $svnsync sync https://svn.sourceforge.jp/svnroot/bif-c/
> https://svn.code.sf.net/p/bif-c/code --sync-username reiisi
> --source-username reiisi
> svnsync: より詳しく知りたいときは 'svnsync help' を試してみてください
> [For details about svnsync, try svnsync help.]
> svnsync: 引数をパースする際にエラーが生じました
> [Error parsing arguments. (If the error message was correctly
> translated into Japanese.)]

Run the command with the environment variable LANGUAGE=C to avoid the
Japanese translation.

One cause of the error is too many arguments:

$ LANGUAGE=ja_JP svnsync sync foo bar baz
svnsync: E205000: より詳しく知りたいときは 'svnsync help' を試してみてください
svnsync: E205000: 引数をパースする際にエラーが生じました

--
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

Philip Martin

unread,
Feb 24, 2014, 8:22:44 AM2/24/14
to Joel Rees, us...@subversion.apache.org
You are probably using Subversion 1.6 which doesn't support the optional
source URL parameter.

Joel Rees

unread,
Feb 24, 2014, 8:49:13 AM2/24/14
to Philip Martin, us...@subversion.apache.org
On Mon, Feb 24, 2014 at 10:14 PM, Philip Martin
<philip...@wandisco.com> wrote:
> Joel Rees <joel...@gmail.com> writes:
>
>> $svnsync sync https://svn.sourceforge.jp/svnroot/bif-c/
>> https://svn.code.sf.net/p/bif-c/code --sync-username reiisi
>> --source-username reiisi
>> svnsync: より詳しく知りたいときは 'svnsync help' を試してみてください
>> [For details about svnsync, try svnsync help.]
>> svnsync: 引数をパースする際にエラーが生じました
>> [Error parsing arguments. (If the error message was correctly
>> translated into Japanese.)]
>
> Run the command with the environment variable LANGUAGE=C to avoid the
> Japanese translation.

Well, yeah.

> One cause of the error is too many arguments:
>
> $ LANGUAGE=ja_JP svnsync sync foo bar baz
> svnsync: E205000: より詳しく知りたいときは 'svnsync help' を試してみてください
> svnsync: E205000: 引数をパースする際にエラーが生じました
>
> You are probably using Subversion 1.6 which doesn't support the optional
> source URL parameter.

That would make sense, except that when I initialized the mirror, I
used the source and sync arguments and it didn't complain..

--
Joel Rees

Philip Martin

unread,
Feb 24, 2014, 9:42:23 AM2/24/14
to Joel Rees, us...@subversion.apache.org
Joel Rees <joel...@gmail.com> writes:

> On Mon, Feb 24, 2014 at 10:14 PM, Philip Martin
>>
>> You are probably using Subversion 1.6 which doesn't support the optional
>> source URL parameter.
>
> That would make sense, except that when I initialized the mirror, I
> used the source and sync arguments and it didn't complain..

Read the help text: in 1.6 init takes a source URL but sync does not.

Joel Rees

unread,
Feb 24, 2014, 5:47:33 PM2/24/14
to Philip Martin, us...@subversion.apache.org
On Mon, Feb 24, 2014 at 11:42 PM, Philip Martin
<philip...@wandisco.com> wrote:
> Joel Rees <joel...@gmail.com> writes:
>
>> On Mon, Feb 24, 2014 at 10:14 PM, Philip Martin
>>>
>>> You are probably using Subversion 1.6 which doesn't support the optional
>>> source URL parameter.
>>
>> That would make sense, except that when I initialized the mirror, I
>> used the source and sync arguments and it didn't complain..
>
> Read the help text: in 1.6 init takes a source URL but sync does not.

You know, I think I actually tried that, but I tried it again just now:

---------------
$ svnsync sync https://svn.sourceforge.jp/svnroot/bif-c/
https://svn.code.sf.net/p/bif-c --username reiisi
svnsync: より詳しく知りたいときは 'svnsync help' を試してみてください
svnsync: 引数をパースする際にエラーが生じました
-------------------

And it says the same thing: For details see svnsync help, and argument
error during parsing.

Come to think of it "pass" would likely not be katakana, so that's
pretty sure to have been meant to be "parse". Yeah,

----------------
$ export LANG=en_US.UTF-8
$ svnsync sync https://svn.sourceforge.jp/svnroot/bif-c/
https://svn.code.sf.net/p/bif-c --username reiisi
svnsync: Try 'svnsync help' for more info
svnsync: Error parsing arguments
----------------
$svnsync --version
svnsync, version 1.6.17 (r1128011)
compiled Oct 4 2013, 03:24:06

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme

$ svnsync --help sync
synchronize (sync): usage: svnsync synchronize DEST_URL

Transfer all pending revisions to the destination from the source
with which it was initialized.

Valid options:
--non-interactive : do no interactive prompting
--no-auth-cache : do not cache authentication tokens
--username ARG : specify a username ARG (deprecated;
see --source-username and --sync-username)
--password ARG : specify a password ARG (deprecated;
see --source-password and --sync-password)
--trust-server-cert : accept unknown SSL server certificates without
prompting (but only with '--non-interactive')
--source-username ARG : connect to source repository with username ARG
--source-password ARG : connect to source repository with password ARG
--sync-username ARG : connect to sync repository with username ARG
--sync-password ARG : connect to sync repository with password ARG
--config-dir ARG : read user configuration files from directory ARG
-q [--quiet] : print as little as possible
---------------------

I wonder whether I can query the server version, but that'll have to
wait until I get back home this evening.

Thorsten Schöning

unread,
Feb 25, 2014, 3:34:42 AM2/25/14
to us...@subversion.apache.org
Guten Tag Joel Rees,
am Montag, 24. Februar 2014 um 23:47 schrieben Sie:

> ---------------
> $ svnsync sync https://svn.sourceforge.jp/svnroot/bif-c/
> https://svn.code.sf.net/p/bif-c --username reiisi
> svnsync: より詳しく知りたいときは 'svnsync help' を試してみてください
> svnsync: 引数をパースする際にエラーが生じました
> -------------------

> And it says the same thing: For details see svnsync help, and argument
> error during parsing.
[...]
> $ svnsync --help sync
> synchronize (sync): usage: svnsync synchronize DEST_URL

Because you provided a source URL again which is not valid for 1.6.x
and the usage clause says, too. Or what am I missing?

> I wonder whether I can query the server version, but that'll have to
> wait until I get back home this evening.

This shouldn't be necessary.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail:Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Joel Rees

unread,
Feb 25, 2014, 9:06:41 AM2/25/14
to us...@subversion.apache.org
On Tue, Feb 25, 2014 at 5:34 PM, Thorsten Schöning
<tscho...@am-soft.de> wrote:
> Guten Tag Joel Rees,
> am Montag, 24. Februar 2014 um 23:47 schrieben Sie:
>
>> ---------------
>> $ svnsync sync https://svn.sourceforge.jp/svnroot/bif-c/
>> https://svn.code.sf.net/p/bif-c --username reiisi
>> svnsync: より詳しく知りたいときは 'svnsync help' を試してみてください
>> svnsync: 引数をパースする際にエラーが生じました
>> -------------------
>
>> And it says the same thing: For details see svnsync help, and argument
>> error during parsing.
> [...]
>> $ svnsync --help sync
>> synchronize (sync): usage: svnsync synchronize DEST_URL
>
> Because you provided a source URL again which is not valid for 1.6.x
> and the usage clause says, too. Or what am I missing?
>
>> I wonder whether I can query the server version, but that'll have to
>> wait until I get back home this evening.
>
> This shouldn't be necessary.

You're right! It's churning away now.

And I see that I was reading the redbook for versions 1.7 and 1.8.

Many thanks!
Reply all
Reply to author
Forward
0 new messages