-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1504966 - GIT: Rebase at the end of the stack, rather than with e…
…ach commit r=glob! Summary: We're rebasing the current branch on every amend. That's not necessary. Instead we should rebase all branches containing ammended commits after all of the amends. This patch is also working with splits so the block and check is removed. Reviewers: glob, mars Reviewed By: glob Bug #: 1504966 Differential Revision: https://phabricator.services.mozilla.com/D11008
- Loading branch information
Showing
3 changed files
with
228 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import imp | ||
import mock | ||
import os | ||
import pytest | ||
|
||
mozphab = imp.load_source( | ||
"mozphab", os.path.join(os.path.dirname(__file__), os.path.pardir, "moz-phab") | ||
) | ||
|
||
|
||
@pytest.fixture() | ||
@mock.patch("mozphab.Git.git_out") | ||
@mock.patch("mozphab.Git._get_current_head") | ||
@mock.patch("mozphab.Config") | ||
@mock.patch("mozphab.os.path") | ||
@mock.patch("mozphab.which") | ||
@mock.patch("mozphab.Repository._phab_url") | ||
def git( | ||
m_repository_phab_url, | ||
m_which, | ||
m_os_path, | ||
m_config, | ||
m_git_get_current_head, | ||
m_git_git_out, | ||
): | ||
m_os_path.join = os.path.join | ||
m_os_path.exists.return_value = True | ||
m_which.return_value = True | ||
m_os_path.isfile.return_value = False | ||
m_git_get_current_head.return_value = "branch" | ||
m_git_git_out.return_value = ["user.email=email"] | ||
return mozphab.Git("x") |
Oops, something went wrong.