Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29339623: Issue 3681 - Add suport for "Fixes XXXX - ..." commit messages (Closed)

Created:
April 8, 2016, 7:32 p.m. by Vasily Kuznetsov
Modified:
May 18, 2016, 8:39 a.m.
CC:
mathias
Visibility:
Public.

Description

Issue 3681 - Add suport for "Fixes XXXX - ..." commit messages

Patch Set 1 #

Total comments: 12

Patch Set 2 : Split into two hooks to handle the master bookmark, move documentation to README, add tests #

Total comments: 26

Patch Set 3 : Address review comments #

Total comments: 9

Patch Set 4 : Address comments on patch set 3 #

Total comments: 4

Patch Set 5 : Fix the warnings flagged by flake8-abp and the capitalisation of Platform in the config example #

Total comments: 17

Patch Set 6 : Fix Strunk+White violations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -97 lines) Patch
M .sitescripts.example View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A sitescripts/hg/README.md View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
M sitescripts/hg/bin/update_issues.py View 1 2 3 4 5 1 chunk +170 lines, -46 lines 0 comments Download
M sitescripts/hg/template/issue_commit_comment.tmpl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sitescripts/hg/test/update_issues.py View 1 2 3 4 1 chunk +185 lines, -50 lines 0 comments Download

Messages

