JetBrains/intellij-community — pull request #23 by PissedCapslock (2012-10-08 22:13:57+00:00)
Title: IDEA-92541

Pull request for [IDEA-92541](http://youtrack.jetbrains.com/issue/IDEA-92541)

Due to server-side hooks, a push might fail in which case the return value of the `hg push` command might be different from 0 indicating the push failed. See a copy-paste from the command-line:

robins@***$ hg push
pushing to ***
searching for changes
abort: push creates new remote head *** on branch '***'!
(you should pull and merge or use push -f to force)
robins@***:$ echo $?
255

This push request shows an error message when the push failed instead of silently ignoring the error by checking the return value of running the `hg` command.

You might consider to check the other usages of the `HgCommandResultNotifier#process` method to see whether the output can be improved in other parts of the code as well.