From d16887270c96761359122e4ad0cd05d6a1054c35 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Tue, 28 May 2024 17:22:30 +0700 Subject: [PATCH] Try NOT running ls on hgweb server, see what happens --- backend/LexBoxApi/Services/HgService.cs | 7 ++++--- backend/LexCore/ServiceInterfaces/IHgService.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/LexBoxApi/Services/HgService.cs b/backend/LexBoxApi/Services/HgService.cs index 632d79cd4..41e2cc60c 100644 --- a/backend/LexBoxApi/Services/HgService.cs +++ b/backend/LexBoxApi/Services/HgService.cs @@ -273,7 +273,7 @@ public async Task ExecuteHgRecover(string code, CancellationToken t return response; } - public Task InvalidateDirCache(string code) + public Task InvalidateDirCache(string code) { var repoPath = Path.Join(PrefixRepoFilePath(code)); if (Directory.Exists(repoPath)) @@ -289,8 +289,9 @@ public Task InvalidateDirCache(string code) } catch (Exception) { } } - var result = ExecuteHgCommandServerCommand(code, "invalidatedircache", default); - return result; + return Task.CompletedTask; + // var result = ExecuteHgCommandServerCommand(code, "invalidatedircache", default); + // return result; } public async Task GetTipHash(string code) diff --git a/backend/LexCore/ServiceInterfaces/IHgService.cs b/backend/LexCore/ServiceInterfaces/IHgService.cs index 7b77d747d..9435226d2 100644 --- a/backend/LexCore/ServiceInterfaces/IHgService.cs +++ b/backend/LexCore/ServiceInterfaces/IHgService.cs @@ -19,7 +19,7 @@ public interface IHgService Task GetLexEntryCount(string code, ProjectType projectType); Task GetRepositoryIdentifier(Project project); Task ExecuteHgRecover(string code, CancellationToken token); - Task InvalidateDirCache(string code); + Task InvalidateDirCache(string code); bool HasAbandonedTransactions(string projectCode); Task HgCommandHealth(); }