summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-02-13 05:06:46 +0000
committerRuss Cox <rsc@golang.org>2014-02-13 05:06:46 +0000
commit662368e6d9316f5f1ca901dc3b0edb6440e61f6f (patch)
treea67d4d654aa2a7180f3dae781bc2040f00aa6ffa /lib
parente68acc24ba12bef357e715c08c30f5c982032537 (diff)
downloadgo-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.py2
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: