diff tests/test-rebase-inmemory.t @ 45242:5780a04a1b46

merge stable in default
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 31 Jul 2020 17:09:31 +0530
parents a253ded5b03d 0ea08126a2af
children 1f5c548f15e5
line wrap: on
line diff
--- a/tests/test-rebase-inmemory.t	Thu Jul 30 01:10:10 2020 +0200
+++ b/tests/test-rebase-inmemory.t	Fri Jul 31 17:09:31 2020 +0530
@@ -963,3 +963,21 @@
   |/
   o  0: d20a80d4def3 'base'
   
+
+  $ cd ..
+
+Test (virtual) working directory without changes, created by merge conflict
+resolution. There was a regression where the file was incorrectly detected as
+changed although the file contents were the same as in the parent.
+
+  $ hg init nofilechanges
+  $ cd nofilechanges
+  $ echo a > a; hg add a; hg ci -m a
+  $ echo foo > test; hg add test; hg ci -m b
+  $ hg up 0 -q
+  $ echo bar > test; hg add test; hg ci -m c
+  created new head
+  $ hg rebase -d 2 -d 1 --tool :local
+  rebasing 2:ca2749322ee5 "c" (tip)
+  note: not rebasing 2:ca2749322ee5 "c" (tip), its destination already has all its changes
+  saved backup bundle to $TESTTMP/nofilechanges/.hg/strip-backup/ca2749322ee5-6dc7e94b-rebase.hg