Using SVN command-line, how can I create a branch from the URL of my current working copy? (NOT from my local working copy, which may have local changes)
Looking for a direct way, without going through “svn info” to get the URL.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How about this?
svn copy ^/@HEAD <Branch URL>EDIT
As branches, tags, and the trunk are just paths and completely arbitrary in SVN, I don’t think you’ll be able to accomplish what you’re trying to do without getting a little creative (e.g. outside of a built-in SVN command). To accomplish what I think you want to do, you can use a bash script (assuming Mac/Linux):
Usage:
svnbranch.sh newbranch