I’m fairly new to SVN and I have a weird behavior issue.
I’m working in a branch of code and when I commit code, it says it is commiting to: “https://10.1.1.3:8443/svn/ProjectName” and shows the files that have changes made as “branches/branchName/src/fileName.cs”. Works just fine, shows modified content in “c:\projects\ProjectName\branches\branchName\src\fileName.cs”, sends content, done.
Now when I update from the root, it comes back with “Updated c:\Projects\ProjectName\trunk\src\fileName.cs”.
How do I prevent my branch code from getting updated into the trunk? I’m guessing the head is pointing to the wrong place, but like I said, I’m new to this.
Many thanks!
It sounds like your c:\Projects\ProjectName\trunk\src and c:\Projects\ProjectName\branchName\src might actually be pointing to the same repository location.
To check this, right-click on c:\Projects\ProjectName\trunk\src and c:\Projects\ProjectName\branchName\src, choose Properties, go under the Subversion tab, and check the URL.
If they do point to the same repository location, then you’ll need to fix it. One way to fix it is to simply delete everything (after committing any changes, of course) and check it out again. Another fix is to right-click on the directory, choose TortoiseSVN Switch, and enter the correct URL.