Well, this is a short note to myself so the next time I want to create a branch of a new project, I won't need to search through the Internet.
Before doing
$ svn copy http://svn.example.com/repos/calc/trunk \
http://svn.example.com/repos/calc/branches/my-calc-branch \
-m "Creating a private branch of /calc/trunk."
http://svn.example.com/repos/calc/branches/my-calc-branch \
-m "Creating a private branch of /calc/trunk."
to make a new branch of a new project (which don't have any branches yet), I'll need to do
svn mkdir http://svn.example.com/repos/calc/branches \
-m "make the branches directory to hold all the branches"
-m "make the branches directory to hold all the branches"
first.
Or I'll get an error message like
svn: Path 'branches' not present
The reason is, like the error message said, there is no directory "branches" in the repo, and svn copy, like the "cp" command, won't make a directory if it's not there. It will assume I made a typo. A safe guard. And I need to explicitly create the directory.
No comments:
Post a Comment