@@ -267,7 +267,7 @@ export class Repository {
267267 this . disposables . push ( this . conflicts ) ;
268268
269269 const svnConfig = workspace . getConfiguration ( "svn" ) ;
270-
270+
271271 const updateFreqNew = svnConfig . get < number > ( "svn.newCommits.update" ) ;
272272 if ( updateFreqNew ) {
273273 const interval = setInterval ( ( ) => {
@@ -287,10 +287,10 @@ export class Repository {
287287
288288 @debounce ( 1000 )
289289 async updateNewCommits ( ) {
290- const newCommits = await this . repository . countNewCommits ( ) ;
291- if ( newCommits !== this . newCommits ) {
292- this . newCommits = newCommits ;
293- this . _onDidChangeNewCommits . fire ( ) ;
290+ const newCommits = await this . repository . countNewCommit ( ) ;
291+ if ( newCommits !== this . newCommit ) {
292+ this . newCommit = newCommits ;
293+ this . _onDidChangeNewCommit . fire ( ) ;
294294 }
295295 }
296296
@@ -544,14 +544,14 @@ export class Repository {
544544 async switchBranch ( name : string ) {
545545 await this . run ( Operation . SwitchBranch , async ( ) => {
546546 await this . repository . switchBranch ( name ) ;
547- this . updateNewsCommits ( ) ;
547+ this . updateNewCommits ( ) ;
548548 } ) ;
549549 }
550550
551551 async updateRevision ( ) : Promise < string > {
552552 return await this . run < string > ( Operation . Update , async ( ) => {
553553 const response = await this . repository . update ( ) ;
554- this . updateNewsCommits ( ) ;
554+ this . updateNewCommits ( ) ;
555555 return response ;
556556 } ) ;
557557 }
0 commit comments