diff options
author | Dominik Honnef <dominik.honnef@gmail.com> | 2013-10-10 16:30:47 -0700 |
---|---|---|
committer | Dominik Honnef <dominik.honnef@gmail.com> | 2013-10-10 16:30:47 -0700 |
commit | 74c18c674d91eecd9f25ec75b91ec2a7f486bab6 (patch) | |
tree | 8f0f541eff1ed9ada0a4b3273745d1d4f4ea3cab /lib | |
parent | 3d8f7b96090a3beffd0a99810e3fda8cca35e791 (diff) | |
download | go-74c18c674d91eecd9f25ec75b91ec2a7f486bab6.tar.gz |
codereview: fix hg sync closing of CLs for subrepositories
The regexp for closing CLs that were sent by you but committed by
someone else only matched messages for the main repository,
because of the added &repo=... for subrepositories.
R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/14512045
Committer: Rob Pike <r@golang.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/codereview/codereview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 052e31c26..204e22fa1 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -2402,7 +2402,7 @@ def IsRietveldSubmitted(ui, clname, hex): return False for msg in dict.get("messages", []): text = msg.get("text", "") - m = re.match('\*\*\* Submitted as [^*]*?([0-9a-f]+) \*\*\*', text) + m = re.match('\*\*\* Submitted as [^*]*?r=([0-9a-f]+)[^ ]* \*\*\*', text) if m is not None and len(m.group(1)) >= 8 and hex.startswith(m.group(1)): return True return False |