Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 34542:153e4e05e9b3
extdata: show debug message if external command exits with non-zero status
This isn't fatal because it's quite common for grep to exit with 1. Thanks to
Foozy for spotting this.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Oct 2017 12:21:50 +0100 |
parents | c67db5dc131d |
children | 6fad8059a970 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Sat Sep 30 08:57:50 2017 +0100 +++ b/mercurial/scmutil.py Sun Oct 01 12:21:50 2017 +0100 @@ -1065,6 +1065,10 @@ finally: if proc: proc.communicate() + if proc.returncode != 0: + # not an error so 'cmd | grep' can be empty + repo.ui.debug("extdata command '%s' %s\n" + % (cmd, util.explainexit(proc.returncode)[0])) if src: src.close()