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

Issue 4814432072892416: Issue 1777 - ensure_dependencies.py fails to detect unknown Git revisions (Closed)

Created:
Jan. 11, 2015, 11:07 p.m. by Wladimir Palant
Modified:
Jan. 12, 2015, 7:04 p.m.
Visibility:
Public.

Description

Issue 1777 - ensure_dependencies.py fails to detect unknown Git revisions

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better solution #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ensure_dependencies.py View 1 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 7
Wladimir Palant
Jan. 11, 2015, 11:07 p.m. (2015-01-11 23:07:14 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/4814432072892416/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/4814432072892416/diff/5629499534213120/ensure_dependencies.py#newcode92 ensure_dependencies.py:92: command = ["git", "rev-list", "--remotes=*", "--max-count=1", rev] Note that ...
Jan. 11, 2015, 11:10 p.m. (2015-01-11 23:10:22 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/4814432072892416/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/4814432072892416/diff/5629499534213120/ensure_dependencies.py#newcode92 ensure_dependencies.py:92: command = ["git", "rev-list", "--remotes=*", "--max-count=1", rev] I noticed ...
Jan. 11, 2015, 11:39 p.m. (2015-01-11 23:39:28 UTC) #3
Sebastian Noack
LGTM
Jan. 12, 2015, 9:31 a.m. (2015-01-12 09:31:19 UTC) #4
mathias
http://codereview.adblockplus.org/4814432072892416/diff/5649050225344512/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/4814432072892416/diff/5649050225344512/ensure_dependencies.py#newcode92 ensure_dependencies.py:92: command = ["git", "rev-parse", "--revs-only", rev + '^{commit}'] What ...
Jan. 12, 2015, 11:51 a.m. (2015-01-12 11:51:11 UTC) #5
Wladimir Palant
http://codereview.adblockplus.org/4814432072892416/diff/5649050225344512/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/4814432072892416/diff/5649050225344512/ensure_dependencies.py#newcode92 ensure_dependencies.py:92: command = ["git", "rev-parse", "--revs-only", rev + '^{commit}'] On ...
Jan. 12, 2015, 12:50 p.m. (2015-01-12 12:50:04 UTC) #6
mathias
Jan. 12, 2015, 3:11 p.m. (2015-01-12 15:11:44 UTC) #7
On 2015/01/12 12:50:04, Wladimir Palant wrote:
>
http://codereview.adblockplus.org/4814432072892416/diff/5649050225344512/ensu...
> File ensure_dependencies.py (right):
> 
>
http://codereview.adblockplus.org/4814432072892416/diff/5649050225344512/ensu...
> ensure_dependencies.py:92: command = ["git", "rev-parse", "--revs-only", rev +
> '^{commit}']
> On 2015/01/12 11:51:11, matze wrote:
> > What about ["git", "rev-parse", "--revs-only", "--verify", rev]?
> 
> I tried it already, and couldn't see any real difference from specifying the
> --verify option - non-existent revisions are still being accepted. Actually, I
> found the hint to specifying the expected type explicitly in the documentation
> for the --verify option.

LGTM,..
... and hank you for the clarification.

Powered by Google App Engine
This is Rietveld