Skip to content
Permalink
Browse files
1101: git webrev for mercurial should ignore config defaults for merc…
…urial commands

Reviewed-by: kcr
  • Loading branch information
erikj79 committed Jul 15, 2021
1 parent 68fc5e4 commit 36fdc9bdda4d020254fe371ee03bd6a2425e0a50
Showing with 1 addition and 1 deletion.
  1. +1 −1 vcs/src/main/java/org/openjdk/skara/vcs/hg/HgRepository.java
@@ -195,7 +195,7 @@ public void checkout(Branch b, boolean force) throws IOException {

@Override
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)));

1 comment on commit 36fdc9b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 36fdc9b Jul 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.