Skip to content

Commit

Permalink
Try NOT running ls on hgweb server, see what happens
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed May 28, 2024
1 parent c13c4a7 commit d168872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions backend/LexBoxApi/Services/HgService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public async Task<HttpContent> ExecuteHgRecover(string code, CancellationToken t
return response;
}

public Task<HttpContent> InvalidateDirCache(string code)
public Task InvalidateDirCache(string code)
{
var repoPath = Path.Join(PrefixRepoFilePath(code));
if (Directory.Exists(repoPath))
Expand All @@ -289,8 +289,9 @@ public Task<HttpContent> 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<string> GetTipHash(string code)
Expand Down
2 changes: 1 addition & 1 deletion backend/LexCore/ServiceInterfaces/IHgService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface IHgService
Task<int?> GetLexEntryCount(string code, ProjectType projectType);
Task<string?> GetRepositoryIdentifier(Project project);
Task<HttpContent> ExecuteHgRecover(string code, CancellationToken token);
Task<HttpContent> InvalidateDirCache(string code);
Task InvalidateDirCache(string code);
bool HasAbandonedTransactions(string projectCode);
Task<string> HgCommandHealth();
}

0 comments on commit d168872

Please sign in to comment.