Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running svn commands on cmd line

Im trying to run the svn copy command as below.

svn copy https://rb-svn1.in.company.com/svn/Project500/branches \
https://rb-1.in.company.com/svn/cust04/Project500/tags/V1.xx \
-m "Dummy test version V1.xx tag"

But i receive error msg saying that :

svn: Local, non-commit operations do not take a log message or revision properties

Can anyone tell me what is happening here ?

Vatsa

like image 750
srivatsa Avatar asked Dec 02 '10 12:12

srivatsa


People also ask

How do I get to svn from command prompt?

This is done using the 'SVN Checkout' command, followed by the URL of your repository and the location of the repository you just created on your computer. In this example, the command is: svn checkout http://127.0.0.1:9880/New-Project C:\Users\Jessica\Documents\New_Project Hit 'Enter.

What is Subversion command line?

svn is the official command-line client of Subversion. Its functionality is offered via a collection of task-specific subcommands, most of which accept a number of options for fine-grained control of the program's behavior.

Can't use Subversion command line client svn the path to the Subversion executable is?

One way to fix is to edit the PATH environment variable: add the directory that contains svn.exe . You will need to restart Android Studio to make it re-read the PATH variable. Another way is to set the absolute path of svn.exe in the Use command client box in the settings screen that you included in your post.

Can you use svn on Windows?

TortoiseSVN is an Apache™ Subversion (SVN)® client, implemented as a Windows shell extension. It's intuitive and easy to use, since it doesn't require the Subversion command line client to run. And it is free to use, even in a commercial environment. Simply the coolest Interface to (Sub)Version Control!


1 Answers

I too encountered this same error when I was trying to create a tag from the command line. The mistake I made is that I have put a space in the tag name.

A few things you need to keep in mind while creating TAGS in SVN:

  1. A tag is always created from a TRUNK
    (because that is, essentially, a "Working Copy" and post the tag creation a revision number is being created)
  2. You should NEVER put a space between words for a "tagname".
    I also hope you are not putting the backslash "\" while you're typing the full command

The correct syntax like this:
svn copy https://.../trunk https://.../tags/"tagname without spaces" -m "Release 1x.x of YourProductName"

This was my $0.02. I hope you find this helpful:)

like image 172
GordonFreeman Avatar answered Sep 29 '22 07:09

GordonFreeman