Skip to content

Bug: impossible to switch back to the trunk after switching to any branch (branches are on second level subfolders) #195

@nick-kolesnikov

Description

@nick-kolesnikov
  • VSCode Version: 1.20.1
  • OS Version: Windows 10 x64
  • Extension Version: 1.21.2
  • System Language: English
  • SVN Version: 1.9.7

Issue

In case of custom svn folders layout (branches are on second level subfolders) on attempt to switch back to the trunk after switching to any branch the error throwing: Path 'c:\projects\test-project' does not share common version control ancestry with the requested switch location.

Steps to Reproduce

  1. Create subfolder "test" in "branches" folder
  2. Add some branches to branches/test
  3. Add "svn.layout.branches": "branches/test" to the VSCode settings
  4. Switch to any branch
  5. Try to switch back to the trunk

SVN Output

[test-project]$ svn stat --xml --no-ignore --ignore-externals
[test-project]$ svn info --xml
[test-project]$ svn log -r BASE:HEAD -q --xml
[test-project]$ svn ls https://svn.company.local/svn/testProject/trunk --depth empty
[test-project]$ svn ls https://svn.company.local/svn/testProject/branches/ProcessingEngine
[test-project]$ svn ls https://svn.company.local/svn/testProject/tags
[test-project]$ svn switch https://svn.company.local/svn/testProject/branches/ProcessingEngine/2.0
[test-project]$ svn stat --xml --no-ignore --ignore-externals
[test-project]$ svn info --xml
[test-project]$ svn log -r BASE:HEAD -q --xml
[test-project]$ svn ls https://svn.company.local/svn/testProject/trunk --depth empty
[test-project]$ svn ls https://svn.company.local/svn/testProject/branches/ProcessingEngine
[test-project]$ svn ls https://svn.company.local/svn/testProject/tags
[test-project]$ svn switch https://svn.company.local/svn/testProject/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://svn.company.local/svn/testProject/trunk' shares no common ancestry with 'C:\projects\test-project'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions