Skip to content

Commit

Permalink
fixed 149
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Feb 10, 2018
1 parent 13a52a5 commit 6c9e3c0
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 64 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# **v1.17.1**

## Bug Fixes

* @JohnstonCode Fixed #149

# **v1.17.0**

## What's New
Expand Down
123 changes: 60 additions & 63 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "svn-scm",
"displayName": "SVN",
"description": "Integrated Subversion source control",
"version": "1.17.0",
"version": "1.17.1",
"publisher": "johnstoncode",
"engines": {
"vscode": "^1.17.0"
Expand All @@ -17,18 +17,9 @@
"bugs": {
"url": "https://github.com/JohnstonCode/svn-scm/issues"
},
"categories": [
"Other",
"SCM Providers"
],
"keywords": [
"multi-root ready",
"scm",
"svn"
],
"activationEvents": [
"*"
],
"categories": ["Other", "SCM Providers"],
"keywords": ["multi-root ready", "scm", "svn"],
"activationEvents": ["*"],
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "tsc -p ./",
Expand Down Expand Up @@ -237,7 +228,8 @@
},
{
"command": "svn.revertSelectedRanges",
"when": "config.svn.enabled && svnOpenRepositoryCount != 0 && svnHasSupportToRegisterDiffCommand == 1"
"when":
"config.svn.enabled && svnOpenRepositoryCount != 0 && svnHasSupportToRegisterDiffCommand == 1"
}
],
"scm/title": [
Expand Down Expand Up @@ -276,67 +268,80 @@
"scm/resourceState/context": [
{
"command": "svn.add",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup == unversioned",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup == unversioned",
"group": "inline"
},
{
"command": "svn.add",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup == unversioned",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup == unversioned",
"group": "1_modification"
},
{
"command": "svn.openFile",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != external",
"group": "navigation"
},
{
"command": "svn.openHEADFile",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "navigation"
},
{
"command": "svn.openChangeBase",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "navigation"
},
{
"command": "svn.openChangeHead",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "navigation"
},
{
"command": "svn.addChangelist",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "inline"
},
{
"command": "svn.addChangelist",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "1_modification"
},
{
"command": "svn.removeChangelist",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != changes && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != changes && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "inline"
},
{
"command": "svn.removeChangelist",
"when": "config.svn.enabled && scmProvider == svn && scmResourceGroup != changes && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"config.svn.enabled && scmProvider == svn && scmResourceGroup != changes && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "1_modification"
},
{
"command": "svn.commit",
"when": "scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "1_modification"
},
{
"command": "svn.revert",
"when": "scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "1_modification"
},
{
"command": "svn.remove",
"when": "scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"when":
"scmProvider == svn && scmResourceGroup != unversioned && scmResourceGroup != external",
"group": "2_modification"
}
],
Expand All @@ -350,22 +355,26 @@
{
"command": "svn.openFile",
"group": "navigation",
"when": "config.svn.enabled && svnOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme != extension && resourceScheme != merge-conflict.conflict-diff"
"when":
"config.svn.enabled && svnOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme != extension && resourceScheme != merge-conflict.conflict-diff"
},
{
"command": "svn.openChangeBase",
"group": "navigation",
"when": "config.svn.enabled && svnOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file"
"when":
"config.svn.enabled && svnOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file"
},
{
"command": "svn.openChangeHead",
"group": "navigation",
"when": "config.svn.enabled && svnOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file"
"when":
"config.svn.enabled && svnOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file"
},
{
"command": "svn.revertSelectedRanges",
"group": "2_svn@3",
"when": "config.svn.enabled && svnOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme != merge-conflict.conflict-diff && && svnHasSupportToRegisterDiffCommand == 1"
"when":
"config.svn.enabled && svnOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme != merge-conflict.conflict-diff && && svnHasSupportToRegisterDiffCommand == 1"
}
]
},
Expand All @@ -384,51 +393,45 @@
},
"svn.decorations.enabled": {
"type": "boolean",
"description": "Controls if SVN contributes colors and badges to the explorer and the open (VSCode >= 1.18 with proposed-api)",
"description":
"Controls if SVN contributes colors and badges to the explorer and the open (VSCode >= 1.18 with proposed-api)",
"default": true
},
"svn.path": {
"type": [
"string",
"null"
],
"type": ["string", "null"],
"description": "Path to the svn executable",
"default": null,
"isExecutable": true
},
"svn.diff.withHead": {
"type": "boolean",
"description": "Show diff changes using latest revision in the repository. Set false to use latest revision in local folder",
"description":
"Show diff changes using latest revision in the repository. Set false to use latest revision in local folder",
"default": true
},
"svn.layout.trunk": {
"type": [
"string",
"null"
],
"description": "Relative path for 'trunk' in SVN URL, 'null' to disable. (Ex.: 'trunk', 'main')",
"type": ["string", "null"],
"description":
"Relative path for 'trunk' in SVN URL, 'null' to disable. (Ex.: 'trunk', 'main')",
"default": "trunk"
},
"svn.layout.branches": {
"type": [
"string",
"null"
],
"description": "Relative path for 'branches' in SVN URL, 'null' to disable. (Ex.: 'branches', 'versions')",
"type": ["string", "null"],
"description":
"Relative path for 'branches' in SVN URL, 'null' to disable. (Ex.: 'branches', 'versions')",
"default": "branches"
},
"svn.layout.tags": {
"type": [
"string",
"null"
],
"description": "Relative path for 'tags' in SVN URL, 'null' to disable. (Ex.: 'tags', 'stamps')",
"type": ["string", "null"],
"description":
"Relative path for 'tags' in SVN URL, 'null' to disable. (Ex.: 'tags', 'stamps')",
"default": "tags"
},
"svn.branch.update": {
"type": "number",
"minimum": 0,
"description": "How frequently (in minutes) to check branch changes. Set to `0` to avoid periodic checks.",
"description":
"How frequently (in minutes) to check branch changes. Set to `0` to avoid periodic checks.",
"default": 5
},
"svn.multipleFolders.enabled": {
Expand All @@ -445,23 +448,17 @@
"svn.multipleFolders.ignore": {
"type": "array",
"description": "Folders to ignore using SVN",
"default": [
"**/.git",
"**/.hg",
"**/vendor",
"**/node_modules"
]
"default": ["**/.git", "**/.hg", "**/vendor", "**/node_modules"]
},
"svn.sourceControl.ignoreOnCommit": {
"type": "array",
"description": "Changelists to ignore on commit",
"default": [
"ignore-on-commit"
]
"default": ["ignore-on-commit"]
},
"svn.sourceControl.showExternal": {
"type": "boolean",
"description": "Allow to show in source control the list the external folders",
"description":
"Allow to show in source control the list the external folders",
"default": false
},
"svn.sourceControl.countExternal": {
Expand Down
6 changes: 5 additions & 1 deletion src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ export class Model implements IDisposable {

if (hint instanceof Uri) {
for (const liveRepository of this.openRepositories) {
if (liveRepository.repository.workspaceRoot.split(path.sep)[0] !== hint.fsPath.split(path.sep)[0]) {
//if on different drive not need to check
if (
liveRepository.repository.workspaceRoot.split(path.sep)[0] !==
hint.fsPath.split(path.sep)[0]
) {
return undefined;
}

Expand Down

0 comments on commit 6c9e3c0

Please sign in to comment.