Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1101: git webrev for mercurial should ignore config defaults for mercurial commands #1197

wants to merge 1 commit into from
Changes from all commits
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -195,7 +195,7 @@ public void checkout(Branch b, boolean force) throws IOException {

public Optional<Hash> resolve(String ref) throws IOException {
try (var p = capture("hg", "log", "--rev=" + ref, "--template={node}\n")) {
try (var p = capture("hg", "--config", "defaults.log=", "log", "--rev=" + ref, "--template={node}\n")) {
var res = p.await();
if (res.status() == 0 && res.stdout().size() == 1) {
return Optional.of(new Hash(res.stdout().get(0)));