diff options
author | Russ Cox <rsc@golang.org> | 2014-02-13 05:06:46 +0000 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-02-13 05:06:46 +0000 |
commit | 662368e6d9316f5f1ca901dc3b0edb6440e61f6f (patch) | |
tree | a67d4d654aa2a7180f3dae781bc2040f00aa6ffa /lib | |
parent | e68acc24ba12bef357e715c08c30f5c982032537 (diff) | |
download | go-662368e6d9316f5f1ca901dc3b0edb6440e61f6f.tar.gz |
codereview: warn about 'hg upload' not uploading
This seems to be what causes the 'chunk mismatch' errors.
I don't know why the server tells us there's nothing to upload,
but at the least we can warn that it did, so that the user
will try again.
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/62840043
Diffstat (limited to 'lib')
-rw-r--r-- | lib/codereview/codereview.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index d171ef3e9..18ecc141d 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -367,6 +367,8 @@ class CL(object): msg = lines[0] patchset = lines[1].strip() patches = [x.split(" ", 1) for x in lines[2:]] + else: + print >>sys.stderr, "Server says there is nothing to upload (probably wrong):\n" + msg if response_body.startswith("Issue updated.") and quiet: pass else: |