@@ -28,19 +28,6 @@ interface Command {
2828
2929const Commands : Command [ ] = [ ] ;
3030
31- const IgnoreOptions : any [ ] = [
32- {
33- name : 'ignore' ,
34- type : 'recursive' ,
35- flag : '-R'
36- } ,
37- {
38- name : 'ignore' ,
39- type : 'non-recursive' ,
40- flag : ''
41- }
42- ]
43-
4431function command ( commandId : string , options : CommandOptions = { } ) : Function {
4532 return ( target : any , key : string , descriptor : any ) => {
4633 if ( ! ( typeof descriptor . value === "function" ) ) {
@@ -51,16 +38,6 @@ function command(commandId: string, options: CommandOptions = {}): Function {
5138 } ;
5239}
5340
54- async function askForFilesAndDirectories ( ) {
55- return await window
56- . showInputBox ( {
57- value : "" ,
58- placeHolder : "Files" ,
59- prompt : "Enter a space separated list of the files/directories" ,
60- ignoreFocusOut : true
61- } ) ;
62- }
63-
6441class CreateBranchItem implements QuickPickItem {
6542 constructor ( private commands : SvnCommands ) { }
6643
@@ -105,55 +82,6 @@ class SwitchBranchItem implements QuickPickItem {
10582 }
10683}
10784
108- // class PropSetItem implements QuickPickItem {
109- // constructor(private name: string, private flag: string){}
110-
111- // get label(): string {
112- // return this.name;
113- // }
114-
115- // get description(): string {
116- // return '';
117- // }
118-
119- // async run(repository: Repository): Promise<void> {
120- // const files = await window
121- // .showInputBox({
122- // value: "",
123- // placeHolder: "Files",
124- // prompt: "Enter a space separated list of the files/directories",
125- // ignoreFocusOut: true
126- // });
127-
128- // if (!files) {
129- // return;
130- // }
131-
132- // await repository.propset(this.name, files);
133- // }
134- // }
135- class IgnorePropItem implements QuickPickItem {
136- constructor ( private name : string , private type :string , private flag : string ) { }
137-
138- get label ( ) : string {
139- return this . type ;
140- }
141-
142- get description ( ) : string {
143- return '' ;
144- }
145-
146- async run ( repository : Repository ) : Promise < void > {
147- const files = await askForFilesAndDirectories ( ) ;
148-
149- if ( ! files ) {
150- return ;
151- }
152-
153- repository . propset ( this . name , this . flag , files ) ;
154- }
155- }
156-
15785export class SvnCommands {
15886 private commands : any [ ] = [ ] ;
15987
@@ -436,19 +364,6 @@ export class SvnCommands {
436364 window . showErrorMessage ( "Unable to patch" ) ;
437365 }
438366 }
439-
440- @command ( "svn.propset:ignore" , { repository : true } )
441- async propsetIgnore ( repository : Repository ) {
442- const placeHolder = "recursive or non-recursive?" ;
443- const picks = IgnoreOptions . map ( item => new IgnorePropItem ( item . name , item . type , item . flag ) ) ;
444- const choice = await window . showQuickPick ( picks , { placeHolder } ) ;
445-
446- if ( ! choice ) {
447- return ;
448- }
449-
450- await choice . run ( repository ) ;
451- }
452367
453368 private runByRepository < T > (
454369 resource : Uri ,
0 commit comments