diff options
author | Stefan Lay <stefan.lay@sap.com> | 2014-03-27 16:18:42 +0100 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2014-03-27 16:11:15 -0400 |
commit | e56d50a94bfe60663bd589da61e07b9461f2c5f7 (patch) | |
tree | c7fd37a792ee947cefa5288ef79cb7c8c164f2cc /org.eclipse.jgit.test/tst | |
parent | 6995069464b994057b47581092b2db4f20126c08 (diff) | |
download | jgit-e56d50a94bfe60663bd589da61e07b9461f2c5f7.tar.gz jgit-e56d50a94bfe60663bd589da61e07b9461f2c5f7.zip |
Interactive rebase: Fix order of commit messages on squash
Bug: 431214
Change-Id: I295bfdc5751545b046d7fe7efc3f8b39ab4f5415
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Signed-off-by: Robin Rosennberg <robin.rosenberg@dewire.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java index 40eb494045..c5829ec96f 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java @@ -2347,7 +2347,7 @@ public class RebaseCommandTest extends RepositoryTestCase { assertFalse(messageFixupFile.exists()); assertTrue(messageSquashFile.exists()); assertEquals( - "# This is a combination of 2 commits.\n# This is the 2nd commit message:\nupdated file1 on master\nnew line\n# The first commit's message is:\nAdd file2\nnew line", + "# This is a combination of 2 commits.\n# The first commit's message is:\nAdd file2\nnew line\n# This is the 2nd commit message:\nupdated file1 on master\nnew line", commit); try { @@ -2426,7 +2426,7 @@ public class RebaseCommandTest extends RepositoryTestCase { assertFalse(messageFixupFile.exists()); assertTrue(messageSquashFile.exists()); assertEquals( - "# This is a combination of 3 commits.\n# This is the 3rd commit message:\nupdated file1 on master\nnew line\n# This is the 2nd commit message:\nAdd file2\nnew line\n# The first commit's message is:\nAdd file1\nnew line", + "# This is a combination of 3 commits.\n# The first commit's message is:\nAdd file1\nnew line\n# This is the 2nd commit message:\nAdd file2\nnew line\n# This is the 3rd commit message:\nupdated file1 on master\nnew line", commit); try { @@ -2441,7 +2441,7 @@ public class RebaseCommandTest extends RepositoryTestCase { fail(t.getMessage()); } - return "# This is a combination of 3 commits.\n# This is the 3rd commit message:\nupdated file1 on master\nnew line\n# This is the 2nd commit message:\nAdd file2\nnew line\n# The first commit's message is:\nAdd file1\nnew line"; + return "# This is a combination of 3 commits.\n# The first commit's message is:\nAdd file1\nnew line\n# This is the 2nd commit message:\nAdd file2\nnew line\n# This is the 3rd commit message:\nupdated file1 on master\nnew line"; } }).call(); @@ -2454,7 +2454,7 @@ public class RebaseCommandTest extends RepositoryTestCase { ObjectId head2Id = db.resolve(Constants.HEAD + "^1"); RevCommit head1Commit = walk.parseCommit(head2Id); assertEquals( - "updated file1 on master\nnew line\nAdd file2\nnew line\nAdd file1\nnew line", + "Add file1\nnew line\nAdd file2\nnew line\nupdated file1 on master\nnew line", head1Commit.getFullMessage()); } @@ -2508,7 +2508,7 @@ public class RebaseCommandTest extends RepositoryTestCase { assertFalse(messageFixupFile.exists()); assertTrue(messageSquashFile.exists()); assertEquals( - "# This is a combination of 3 commits.\n# This is the 3rd commit message:\nupdated file1 on master\nnew line\n# The 2nd commit message will be skipped:\n# Add file2\n# new line\n# The first commit's message is:\nAdd file1\nnew line", + "# This is a combination of 3 commits.\n# The first commit's message is:\nAdd file1\nnew line\n# The 2nd commit message will be skipped:\n# Add file2\n# new line\n# This is the 3rd commit message:\nupdated file1 on master\nnew line", commit); try { |