jenkinsci/mercurial-plugin — comment on commit 0bb71810410ebf7f22a0b6cee1162fdee9ee4098
File:  line 0
By jglick:

Yes, could probably do that. Would still need to parse the output of `showconfig`, but that seems to be a matter of splitting by newlines (`BufferedReader` perhaps) and grepping for lines beginning with `paths.default=`. Feel free to make such a change; I think `MercurialSCMTest` would cover it.