summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorMathias Kinzler <mathias.kinzler@sap.com>2010-12-01 15:10:13 +0100
committerMathias Kinzler <mathias.kinzler@sap.com>2010-12-01 15:10:13 +0100
commit59e62ba7e10188c6170bd97ffbd9c8768d9745ea (patch)
treed422855d75599ed6fe146f0c93949dd8c16928bd /org.eclipse.jgit.test
parent7aa1b85821e007c0243772273960069497284290 (diff)
downloadjgit-59e62ba7e10188c6170bd97ffbd9c8768d9745ea.tar.gz
jgit-59e62ba7e10188c6170bd97ffbd9c8768d9745ea.zip
Rebase Interoperability second part: fix "pop steps"
If the CLI stops a rebase upon conflict, the current step is already popped from the git-rebase-todo and appended to the "done" file. The current implementation wrongly pops the step only after successful cherry-pick. Change-Id: I8640dda0cbb2a5271ecf75fcbad69410122eeab6 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java4
1 files changed, 2 insertions, 2 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 d1d3480b23..bddb9ed6e9 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
@@ -327,7 +327,7 @@ public class RebaseCommandTest extends RepositoryTestCase {
assertTrue(new File(db.getDirectory(), "rebase-merge").exists());
// the first one should be included, so we should have left two picks in
// the file
- assertEquals(2, countPicks());
+ assertEquals(1, countPicks());
// rebase should not succeed in this state
try {
@@ -416,7 +416,7 @@ public class RebaseCommandTest extends RepositoryTestCase {
assertTrue(new File(db.getDirectory(), "rebase-merge").exists());
// the first one should be included, so we should have left two picks in
// the file
- assertEquals(1, countPicks());
+ assertEquals(0, countPicks());
assertFalse(file2.exists());
assertFalse(file3.exists());