简体   繁体   中英

Single file in a working copy (branch) pointing to trunk under TortoiseSVN?

Got a very strange problem.

I've got a working copy which is from a branch. When I commit any changes from this working copy, one single file in the working copy gets committed to the trunk.

If I right-click this single file and click Commit the SVN URL displayed points to the /trunk and not the branch.

How on earth could this happen? I used TortoiseSVN to create the branch in the first place.

How can I fix this?

With Tortoise, creating a branch does not switch your working copy to it - it will remain on the trunk. To switch the working copy, use Switch... from the Tortoise context menu, or check out the branch as a different working copy.

I've managed to fix this by using the SVN switch command on the single file and correctly point it to the branch.

Not sure why this happened, it seems when TortoiseSVN created the branch and switched the working copy it did not switch this one single file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM