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

Issue 4995669794226176: Issue 2539 - Move VCS abstraction part of ensure_dependencies into a separate module (Closed)

Created:
May 18, 2015, 3:23 p.m. by Wladimir Palant
Modified:
April 11, 2017, 3:23 p.m.
Reviewers:
Sebastian Noack
Visibility:
Public.

Description

Issue 2539 - Move VCS abstraction part of ensure_dependencies into a separate module

Patch Set 1 #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -133 lines) Patch
M ensure_dependencies.py View 2 chunks +44 lines, -133 lines 7 comments Download
A script_compiler.py View 1 chunk +40 lines, -0 lines 5 comments Download
A vcs.py View 1 chunk +103 lines, -0 lines 1 comment Download

Messages

Total messages: 4
Wladimir Palant
May 18, 2015, 3:23 p.m. (2015-05-18 15:23:25 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/4995669794226176/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/4995669794226176/diff/5629499534213120/ensure_dependencies.py#newcode239 ensure_dependencies.py:239: parser.add_argument("-s", "--self", metavar="path", type=str, help="Update ensure_dependencies.py at this location") ...
May 18, 2015, 3:27 p.m. (2015-05-18 15:27:00 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/4995669794226176/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/4995669794226176/diff/5629499534213120/ensure_dependencies.py#newcode197 ensure_dependencies.py:197: if self_update and config.get("_self", {}).get("*", "").lower() not in ("", ...
May 19, 2015, 11:52 a.m. (2015-05-19 11:52:41 UTC) #3
Sebastian Noack
May 19, 2015, 1:25 p.m. (2015-05-19 13:25:36 UTC) #4
http://codereview.adblockplus.org/4995669794226176/diff/5629499534213120/ensu...
File ensure_dependencies.py (right):

http://codereview.adblockplus.org/4995669794226176/diff/5629499534213120/ensu...
ensure_dependencies.py:197: if self_update and config.get("_self", {}).get("*",
"").lower() not in ("", "0", "false"):
On 2015/05/19 11:52:41, Sebastian Noack wrote:
> The logic checking the "true"-ness of the value is redundant with the check
for
> SKIP_ENSURE_DEPENENDICES. Moving it to a function?

Just realized that we have a ConfigParser here. So you should just use
getboolean() instead.

Powered by Google App Engine
This is Rietveld