question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

  1. Checkout a repository
  2. Go in VsCode > Open Folder
  3. 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

  1. 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JohnstonCodecommented, Mar 14, 2019

@kruzyk try changing svn.layout.branchesRegexName to 2

0reactions
JohnstonCodecommented, Jul 15, 2019

@Guema is this still an issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Switching branches in repo tree view navigates backwards
Summary Switching branches in the repository files view after having navigated to some arbitrary subfolder will switch the branch, but also.
Read more >
Why isn't Git tracking changes in a subdirectory?
The solution is: renaming the folders. Try switching the folder name to something else. Commit that, then rename it back. If the subfolder...
Read more >
How to organize your git branches - DEV Community ‍ ‍
This will help you find your branches quickly, and also speed up your local repo. Don't stop coding!
Read more >
Directory with .git subdirectory incorrectly added to repository
This same behavior occurs if foo/.git is a real Git repository or if foo contains ... Is there something wrong with better checking...
Read more >
Triggering builds by subfolders - VSoft Technologies Forums
After that I created a configuration specific (Continua) repository where I changed the Relative folder under branch setting to “/Sources/Subdirectory”. I ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found