]> Cypherpunks repositories - gostls13.git/commitdiff
codereview: explain how to get hgpatch in error message
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 2 Feb 2012 19:53:28 +0000 (11:53 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 2 Feb 2012 19:53:28 +0000 (11:53 -0800)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5623045

lib/codereview/codereview.py

index fd0b4b4aea52d41d5aaa5742571f912980653a47..7e9f6ca72887d0d0c8e7866057fdaa11211009f3 100644 (file)
@@ -1572,7 +1572,7 @@ def clpatch_or_undo(ui, repo, clname, opts, mode):
        try:
                cmd = subprocess.Popen(argv, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, close_fds=sys.platform != "win32")
        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)
        if cmd.returncode != 0 and not opts["ignore_hgpatch_failure"]: