Mac OS X 10.8.2
svn, version 1.6.18 (r1303927)
http://situee.blogspot.com/2013/05/svn-create-and-switch-to-branch.html
I want to work a new svn branch. And try the following comment
svn copy svn://server/path/trunk/project_name svn://server/path/branches/new_branch
But it's not ok. It returns error message:
"svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found"
The command MUST have comment message like this
svn copy svn://server/path/trunk/project_name svn://server/path/branches/new_branch -m "create new branch"
The result is the project is copy to
svn://server/path/branches/new_branch/project_name
The we can go to the working copy and switch to the new branch by
svn switch svn://server/path/branches/new_branch/project_name
Everything is ok. You modification to the old working copy is still there.
The --relocate option of switch causes svn switch to do something different: it updates your working copy to point to the same repository directory, only at a different URL (typically because an administrator has moved the repository to another server, or to another URL on the same server).[1]
[1] http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html
The --relocate option of switch causes svn switch to do something different: it updates your working copy to point to the same repository directory, only at a different URL (typically because an administrator has moved the repository to another server, or to another URL on the same server).[1]
[1] http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html
No comments:
Post a Comment