summaryrefslogtreecommitdiff
path: root/lib/codereview
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-04-07 13:03:06 -0400
committerRuss Cox <rsc@golang.org>2011-04-07 13:03:06 -0400
commitfd02d034bc7338614f7c2b2f7cc5a60086482b7b (patch)
treedd510657ba3c1bbeec5310483c60773374b1ec49 /lib/codereview
parentf8c269c3fdd13e53955abfb3d3ead1298f41e2de (diff)
downloadgo-fd02d034bc7338614f7c2b2f7cc5a60086482b7b.tar.gz
codereview: drop Author: line on self-clpatch
Right now if a Go developer makes a patch on one machine and then clpatches it onto another machine, changes subsequently made to the description are kept only locally, under the assumption that you are running clpatch because someone else wrote the CL, so you don't have permission to update the web. This change makes clpatch discard the "this was a clpatch" information from the metadata when you clpatch your own CLs from one machine to another. This should eliminate some confusion (for example in CL 4314054) but will no doubt introduce other confusion. R=golang-dev, r2 CC=golang-dev http://codereview.appspot.com/4387041
Diffstat (limited to 'lib/codereview')
-rw-r--r--lib/codereview/codereview.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py
index efb1a6177..bd9a179f8 100644
--- a/lib/codereview/codereview.py
+++ b/lib/codereview/codereview.py
@@ -1787,8 +1787,10 @@ def DownloadCL(ui, repo, clname):
email = match.group(1)
# Print warning if email is not in CONTRIBUTORS file.
- FindContributor(ui, repo, email)
- cl.copied_from = email
+ him = FindContributor(ui, repo, email)
+ me = FindContributor(ui, repo, None)
+ if him != me:
+ cl.copied_from = email
return cl, diffdata, ""