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

Issue 1066923003: Automatically upgrade '_' to '-' when finding the right command. (Closed)

Created:
5 years, 8 months ago by M-A Ruel
Modified:
5 years, 8 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

Automatically upgrade '_' to '-' when finding the right command. This doesn't change the automatic command finder, so it really only helps increase match hit rate in case of low confidence level delta between the 2 top hits. For example, given commands 'set-commit' and 'dcommit', a user typing 'set_commit' would hit: - 'set-commit': 90% - 'dcommit': 70.5% Since subcommand.py uses a 30% minimum confidence level between the two top hit to automatically select a command, it will err on the side of safety and will abort instead of selecting 'set-commit'. This change fixes this specific case but won't trigger on partial matches, e.g. 'set_commi' for 'set-commit'. R=stip@chromium.org BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=294700

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changed variable name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M subcommand.py View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
M-A Ruel
5 years, 8 months ago (2015-04-07 16:23:37 UTC) #1
ghost stip (do not use)
lgtm https://codereview.chromium.org/1066923003/diff/1/subcommand.py File subcommand.py (right): https://codereview.chromium.org/1066923003/diff/1/subcommand.py#newcode131 subcommand.py:131: underscore = name_asked.replace('_', '-') maybe rename to 'underscored' ...
5 years, 8 months ago (2015-04-07 16:50:19 UTC) #2
M-A Ruel
https://codereview.chromium.org/1066923003/diff/1/subcommand.py File subcommand.py (right): https://codereview.chromium.org/1066923003/diff/1/subcommand.py#newcode131 subcommand.py:131: underscore = name_asked.replace('_', '-') On 2015/04/07 16:50:18, stip wrote: ...
5 years, 8 months ago (2015-04-07 17:07:14 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066923003/20001
5 years, 8 months ago (2015-04-07 17:08:58 UTC) #6
commit-bot: I haz the power
Presubmit check for 1066923003-20001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 8 months ago (2015-04-07 17:12:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066923003/20001
5 years, 8 months ago (2015-04-07 17:16:31 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 17:19:39 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=294700

Powered by Google App Engine
This is Rietveld 408576698