|
|
|
@ -1152,18 +1152,7 @@ class TestGitCl(TestCase):
|
|
|
|
|
'refs/remotes/origin/master'],),
|
|
|
|
|
'fake_ancestor_sha'),
|
|
|
|
|
# Calls to verify branch point is ancestor
|
|
|
|
|
] + (cls._gerrit_ensure_auth_calls(issue=issue) +
|
|
|
|
|
cls._git_sanity_checks('fake_ancestor_sha', 'master',
|
|
|
|
|
get_remote_branch=False)) + [
|
|
|
|
|
((['git', 'rev-parse', '--show-cdup'],), ''),
|
|
|
|
|
((['git', 'rev-parse', 'HEAD'],), '12345'),
|
|
|
|
|
|
|
|
|
|
((['git',
|
|
|
|
|
'diff', '--name-status', '--no-renames', '-r',
|
|
|
|
|
'fake_ancestor_sha...', '.'],),
|
|
|
|
|
'M\t.gitignore\n'),
|
|
|
|
|
((['git', 'config', 'branch.master.gerritpatchset'],), CERR1),
|
|
|
|
|
] + ([
|
|
|
|
|
] + cls._gerrit_ensure_auth_calls(issue=issue) + ([
|
|
|
|
|
(('GetChangeDetail', 'chromium-review.googlesource.com',
|
|
|
|
|
'123456', ['CURRENT_REVISION', 'CURRENT_COMMIT']),
|
|
|
|
|
{
|
|
|
|
@ -1172,7 +1161,20 @@ class TestGitCl(TestCase):
|
|
|
|
|
'revisions': { 'sha1_of_current_revision': {
|
|
|
|
|
'commit': {'message': fetched_description},
|
|
|
|
|
}},
|
|
|
|
|
'status': 'NEW',
|
|
|
|
|
}),
|
|
|
|
|
] if issue else [
|
|
|
|
|
]) + cls._git_sanity_checks('fake_ancestor_sha', 'master',
|
|
|
|
|
get_remote_branch=False) + [
|
|
|
|
|
((['git', 'rev-parse', '--show-cdup'],), ''),
|
|
|
|
|
((['git', 'rev-parse', 'HEAD'],), '12345'),
|
|
|
|
|
|
|
|
|
|
((['git',
|
|
|
|
|
'diff', '--name-status', '--no-renames', '-r',
|
|
|
|
|
'fake_ancestor_sha...', '.'],),
|
|
|
|
|
'M\t.gitignore\n'),
|
|
|
|
|
((['git', 'config', 'branch.master.gerritpatchset'],), CERR1),
|
|
|
|
|
] + ([
|
|
|
|
|
] if issue else [
|
|
|
|
|
((['git',
|
|
|
|
|
'log', '--pretty=format:%s%n%n%b', 'fake_ancestor_sha...'],),
|
|
|
|
|