Getting error E205009 upon doing SVN copy using URL

681 views
Skip to first unread message

Ranajit Ghosh

unread,
Jun 9, 2021, 6:26:08 AM6/9/21
to us...@subversion.apache.org
Hi,

I'm trying to do a SVN copy using URL with the following syntax:

svn copy <src url> <dst url> -m 'info message'

But I am getting the following error:
svn: E205009: Local, non-commit operations do not take a log message or revision properties.

I couldn't understand the error message. It seems to be contradictory to the functionality svn copy using url provides. The svn copy using url apparently does a remote copy in the repository with a commit.

Could you please shed some light on what the actual issue is? and what would be the solution for this?

P.S: I'm using svn, version 1.8.10 (r1615264) on aix 7.1.


Thanks! 
Ranajit


Thorsten

unread,
Jun 9, 2021, 6:47:28 AM6/9/21
to Ranajit Ghosh, us...@subversion.apache.org
Hello,

My guess is that you are trying to copy from one repository into a
different repository.

But the svn copy <src url> <dst url> -m 'info message' is designed to
copy files in the same repo, as the help states:

URL -> URL:  complete server-side copy;  used to branch and tag

to copy files from one repo into another try downloading them first and
then import them using "svn import".

If you are doing an server side  copy, than your syntax "should" work.


Best regards,

Thorsten

Ranajit Ghosh

unread,
Jun 9, 2021, 7:26:34 AM6/9/21
to Thorsten, us...@subversion.apache.org
Hi, Thanks for your response.

But I'm trying to copy the contents from one directory to another new directory within one repository itself like below:
svn copy <repo_root>/dir/subdir1  <repo_root>/dir/subdir2

The interesting part is that if I omit the -m option, svn automatically opens up the editor and waits for the log message. if I put the message there and close the editor window, it completes the copy operation without any error. It complains if the message text is supplied on the command line with -m option.

Thanks!
Ranajit

Thorsten

unread,
Jun 9, 2021, 7:30:59 AM6/9/21
to Ranajit Ghosh, us...@subversion.apache.org

Hello,

My next guess would be that the -m paramter simply must be in the front.

In my scripts I use

$svn -m "tag erstellen" cp "$repository/branches/v$base_Branch/uls" "$repository/tags/released/v$tag/uls"
and that works fine.

Best regards,
Thorsten

Ranajit Ghosh

unread,
Jun 9, 2021, 7:57:36 AM6/9/21
to Thorsten, us...@subversion.apache.org
Hi, Not much luck! If I put the text in the front, it is not being able to process/recognize a multi word string and throwing error like below:

If I put the below message in the command line 
 svn -m "jira:RTPS-9898 EPC 2021 install"  copy <src> <dst>

giving error:
 Unknown subcommand: 'EPC'.

Maybe you are using a more recent SVN version, where some bugs related to this issue might have been fixed.

Thanks!
Ranajit

Thorsten

unread,
Jun 9, 2021, 8:27:36 AM6/9/21
to Ranajit Ghosh, us...@subversion.apache.org

Hello,

Now thats fairly funny, it seems like your aix shell doesn't treat quotes the same way other unix tools do?

Have you tried using single quotes instead of double quotes?

svn -m 'jira:RTPS-9898 EPC 2021 install'  copy <src> <dst>

Best regards,

Thorsten

Ranajit Ghosh

unread,
Jun 9, 2021, 9:46:09 AM6/9/21
to Thorsten, us...@subversion.apache.org
Yes, I tried with single quote as well. No change.

Thanks!
Ranajit

Mark Phippard

unread,
Jun 9, 2021, 10:02:26 AM6/9/21
to Ranajit Ghosh, Thorsten, us...@subversion.apache.org
On Wed, Jun 9, 2021 at 9:47 AM Ranajit Ghosh
<ranajit....@gmail.com> wrote:
>
> Yes, I tried with single quote as well. No change.

You mentioned you are on AIX .. what shell are you using? Some of
these errors seem like it has to do with how the arguments are being
passed to the svn executable. That said there is nothing obvious in
your example where it seems like your shell would do something
unexpected.

Mark

Ranajit Ghosh

unread,
Jun 9, 2021, 10:08:32 AM6/9/21
to Mark Phippard, Thorsten, us...@subversion.apache.org
It is Bash shell with the following version.

GNU bash, version 4.3.30(1)-release  (powerpc-ibm-aix6.1.0.0)

Thanks!
Ranajit

Nathan Hartman

unread,
Jun 9, 2021, 10:14:54 AM6/9/21
to us...@subversion.apache.org, Ranajit Ghosh
On Wed, Jun 9, 2021 at 10:08 AM Ranajit Ghosh
<ranajit....@gmail.com> wrote:
>
> It is Bash shell with the following version.
>
> GNU bash, version 4.3.30(1)-release (powerpc-ibm-aix6.1.0.0)


What is the URL scheme used with the <src> and <dst> URLs?

(Are they http://, https://, svn://, svn+ssh://, file://, ...)

Nathan

Thorsten

unread,
Jun 9, 2021, 10:17:31 AM6/9/21
to Ranajit Ghosh, us...@subversion.apache.org

Does quoting in general work as expected?

For example if you

touch "hello world" do you end up with one file hello world or 1 file hello and 1 file world?

Ranajit Ghosh

unread,
Jun 9, 2021, 1:17:19 PM6/9/21
to Nathan Hartman, us...@subversion.apache.org
Hi..it's https:// for both urls.

Thanks!

Nathan Hartman

unread,
Jun 9, 2021, 3:21:34 PM6/9/21
to Ranajit Ghosh, us...@subversion.apache.org
On Wed, Jun 9, 2021 at 1:17 PM Ranajit Ghosh <ranajit....@gmail.com> wrote:
Hi..it's https:// for both urls.

Thanks!


Is it possible that locale settings are interfering with the «://» characters between https and the rest of the path?

Have you tried to enclose each entire URL in quotes?

Nathan

Daniel Shahaf

unread,
Jun 9, 2021, 8:27:17 PM6/9/21
to Thorsten, Ranajit Ghosh, us...@subversion.apache.org
Thorsten wrote on Wed, Jun 09, 2021 at 13:30:51 +0200:
> My next guess would be that the -m paramter simply must be in the front.
>

For reference, options and positional arguments can be freely mixed
(except when «--» is used to terminate options).

Daniel Shahaf

unread,
Jun 9, 2021, 8:30:12 PM6/9/21
to Ranajit Ghosh, us...@subversion.apache.org
Ranajit Ghosh wrote on Wed, Jun 09, 2021 at 17:27:20 +0530:
> Hi, Not much luck! If I put the text in the front, it is not being able to
> process/recognize a multi word string and throwing error like below:
>
> If I put the below message in the command line
> svn -m "jira:RTPS-9898 EPC 2021 install" copy <src> <dst>

What's the output of «which svn»?

What's the output of:
.
printf \[%s\]\\n svn -m "jira:RTPS-9898 EPC 2021 install" copy SRC DST
.
?

What's the output of the last command in an interactive /bin/sh session?
Reply all
Reply to author
Forward
0 new messages