@@ -124,7 +124,7 @@ export class Repository {
124124 public statusExternal : IFileStatus [ ] = [ ] ;
125125 private disposables : Disposable [ ] = [ ] ;
126126 public currentBranch = "" ;
127- public newsCommit : number = 0 ;
127+ public newCommit : number = 0 ;
128128
129129 private _onDidChangeRepository = new EventEmitter < Uri > ( ) ;
130130 readonly onDidChangeRepository : Event < Uri > = this . _onDidChangeRepository
@@ -137,9 +137,8 @@ export class Repository {
137137 private _onDidChangeStatus = new EventEmitter < void > ( ) ;
138138 readonly onDidChangeStatus : Event < void > = this . _onDidChangeStatus . event ;
139139
140- private _onDidChangeNewsCommit = new EventEmitter < void > ( ) ;
141- readonly onDidChangeNewsCommit : Event < void > = this . _onDidChangeNewsCommit
142- . event ;
140+ private _onDidChangeNewCommit = new EventEmitter < void > ( ) ;
141+ readonly onDidChangeNewCommit : Event < void > = this . _onDidChangeNewCommit . event ;
143142
144143 private _onRunOperation = new EventEmitter < Operation > ( ) ;
145144 readonly onRunOperation : Event < Operation > = this . _onRunOperation . event ;
@@ -268,12 +267,12 @@ export class Repository {
268267 this . disposables . push ( this . conflicts ) ;
269268
270269 const svnConfig = workspace . getConfiguration ( "svn" ) ;
271-
272- const updateFreqNews = svnConfig . get < number > ( "svn.newsCommits .update" ) ;
273- if ( updateFreqNews ) {
270+
271+ const updateFreqNew = svnConfig . get < number > ( "svn.newCommits .update" ) ;
272+ if ( updateFreqNew ) {
274273 const interval = setInterval ( ( ) => {
275- this . updateNewsCommits ( ) ;
276- } , 1000 * 60 * updateFreqNews ) ;
274+ this . updateNewCommits ( ) ;
275+ } , 1000 * 60 * updateFreqNew ) ;
277276
278277 this . disposables . push (
279278 toDisposable ( ( ) => {
@@ -282,16 +281,16 @@ export class Repository {
282281 ) ;
283282 }
284283
285- this . updateNewsCommits ( ) ;
284+ this . updateNewCommits ( ) ;
286285 this . status ( ) ;
287286 }
288287
289288 @debounce ( 1000 )
290- async updateNewsCommits ( ) {
291- const newsCommit = await this . repository . countNewsCommit ( ) ;
292- if ( newsCommit !== this . newsCommit ) {
293- this . newsCommit = newsCommit ;
294- this . _onDidChangeNewsCommit . fire ( ) ;
289+ async updateNewCommits ( ) {
290+ const newCommits = await this . repository . countNewCommits ( ) ;
291+ if ( newCommits !== this . newCommits ) {
292+ this . newCommits = newCommits ;
293+ this . _onDidChangeNewCommits . fire ( ) ;
295294 }
296295 }
297296
@@ -538,7 +537,7 @@ export class Repository {
538537 async branch ( name : string ) {
539538 return await this . run ( Operation . NewBranch , async ( ) => {
540539 await this . repository . branch ( name ) ;
541- this . updateNewsCommits ( ) ;
540+ this . updateNewCommits ( ) ;
542541 } ) ;
543542 }
544543
0 commit comments