mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Harutyunyan" <ar...@mesosphere.io>
Subject Re: Review Request 39410: Added support for github to apply-reviews.py.
Date Tue, 10 Nov 2015 07:48:10 GMT


> On Nov. 9, 2015, 8:11 p.m., Kapil Arya wrote:
> > support/apply-reviews.py, lines 196-197
> > <https://reviews.apache.org/r/39410/diff/13/?file=1119828#file1119828line196>
> >
> >     Can we enhance it as following:
> >     ```
> >     amend=options['no_amend'] ? '' : '-e'
> >     cmd = 'git commit --author \'{author}\' {amend} -am \'{message}\''\
> >             .format(author=quote(data['author']),
> >                     amend=amend,
> >                     message=quote(data['message']))
> >     ```
> >     
> >     With this, we can now get rid of `amend_patch()`. This will speed up the process
since we don't have to call `git commit --amend`. As we know, a call to `git commit --amend`
without any staged file forces a full run of mesos-style.py, which can take several seconds.

TIL Python does not have a ternary operator, but point taken :).


- Artem


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/39410/#review105786
-----------------------------------------------------------


On Nov. 9, 2015, 7:32 a.m., Artem Harutyunyan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/39410/
> -----------------------------------------------------------
> 
> (Updated Nov. 9, 2015, 7:32 a.m.)
> 
> 
> Review request for mesos, Adam B, Joris Van Remoortere, Joseph Wu, Marco Massenzio, and
Vinod Kone.
> 
> 
> Bugs: MESOS-3859
>     https://issues.apache.org/jira/browse/MESOS-3859
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added support for github to apply-reviews.py.
> 
> 
> Diffs
> -----
> 
>   support/apply-reviews.py PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/39410/diff/
> 
> 
> Testing
> -------
> 
> Tested with python 2.7
> 
> 
> Thanks,
> 
> Artem Harutyunyan
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message