branches in repo subdirectory : bad behaviour
See original GitHub issue- VSCode Version: 1.27.1
- OS Version: Windows 7 x64
- Extension Version: 1.34.0
- System Language: FR-fr
- SVN Version: 1.9.4
Issue
Switching branch from repo sub-directory will fail by checkouting root repo inside sub-directory. (repo-seption)
Steps to Reproduce
- Checkout a repository
- Go in VsCode > Open Folder
- Open one of this repository sub/folder or sub/sub/(etc…)/folder.
bottom left bar seems to understand you are in a repo subfolder, so everything is going well for now
- Switch branch for any new or existing branch
BUG : at this moment, the extension will not swith the repository path from the root but will switch the selected branch root in current subfolder.
Precisions and notes
to make it more visual, let’s imagine “myproject” repo:
http://myurl.com/svn/myproject/
First, you checkout trunk in C:/myproject/
Then let’s say you open C:/myproject/sub/directory/ in Vscode will show at bottom left :
trunk/sub/directory
So everything is perfect so far.
But if you try to switch branch from this sub directory with this extension,
http://myurl.com/svn/myproject/branches/my_branch_a
You will get C:/myproject/sub/directory containing
http://myurl.com/svn/myproject/branches/my_branch_a content, and bottom left bar will incorectly display branches/my_branch_a (should be branches/my_branch_a/sub/directory)
It will so propose you to add tracking for your sub/directory/ files inside your root. 😕
SVN Output
[sim2b-editor]$ svn switch https://dev.artefacts-studio.fr/svn/sim2b/trunk
svn: E195012: Path '.' does not share common version control ancestry with the requested switch location. Use --ignore-ancestry to disable this check.
svn: E195012: 'https://dev.artefacts-studio.fr/svn/sim2b/trunk' shares no common ancestry with 'D:\svn\sim2b\Code\sim2b-editor'
[sim2b-editor]$ svn switch https://dev.artefacts-studio.fr/svn/sim2b/trunk --ignore-ancestry
[sim2b-editor]$ svn stat --xml --no-ignore --ignore-externals
[sim2b-editor]$ svn info --xml Code\Sim2bViewer\Assets\Plugins\Ink
[sim2b-editor]$ svn info --xml Code\Sim2bViewer\Assets\Plugins\JsonDotNet
[sim2b-editor]$ svn info --xml Code\Sim2bViewer\Assets\Plugins\sim2b
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
@kruzyk try changing
svn.layout.branchesRegexNameto2@Guema is this still an issue?