File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ SvnCommands.prototype.commitWithMessage = async function(repository) {
72
72
let message = repository . inputBox . value ;
73
73
74
74
try {
75
- await this . svn . commit ( message ) ;
75
+ await svn . commit ( message ) ;
76
76
repository . inputBox . value = "" ;
77
77
changesCommitted ( ) ;
78
78
} catch ( error ) {
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ Model.prototype.getOpenRepository = function(path) {
41
41
return undefined ;
42
42
}
43
43
44
+ if ( path instanceof Repository ) {
45
+ return this . openRepositories . filter ( r => r === path ) [ 0 ] ;
46
+ }
47
+
44
48
path = Uri . file ( path ) ;
45
49
46
50
for ( const liveRepository of this . openRepositories ) {
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ function Repository(repository) {
13
13
this . sourceControl . acceptInputCommand = {
14
14
command : "svn.commitWithMessage" ,
15
15
title : "commit" ,
16
- arguments : this . sourceControl
16
+ arguments : [ this ]
17
17
} ;
18
18
this . sourceControl . quickDiffProvider = this ;
19
- this . inputBox = this . sourceControl . inputBox ;
19
+ this . repository . inputBox = this . sourceControl . inputBox ;
20
20
21
21
this . changes = this . sourceControl . createResourceGroup ( "changes" , "Changes" ) ;
22
22
this . notTracked = this . sourceControl . createResourceGroup (
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ function svn(cwd = null) {
9
9
} ) ;
10
10
11
11
this . isSVNAvailable ( )
12
- . then ( ( ) => { } )
13
12
. catch ( ( ) => {
14
13
vscode . window . showErrorMessage (
15
14
"SVN is not avaialbe in your $PATH. svn-scm is unable to run!"
You can’t perform that action at this time.
0 commit comments