]> Cypherpunks.ru repositories - gostls13.git/commitdiff
codereview: fix hg sync closing of CLs for subrepositories
authorDominik Honnef <dominik.honnef@gmail.com>
Thu, 10 Oct 2013 23:30:47 +0000 (16:30 -0700)
committerRob Pike <r@golang.org>
Thu, 10 Oct 2013 23:30:47 +0000 (16:30 -0700)
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://golang.org/cl/14512045

lib/codereview/codereview.py

index 052e31c26497e49defd73eab235fea564fa17e0a..204e22fa14bea178c21981288464aa0861942514 100644 (file)
@@ -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