@@ -133,7 +133,7 @@ export class Svn {
133133 this . version = options . version ;
134134 }
135135
136- private log ( output : string ) : void {
136+ private logOutput ( output : string ) : void {
137137 this . _onOutput . emit ( "log" , output ) ;
138138 }
139139
@@ -144,7 +144,7 @@ export class Svn {
144144 }
145145
146146 if ( options . log !== false ) {
147- this . log (
147+ this . logOutput (
148148 `[${ this . lastCwd . split ( / [ \\ \/ ] + / ) . pop ( ) } ]$ svn ${ args . join ( " " ) } \n`
149149 ) ;
150150 }
@@ -180,7 +180,7 @@ export class Svn {
180180 stdout = iconv . decode ( stdout , encoding ) ;
181181
182182 if ( options . log !== false && stderr . length > 0 ) {
183- this . log ( `${ stderr } \n` ) ;
183+ this . logOutput ( `${ stderr } \n` ) ;
184184 }
185185
186186 return { exitCode, stdout, stderr } ;
@@ -310,4 +310,8 @@ export class Svn {
310310 resolve ( file : string , action : string ) {
311311 return this . exec ( "" , [ "resolve" , "--accept" , action , file ] ) ;
312312 }
313+
314+ log ( rootPath : string , length : string ) {
315+ return this . exec ( rootPath , [ "log" , "--limit" , length ] ) ;
316+ }
313317}
0 commit comments