-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return an error if Version() prints to stderr
We call `hg --debug identify` to get the version, but this command can print warnings to stderr. Previously we would read the first line as the version, which would try to parse whatever warning was printed as the version. Instead parse stdout and stderr separately and return an error if anything gets sent to stderr. This should at least alert people to the problem and avoid percolating problems further downstream. Fixes #90.
- Loading branch information
1 parent
df81cd8
commit 0afcb75
Showing
2 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters