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

Issue 29400555: Issue 4992 - Adds optional revision arg to generate_static_pages (Closed)

Created:
April 1, 2017, 12:21 p.m. by Jon Sonesen
Modified:
April 24, 2017, 7:15 a.m.
Base URL:
https://hg.adblockplus.org/cms
Visibility:
Public.

Description

Issue 4992 - Adds optional revision arg to generate_static_pages

Patch Set 1 : #

Total comments: 13

Patch Set 2 : add test coverage for static generation without the optional argument '-r/--rev' #

Patch Set 3 : address comments for argparse descriptions #

Total comments: 7

Patch Set 4 : removes duplication in fixtures and addresses arg message changes #

Total comments: 4

Patch Set 5 : fixed redundant sys.argv definition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -12 lines) Patch
M cms/bin/generate_static_pages.py View 1 2 3 4 chunks +12 lines, -9 lines 0 comments Download
M cms/sources.py View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/conftest.py View 1 chunk +5 lines, -0 lines 0 comments Download
M tests/test_page_outputs.py View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download
A tests/test_site/templates/default.tmpl View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 16
Jon Sonesen
April 1, 2017, 12:21 p.m. (2017-04-01 12:21:26 UTC) #1
Jon Sonesen
Here is the functional patch. So far I have tested generating the web.eyeo.com site in ...
April 1, 2017, 12:40 p.m. (2017-04-01 12:40:56 UTC) #2
Vasily Kuznetsov
Hey Jon, Looks good. I think we could make the help messages a bit more ...
April 3, 2017, 9:55 a.m. (2017-04-03 09:55:08 UTC) #3
Jon Sonesen
https://codereview.adblockplus.org/29400555/diff/29400568/cms/sources.py File cms/sources.py (right): https://codereview.adblockplus.org/29400555/diff/29400568/cms/sources.py#newcode211 cms/sources.py:211: def __init__(self, repo, revision): On 2017/04/03 09:55:08, Vasily Kuznetsov ...
April 3, 2017, 10:11 a.m. (2017-04-03 10:11:00 UTC) #4
Sebastian Noack
https://codereview.adblockplus.org/29400555/diff/29400568/cms/sources.py File cms/sources.py (right): https://codereview.adblockplus.org/29400555/diff/29400568/cms/sources.py#newcode211 cms/sources.py:211: def __init__(self, repo, revision): On 2017/04/03 10:10:59, Jon Sonesen ...
April 3, 2017, 10:18 a.m. (2017-04-03 10:18:49 UTC) #5
Vasily Kuznetsov
https://codereview.adblockplus.org/29400555/diff/29400568/cms/sources.py File cms/sources.py (right): https://codereview.adblockplus.org/29400555/diff/29400568/cms/sources.py#newcode211 cms/sources.py:211: def __init__(self, repo, revision): On 2017/04/03 10:18:49, Sebastian Noack ...
April 3, 2017, 10:33 a.m. (2017-04-03 10:33:02 UTC) #6
Jon Sonesen
So then we can leave the revision default in argparse? https://codereview.adblockplus.org/29400555/diff/29400568/cms/bin/generate_static_pages.py File cms/bin/generate_static_pages.py (right): https://codereview.adblockplus.org/29400555/diff/29400568/cms/bin/generate_static_pages.py#newcode147 ...
April 3, 2017, 10:53 a.m. (2017-04-03 10:53:52 UTC) #7
Vasily Kuznetsov
https://codereview.adblockplus.org/29400555/diff/29401580/cms/bin/generate_static_pages.py File cms/bin/generate_static_pages.py (right): https://codereview.adblockplus.org/29400555/diff/29401580/cms/bin/generate_static_pages.py#newcode150 cms/bin/generate_static_pages.py:150: 'see "hg help revisions" for info', default='default') Maybe put ...
April 3, 2017, 1:02 p.m. (2017-04-03 13:02:19 UTC) #8
Vasily Kuznetsov
On 2017/04/03 10:53:52, Jon Sonesen wrote: > So then we can leave the revision default ...
April 3, 2017, 1:02 p.m. (2017-04-03 13:02:47 UTC) #9
Jon Sonesen
https://codereview.adblockplus.org/29400555/diff/29401580/tests/test_page_outputs.py File tests/test_page_outputs.py (right): https://codereview.adblockplus.org/29400555/diff/29401580/tests/test_page_outputs.py#newcode31 tests/test_page_outputs.py:31: sys.argv = ['filler', temp_site, static_out_path+'master', On 2017/04/03 13:02:19, Vasily ...
April 3, 2017, 1:32 p.m. (2017-04-03 13:32:26 UTC) #10
Jon Sonesen
https://codereview.adblockplus.org/29400555/diff/29401580/tests/test_page_outputs.py File tests/test_page_outputs.py (right): https://codereview.adblockplus.org/29400555/diff/29401580/tests/test_page_outputs.py#newcode31 tests/test_page_outputs.py:31: sys.argv = ['filler', temp_site, static_out_path+'master', On 2017/04/03 13:02:19, Vasily ...
April 3, 2017, 1:49 p.m. (2017-04-03 13:49:26 UTC) #11
Jon Sonesen
https://codereview.adblockplus.org/29400555/diff/29401580/cms/bin/generate_static_pages.py File cms/bin/generate_static_pages.py (right): https://codereview.adblockplus.org/29400555/diff/29401580/cms/bin/generate_static_pages.py#newcode150 cms/bin/generate_static_pages.py:150: 'see "hg help revisions" for info', default='default') On 2017/04/03 ...
April 3, 2017, 2:39 p.m. (2017-04-03 14:39:24 UTC) #12
Vasily Kuznetsov
Almost done. Just a small correction to the fixture. https://codereview.adblockplus.org/29400555/diff/29401601/tests/test_page_outputs.py File tests/test_page_outputs.py (right): https://codereview.adblockplus.org/29400555/diff/29401601/tests/test_page_outputs.py#newcode36 tests/test_page_outputs.py:36: ...
April 3, 2017, 3:15 p.m. (2017-04-03 15:15:52 UTC) #13
Jon Sonesen
https://codereview.adblockplus.org/29400555/diff/29401601/tests/test_page_outputs.py File tests/test_page_outputs.py (right): https://codereview.adblockplus.org/29400555/diff/29401601/tests/test_page_outputs.py#newcode36 tests/test_page_outputs.py:36: if revision is None: On 2017/04/03 15:15:52, Vasily Kuznetsov ...
April 4, 2017, 7:01 a.m. (2017-04-04 07:01:23 UTC) #14
Vasily Kuznetsov
LGTM
April 4, 2017, 8:16 a.m. (2017-04-04 08:16:34 UTC) #15
Sebastian Noack
April 4, 2017, 8:45 a.m. (2017-04-04 08:45:21 UTC) #16
LGTM

Powered by Google App Engine
This is Rietveld