Commit a8378e2f authored by iannucci@chromium.org's avatar iannucci@chromium.org

Explicitly include root() in the git-map call to git-log.

This is in-place of --remotes. With repos like src.git that have alternate roots
this causes git-map to be faster (since it's not trying to display
origin/master).

R=agable@chromium.org
BUG=

Review URL: https://codereview.chromium.org/212183003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@259646 0039d316-1c4b-4281-b951-d872f2087c98
parent 99798246
......@@ -19,7 +19,7 @@ import sys
import subprocess2
from git_common import current_branch, branches, tags, config_list, GIT_EXE
from git_common import branch_config_map
from git_common import branch_config_map, root
from third_party import colorama
......@@ -41,8 +41,8 @@ def main():
map_extra = config_list('depot_tools.map_extra')
fmt = '%C(red bold)%h%x09%Creset%C(green)%d%Creset %C(yellow)%ad%Creset ~ %s'
log_proc = subprocess2.Popen(
[GIT_EXE, 'log', '--graph', '--full-history', '--branches', '--tags',
'--remotes', '--color=always', '--date=short', ('--pretty=format:' + fmt)
[GIT_EXE, 'log', '--graph', '--branches', '--tags', root(),
'--color=always', '--date=short', ('--pretty=format:' + fmt)
] + map_extra + sys.argv[1:],
stdout=subprocess2.PIPE,
shell=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment