diff tests/test-rebase-dest.t @ 44341:77bb38be00ea

rebase: always be graft-like, not merge-like, also for merges Rebase works by updating to a commit and then grafting changes on top. However, before this patch, it would actually merge in changes instead of grafting them in in some cases. That is, it would use the common ancestor as base instead of using one of the parents. That seems wrong to me, so I'm changing it so `defineparents()` always returns a value for `base`. This fixes the bad behavior in test-rebase-newancestor.t, which was introduced in 65f215ea3e8e (tests: add test for rebasing merges with ancestors of the rebase destination, 2014-11-30). The difference in test-rebase-dest.t is because the files in the tip revision were A, D, E, F before this patch and A, D, F, G after it. I think both files should ideally be there. Differential Revision: https://phab.mercurial-scm.org/D7907
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 16 Jan 2020 00:03:19 -0800
parents 1b5cec8b6a1e
children 05654ea5137c
line wrap: on
line diff
--- a/tests/test-rebase-dest.t	Wed Jan 15 15:51:01 2020 +0100
+++ b/tests/test-rebase-dest.t	Thu Jan 16 00:03:19 2020 -0800
@@ -256,7 +256,7 @@
   > EOS
   rebasing 3:a4256619d830 "B" (B)
   rebasing 6:8e139e245220 "C" (C tip)
-  o    8: 51e2ce92e06a C
+  o    8: d7d1169e9b1c C
   |\
   | o    7: 2ed0c8546285 B
   | |\