Skip to content

Commit 0fda765

Browse files
committed
fixes #131
1 parent 2edbee0 commit 0fda765

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# **v1.13.1**
2+
3+
## Bug Fixes
4+
5+
* @JohnstonCode fixed untracked files showing in changes and unversioned
6+
17
# **v1.13.0**
28

39
## What's New

package.json

+1-1
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.13.0",
5+
"version": "1.13.1",
66
"publisher": "johnstoncode",
77
"engines": {
88
"vscode": "^1.17.0"

src/repository.ts

+15-17
Original file line numberDiff line numberDiff line change
@@ -215,24 +215,22 @@ export class Repository {
215215
external.push(resource);
216216
} else if (status.status === Status.CONFLICTED) {
217217
conflicts.push(resource);
218-
} else {
219-
if (status.status === Status.UNVERSIONED) {
220-
const matches = status.path.match(
221-
/(.+?)\.(mine|working|merge-\w+\.r\d+|r\d+)$/
222-
);
223-
224-
// If file end with (mine, working, merge, etc..) and has file without extension
225-
if (
226-
matches &&
227-
matches[1] &&
228-
statuses.some(s => s.path === matches[1])
229-
) {
230-
return;
231-
} else {
232-
unversioned.push(resource);
233-
}
234-
}
218+
} else if (status.status === Status.UNVERSIONED) {
219+
const matches = status.path.match(
220+
/(.+?)\.(mine|working|merge-\w+\.r\d+|r\d+)$/
221+
);
235222

223+
// If file end with (mine, working, merge, etc..) and has file without extension
224+
if (
225+
matches &&
226+
matches[1] &&
227+
statuses.some(s => s.path === matches[1])
228+
) {
229+
return;
230+
} else {
231+
unversioned.push(resource);
232+
}
233+
} else {
236234
if (!status.changelist) {
237235
changes.push(resource);
238236
} else {

0 commit comments

Comments
 (0)