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

Unified Diff: tests/git_common_test.py

Issue 212213004: Make mark-merge-base cap the marked merge base at the real merge-base. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: fix comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « git_common.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/git_common_test.py
diff --git a/tests/git_common_test.py b/tests/git_common_test.py
index 940b56593e0d2900a53942dbcca9e7292c59deeb..39d2ecbc289ea35540fe0444515f8b632a172260 100755
--- a/tests/git_common_test.py
+++ b/tests/git_common_test.py
@@ -436,6 +436,14 @@ class GitMutableStructuredTest(git_test_utils.GitRepoReadWriteTestBase,
self.assertEqual({}, self.repo.run(self.gc.branch_config_map, 'base'))
+ # if it's too old, then it caps at merge-base
+ self.repo.run(self.gc.manual_merge_base, 'branch_K', self.repo['A'])
+
+ self.assertEqual(
+ self.repo['B'],
+ self.repo.run(self.gc.get_or_create_merge_base, 'branch_K', 'branch_G')
+ )
+
def testGetBranchTree(self):
skipped, tree = self.repo.run(self.gc.get_branch_tree)
self.assertEqual(skipped, {'master', 'root_X'})
« no previous file with comments | « git_common.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698