Skip to content

Commit 2311229

Browse files
committed
renamed branch update stuff and upped version
1 parent fe8737a commit 2311229

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# **v1.13.0**
2+
3+
## What's New
4+
5+
* @lapo-luchini Added config to set update of branches
6+
17
# **v1.12.0**
28

39
## What's New

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ If you use [TortoiseSVN](https://tortoisesvn.net/), make sure the option
4646
* @edgardmessias
4747
* @csholmq
4848
* @rwatts3
49+
* @lapo-luchini
4950

5051
## Features
5152

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svn-scm",
33
"displayName": "SVN",
44
"description": "Integrated Subversion source control",
5-
"version": "1.12.0",
5+
"version": "1.13.0",
66
"publisher": "johnstoncode",
77
"engines": {
88
"vscode": "^1.17.0"
@@ -346,12 +346,12 @@
346346
"Relative path for 'tags' in SVN URL, 'null' to disable. (Ex.: 'tags', 'stamps')",
347347
"default": "tags"
348348
},
349-
"svn.layout.update": {
349+
"svn.branch.update": {
350350
"type": "number",
351351
"minimum": 0,
352352
"description":
353-
"How frequently (in seconds) to check layout changes. Set to `0` to avoid periodic checks.",
354-
"default": 300
353+
"How frequently (in minutes) to check branch changes. Set to `0` to avoid periodic checks.",
354+
"default": 5
355355
},
356356
"svn.multipleFolders.enabled": {
357357
"type": "boolean",

src/repository.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,15 @@ export class Repository {
147147
this.disposables.push(
148148
toDisposable(() => clearInterval(this.branchesTimer))
149149
);
150+
150151
const svnConfig = workspace.getConfiguration("svn");
151-
const updateFreq = svnConfig.get<number>("layout.update");
152-
if (updateFreq)
152+
const updateFreq = svnConfig.get<number>("branch.update");
153+
154+
if (updateFreq) {
153155
setInterval(() => {
154156
this.updateBranches();
155-
}, 1000 * updateFreq);
157+
}, 1000 * 60 * updateFreq);
158+
}
156159

157160
this.updateBranches();
158161
this.update();

0 commit comments

Comments
 (0)