mirror of
https://github.com/golang/go
synced 2024-11-13 15:30:22 -07:00
codereview: explain how to get hgpatch in error message
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5623045
This commit is contained in:
parent
69a5b23dc5
commit
7dca24ee7e
@ -1572,7 +1572,7 @@ def clpatch_or_undo(ui, repo, clname, opts, mode):
|
|||||||
try:
|
try:
|
||||||
cmd = subprocess.Popen(argv, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, close_fds=sys.platform != "win32")
|
cmd = subprocess.Popen(argv, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, close_fds=sys.platform != "win32")
|
||||||
except:
|
except:
|
||||||
return "hgpatch: " + ExceptionDetail()
|
return "hgpatch: " + ExceptionDetail() + "\nInstall hgpatch with:\n$ go get code.google.com/p/go.codereview/cmd/hgpatch\n"
|
||||||
|
|
||||||
out, err = cmd.communicate(patch)
|
out, err = cmd.communicate(patch)
|
||||||
if cmd.returncode != 0 and not opts["ignore_hgpatch_failure"]:
|
if cmd.returncode != 0 and not opts["ignore_hgpatch_failure"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user