I've been tasked with work on an SVN repository organized as follows:
REPO_ROOT
|-AAA
|-BBB
|-DDD
|-D1
|-D2
|-software
|-branches
|-tags
|-trunk
|-YYY
|-ZZZ
I'm working mostly on ^/DDD/software/trunk
. Now I'd like to create a branch to do some error fixing at ^/DDD/software/branches/error-fixing
.
First I created and committed the ^/DDD/software/branches/error-fixing
directory which did not exist. Then I created a branch of trunk using the command: $ svn copy svn+ssh://xxx@yyy.zzz/REPO_ROOT/DDD/software/trunk svn+ssh://xxx@yyy.zzz/REPO_ROOT/DDD/software/branches/error-fixing -m "Branching from trunk to error-fixing"
.
Now I need to switch to the correct branch. I'm inside trunk
and using the command $ svn switch "^/DDD/software/branches/error-fixing" .
but this fails with svn: E195012: Path '.' does not share common version control ancestry with the requested switch location.
How can I switch to the branch? (First time I'm doing this so I may have done something wrong.)