File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 209209 "category" : " SVN"
210210 },
211211 {
212- "command" : " svn.ignore " ,
212+ "command" : " svn.addFileToIgnore " ,
213213 "title" : " Ignore" ,
214214 "category" : " SVN"
215215 }
308308 "when" : " config.svn.enabled && svnOpenRepositoryCount != 0"
309309 },
310310 {
311- "command" : " svn.ignore " ,
311+ "command" : " svn.addFileToIgnore " ,
312312 "when" : " false"
313313 }
314314 ],
446446 "group" : " 2_modification"
447447 },
448448 {
449- "command" : " svn.ignore " ,
449+ "command" : " svn.addFileToIgnore " ,
450450 "when" :
451451 " config.svn.enabled && scmProvider == svn && scmResourceGroup == unversioned" ,
452452 "group" : " 1_modification"
Original file line number Diff line number Diff line change @@ -1055,8 +1055,8 @@ export class SvnCommands implements IDisposable {
10551055 await repository . finishCheckout ( ) ;
10561056 }
10571057
1058- @command ( "svn.ignore " )
1059- async propset (
1058+ @command ( "svn.addFileToIgnore " )
1059+ async addFileToIgnore (
10601060 ...resourceStates : SourceControlResourceState [ ]
10611061 ) : Promise < void > {
10621062 const selection = this . getResourceStates ( resourceStates ) ;
@@ -1074,7 +1074,7 @@ export class SvnCommands implements IDisposable {
10741074
10751075 for ( const resource of resources ) {
10761076 try {
1077- await repository . ignore ( resource . fsPath ) ;
1077+ await repository . addFileToIgnore ( resource . fsPath ) ;
10781078 } catch ( error ) {
10791079 console . log ( error ) ;
10801080 window . showErrorMessage ( "Unable to set property" ) ;
Original file line number Diff line number Diff line change @@ -696,9 +696,9 @@ export class Repository {
696696 ) ;
697697 }
698698
699- async ignore ( filePath : string ) {
699+ async addFileToIgnore ( filePath : string ) {
700700 return await this . run ( Operation . Ignore , ( ) =>
701- this . repository . ignore ( filePath )
701+ this . repository . addFileToIgnore ( filePath )
702702 ) ;
703703 }
704704
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ export class Repository {
405405 return parseSvnList ( result . stdout ) ;
406406 }
407407
408- async ignore ( filePath : string ) {
408+ async addFileToIgnore ( filePath : string ) {
409409 const fileName = path . basename ( filePath ) ;
410410 const parentDir = path . dirname ( filePath ) ;
411411 let currentIgnore = "" ;
You can’t perform that action at this time.
0 commit comments