0

Having a problem with the --message flag to the svn import command. On some servers it works, but on others it gets confused if the message contains spaces, even if you single or double quote the message string thus:

    svn import -m 'New stuff added' https://my-remote-repo/SVN/repo/path

When it fails, I get the error:

    svn: Too many arguments to import command

If I limit the message to one without any spaces, it succeeds everytime. Clearly the problem is with the command failing to recognise a quoted string, but why?

Differences between whether it succeeds or not seems to be down to the particular OS/Shell combination I'm using. The command works on SUSE 10.3 with Ksh Version M 93s+ 2008-01-31, but fails on RHEL 5.6 with Ksh Version AJM 93t+ 2010-02-02. Or perhaps that's a red herring, and the real problem is something else differing between environments?

RCross
  • 449
  • 2
  • 6
  • 19

2 Answers2

0

You can use this syntax in ksh: svn "import -m 'New stuff added' https://my-remote-repo/SVN/repo/path"

-1

I just ran into this problem myself and stumbled upon this question. I didn't find the answer here, but played around with it a little and was able to get it to work.

I was writing my svn import with an asterisk like this:

svn import * svn://www.com... -m 'Initial Import'

When I changed the star to a dot, it worked as expected.

svn import . svn://www.com... -m 'Initial Import'

In your case, you do not seem to be specifying a dot or a star or anything. I'm willing to bet that's why it's getting tripped up.

Quixrick
  • 99
  • 1