comparison 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
comparison
equal deleted inserted replaced
34541:0a0a72c043ac 34542:153e4e05e9b3
1063 except (error.LookupError, error.RepoLookupError): 1063 except (error.LookupError, error.RepoLookupError):
1064 pass # we ignore data for nodes that don't exist locally 1064 pass # we ignore data for nodes that don't exist locally
1065 finally: 1065 finally:
1066 if proc: 1066 if proc:
1067 proc.communicate() 1067 proc.communicate()
1068 if proc.returncode != 0:
1069 # not an error so 'cmd | grep' can be empty
1070 repo.ui.debug("extdata command '%s' %s\n"
1071 % (cmd, util.explainexit(proc.returncode)[0]))
1068 if src: 1072 if src:
1069 src.close() 1073 src.close()
1070 1074
1071 return data 1075 return data
1072 1076