mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Colorize branch names for rebase-update
To ease the UX of finding the branch name when there's a conflict to resolve. Change-Id: I34d16f2f7bd897a60e96b0391772b5d8985f3cb6 Bug: none Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6278647 Commit-Queue: Josip Sokcevic <sokcevic@chromium.org> Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Auto-Submit: Paul Irish <paulirish@chromium.org> Reviewed-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
from unittest import mock
|
||||
|
||||
DEPOT_TOOLS_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
sys.path.insert(0, DEPOT_TOOLS_ROOT)
|
||||
@@ -67,6 +68,8 @@ class GitRebaseUpdateTest(git_test_utils.GitRepoReadWriteTestBase):
|
||||
self.repo.git('branch', '--set-upstream-to', 'origin/main', 'branch_G')
|
||||
|
||||
self.repo.to_schema_refs += ['origin/main']
|
||||
mock.patch('git_rebase_update.RESET', '').start()
|
||||
mock.patch('git_rebase_update.BRIGHT', '').start()
|
||||
|
||||
def tearDown(self):
|
||||
self.origin.nuke()
|
||||
|
||||
Reference in New Issue
Block a user