Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Issue 868943002: Convenience git extension for converting a chromium git commit number to a git hash. (Closed)

Created:
5 years, 11 months ago by szager1
Modified:
5 years ago
CC:
chromium-reviews, cmp-cc_chromium.org, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, tfarina, Dirk Pranke
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix grep string for git rev-list #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -0 lines) Patch
A git-crrev-parse View 1 1 chunk +53 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (2 generated)
szager1
5 years, 11 months ago (2015-01-22 23:48:26 UTC) #1
ghost stip (do not use)
lgtm w/ change https://chromiumcodereview.appspot.com/868943002/diff/1/git-crrev-parse File git-crrev-parse (right): https://chromiumcodereview.appspot.com/868943002/diff/1/git-crrev-parse#newcode46 git-crrev-parse:46: git rev-list -n 1 --grep="$commit_pos" "$ref" ...
5 years, 11 months ago (2015-01-23 00:03:27 UTC) #2
szager1
https://chromiumcodereview.appspot.com/868943002/diff/1/git-crrev-parse File git-crrev-parse (right): https://chromiumcodereview.appspot.com/868943002/diff/1/git-crrev-parse#newcode46 git-crrev-parse:46: git rev-list -n 1 --grep="$commit_pos" "$ref" On 2015/01/23 00:03:27, ...
5 years, 11 months ago (2015-01-23 00:53:45 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868943002/20001
5 years, 11 months ago (2015-01-23 00:55:14 UTC) #5
commit-bot: I haz the power
Failed to apply patch for depot_tools/git-crrev-parse: While running svn add depot_tools/git-crrev-parse --force --config-dir /b/infra_internal/commit_queue/subversion_config --non-interactive; ...
5 years, 11 months ago (2015-01-23 00:55:18 UTC) #7
szager1
Committed patchset #2 (id:20001) manually as 293765.
5 years, 11 months ago (2015-01-23 00:56:06 UTC) #8
tfarina
5 years ago (2015-12-03 00:36:51 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/868943002/diff/20001/git-crrev-parse
File git-crrev-parse (right):

https://codereview.chromium.org/868943002/diff/20001/git-crrev-parse#newcode40
git-crrev-parse:40: remote_ref="${ref/refs\/heads/refs\/remotes\/origin}"
For some reason this does not work on my setup.

The error is:

fatal: ambiguous argument 'refs\/remotes\/origin/master': unknown revision or
path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

It is reproducible with just:

$ git crrev-parse -h

I was doing a gn roll (./tools/gn/bin/roll_gn.py) and as the script is making
use of crrev-parse, it was failing and blocking me.

I hacked the depot_tools and changed this line to remote_ref="origin/master" to
get it working.

Do you have any idea why is it failing for me?

Powered by Google App Engine
This is Rietveld 408576698