Total messages: 27
Vasily Kuznetsov
Hi Felix, I thought you would like to review this since you were the author ...
April 8, 2016, 8:43 p.m. (2016-04-08 20:43:53 UTC) #1
Vasily Kuznetsov
It seems that this didn't get sent out on Friday for some reason.
April 10, 2016, 2:31 p.m. (2016-04-10 14:31:35 UTC) #2
Felix Dahlke
On 2016/04/10 14:31:35, Vasily Kuznetsov wrote: > It seems that this didn't get sent out ...
April 11, 2016, 1:44 p.m. (2016-04-11 13:44:48 UTC) #3
kzar
> I'll gladly review it... Yes please Felix, you're much more failure with this code ...
April 18, 2016, 2:48 p.m. (2016-04-18 14:48:30 UTC) #4
kzar
On 2016/04/18 14:48:30, kzar wrote: > > I'll gladly review it... > Yes please Felix, ...
April 18, 2016, 6:47 p.m. (2016-04-18 18:47:38 UTC) #5
Vasily Kuznetsov
Finally, the updated version, where we introduce a second hook to enable the logic related ...
April 24, 2016, 9:49 p.m. (2016-04-24 21:49:51 UTC) #6
Vasily Kuznetsov
Bump.
April 29, 2016, 12:10 p.m. (2016-04-29 12:10:16 UTC) #7
Felix Dahlke
On 2016/04/29 12:10:16, Vasily Kuznetsov wrote: > Bump. Just to be clear: I'm waiting for ...
April 29, 2016, 12:14 p.m. (2016-04-29 12:14:12 UTC) #8
kzar
On 2016/04/29 12:14:12, Felix Dahlke wrote: > On 2016/04/29 12:10:16, Vasily Kuznetsov wrote: > > ...
April 29, 2016, 12:15 p.m. (2016-04-29 12:15:56 UTC) #9
Vasily Kuznetsov
On 2016/04/29 12:15:56, kzar wrote: > On 2016/04/29 12:14:12, Felix Dahlke wrote: > > On ...
April 29, 2016, 12:24 p.m. (2016-04-29 12:24:45 UTC) #10
kzar
> Meanwhile, there's this thing with being affected by this change. I haven't touched it ...
April 29, 2016, 2:05 p.m. (2016-04-29 14:05:44 UTC) #11
kzar
https://codereview.adblockplus.org/29339623/diff/29340805/sitescripts/hg/bin/update_issues.py File sitescripts/hg/bin/update_issues.py (right): https://codereview.adblockplus.org/29339623/diff/29340805/sitescripts/hg/bin/update_issues.py#newcode34 sitescripts/hg/bin/update_issues.py:34: @contextlib.contextmanager I'm learning some new tricks here :) https://codereview.adblockplus.org/29339623/diff/29340805/sitescripts/hg/bin/update_issues.py#newcode40 ...
May 2, 2016, 9:29 a.m. (2016-05-02 09:29:41 UTC) #12
Vasily Kuznetsov
Thanks for the comments, Dave. I pretty much agree with everything. https://codereview.adblockplus.org/29339623/diff/29339624/sitescripts/hg/bin/update_issues.py File sitescripts/hg/bin/update_issues.py (right): ...
May 2, 2016, 4:54 p.m. (2016-05-02 16:54:04 UTC) #13
kzar
https://codereview.adblockplus.org/29339623/diff/29340805/sitescripts/hg/README.md File sitescripts/hg/README.md (right): https://codereview.adblockplus.org/29339623/diff/29340805/sitescripts/hg/README.md#newcode1 sitescripts/hg/README.md:1: # Mercurial hooks On 2016/05/02 16:54:03, Vasily Kuznetsov wrote: ...
May 3, 2016, 6:47 a.m. (2016-05-03 06:47:37 UTC) #14
kzar
https://codereview.adblockplus.org/29339623/diff/29340988/sitescripts/hg/README.md File sitescripts/hg/README.md (right): https://codereview.adblockplus.org/29339623/diff/29340988/sitescripts/hg/README.md#newcode49 sitescripts/hg/README.md:49: platform=Adblock-Plus(-[\d\.]+)?-for-Chrome-Opera-Safari(-next)? Mind making these regexp examples lower case too?
May 3, 2016, 7:28 a.m. (2016-05-03 07:28:23 UTC) #15
Vasily Kuznetsov
I addressed the comments on patch set 3. https://codereview.adblockplus.org/29339623/diff/29340988/.sitescripts.example File .sitescripts.example (right): https://codereview.adblockplus.org/29339623/diff/29340988/.sitescripts.example#newcode159 .sitescripts.example:159: platform=Adblock-Plus(-[\d\.]+)?-for-Chrome-Opera-Safari(-next)? ...
May 3, 2016, 10:11 a.m. (2016-05-03 10:11:03 UTC) #16
kzar
LGTM https://codereview.adblockplus.org/29339623/diff/29340988/sitescripts/hg/bin/update_issues.py File sitescripts/hg/bin/update_issues.py (right): https://codereview.adblockplus.org/29339623/diff/29340988/sitescripts/hg/bin/update_issues.py#newcode51 sitescripts/hg/bin/update_issues.py:51: def _update_issue(ui, config, issue_id, changes, comment=''): On 2016/05/03 ...
May 3, 2016, 10:13 a.m. (2016-05-03 10:13:49 UTC) #17
Vasily Kuznetsov
On 2016/05/03 10:13:49, kzar wrote: > LGTM > > https://codereview.adblockplus.org/29339623/diff/29340988/sitescripts/hg/bin/update_issues.py > File sitescripts/hg/bin/update_issues.py (right): > ...
May 6, 2016, 2:43 p.m. (2016-05-06 14:43:33 UTC) #18
Sebastian Noack
Looks mostly good to me. Just two nits. https://codereview.adblockplus.org/29339623/diff/29340994/.sitescripts.example File .sitescripts.example (right): https://codereview.adblockplus.org/29339623/diff/29340994/.sitescripts.example#newcode159 .sitescripts.example:159: platform=adblock-plus(-[\d\.]+)?-for-chrome-opera-safari(-next)? ...
May 17, 2016, 9:10 a.m. (2016-05-17 09:10:57 UTC) #19
Vasily Kuznetsov
https://codereview.adblockplus.org/29339623/diff/29340994/.sitescripts.example File .sitescripts.example (right): https://codereview.adblockplus.org/29339623/diff/29340994/.sitescripts.example#newcode159 .sitescripts.example:159: platform=adblock-plus(-[\d\.]+)?-for-chrome-opera-safari(-next)? On 2016/05/17 09:10:57, Sebastian Noack wrote: > Nit: ...
May 17, 2016, 9:59 a.m. (2016-05-17 09:59:49 UTC) #20
Sebastian Noack
LGTM
May 17, 2016, 10:27 a.m. (2016-05-17 10:27:37 UTC) #21
Felix Dahlke
Did more of a high-level review, so I didn't notice any issue that matters. Mostly ...
May 17, 2016, 8:12 p.m. (2016-05-17 20:12:07 UTC) #22
Sebastian Noack
https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/bin/update_issues.py File sitescripts/hg/bin/update_issues.py (right): https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/bin/update_issues.py#newcode32 sitescripts/hg/bin/update_issues.py:32: _IssueRef = collections.namedtuple('IssueRef', 'id commits is_fixed') On 2016/05/17 20:12:06, ...
May 17, 2016, 8:39 p.m. (2016-05-17 20:39:40 UTC) #23
Felix Dahlke
Alright, so no comments about code at all, just some wording things. LGTM with those ...
May 17, 2016, 9:24 p.m. (2016-05-17 21:24:08 UTC) #24
Sebastian Noack
https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/bin/update_issues.py File sitescripts/hg/bin/update_issues.py (right): https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/bin/update_issues.py#newcode32 sitescripts/hg/bin/update_issues.py:32: _IssueRef = collections.namedtuple('IssueRef', 'id commits is_fixed') On 2016/05/17 21:24:08, ...
May 18, 2016, 6:52 a.m. (2016-05-18 06:52:40 UTC) #25
Vasily Kuznetsov
https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/README.md File sitescripts/hg/README.md (right): https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/README.md#newcode15 sitescripts/hg/README.md:15: issues in Adblock Plus issue tracker. On 2016/05/17 20:12:05, ...
May 18, 2016, 8:30 a.m. (2016-05-18 08:30:45 UTC) #26
Felix Dahlke
May 18, 2016, 8:37 a.m. (2016-05-18 08:37:23 UTC) #27
Good arguments for the single quotes, but I was OK with it anyway :)

LGTM

https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/READ...
File sitescripts/hg/README.md (right):

https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/READ...
sitescripts/hg/README.md:59: expression of issue's module will be assigned to
the issue when the `master`
On 2016/05/18 08:30:44, Vasily Kuznetsov wrote:
> On 2016/05/17 20:12:06, Felix Dahlke wrote:
> > Nit: "of an"?
> 
> Should not it be "of the issue's module"? We're talking about specific issue
and
> module here, right? I changed it to this.

Acknowledged.

https://codereview.adblockplus.org/29339623/diff/29341464/sitescripts/hg/READ...
sitescripts/hg/README.md:66: those changes in our working copy when we do `hg
checkout master`.
On 2016/05/18 08:30:44, Vasily Kuznetsov wrote:
> On 2016/05/17 20:12:05, Felix Dahlke wrote:
> > Nit: `checkout` is just an alias for `update`, which is the normal command
to
> > use. Technically it's correct though, so I don't mind much.
> 
> I think I wrote it this way thinking about a universal command that git users
> would also understand. Perhaps it doesn't make much sense since we're talking
> about a mercurial hook, but I have a mild preference for this more inclusive
> approach. So I'll leave it as is for now.

Acknowledged.

Powered by Google App Engine
This is Rietveld