Skip to content

Commit

Permalink
#173: ignore blackbox log files ending with tilde
Browse files Browse the repository at this point in the history
It seems that python now writes temporary files ending in ~. Ignore these files when determining if a filesystem change is relevant.
  • Loading branch information
incidentist committed Jan 3, 2022
1 parent 18b6ea1 commit 788ac51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repository.ts
Original file line number Diff line number Diff line change
@@ -577,7 +577,7 @@ export class Repository implements IDisposable, QuickDiffProvider {
onWorkspaceRepositoryFileChange,
(uri) =>
!/\/\.hg$/.test(uri.path) &&
!/\/\.hg\/(\w?lock.*|.*\.log([-.]\w+)?)$/.test(uri.path)
!/\/\.hg\/(\w?lock.*|.*\.log([-.]\w+~?)?)$/.test(uri.path)
);
onRelevantRepositoryChange(this.onFSChange, this, this.disposables);

0 comments on commit 788ac51

Please sign in to comment.