diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2013-10-03 17:39:03 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2013-10-03 17:39:33 +0200 |
commit | fdc80f7cad0979e65e669e8564a67a1fedbc5705 (patch) | |
tree | 09d44cfdba0527aa4df395a8e9ec68644496b677 /org.eclipse.jgit.test | |
parent | 0be59ab033a66d63389cf8bd1145af0763a70a5b (diff) | |
parent | da6e87bc373c54c1cda8ed563f41f65df52bacbf (diff) | |
download | jgit-fdc80f7cad0979e65e669e8564a67a1fedbc5705.tar.gz jgit-fdc80f7cad0979e65e669e8564a67a1fedbc5705.zip |
Merge branch 'stable-3.1'
* stable-3.1:
Prepare post 3.1.0 builds
JGit v3.1.0.201310021548-r
Fix order of commits in rebase todo file header
Prepare post 3.1.0 RC1 builds
JGit v3.1.0.201309270735-rc1
Attempt to fix graph layout when new heads are introduced
Prepare re-signing pgm's ueberjar to avoid SecurityException
Use full branch name when getting ref in BranchTrackingStatus
Change-Id: Ida30175d0c058048cbe4b563aae7f85cd008db29
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/META-INF/MANIFEST.MF | 72 | ||||
-rw-r--r-- | org.eclipse.jgit.test/pom.xml | 2 | ||||
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/revplot/PlotCommitListTest.java | 51 |
3 files changed, 78 insertions, 47 deletions
diff --git a/org.eclipse.jgit.test/META-INF/MANIFEST.MF b/org.eclipse.jgit.test/META-INF/MANIFEST.MF index aff1abb6bc..f0764b5479 100644 --- a/org.eclipse.jgit.test/META-INF/MANIFEST.MF +++ b/org.eclipse.jgit.test/META-INF/MANIFEST.MF @@ -2,47 +2,47 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %plugin_name Bundle-SymbolicName: org.eclipse.jgit.test -Bundle-Version: 3.1.0.qualifier +Bundle-Version: 3.1.1.qualifier Bundle-Localization: plugin Bundle-Vendor: %provider_name Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Import-Package: javaewah;version="[0.5.6,1.0.0)", - org.eclipse.jgit.api;version="[3.1.0,3.2.0)", - org.eclipse.jgit.api.errors;version="[3.1.0,3.2.0)", - org.eclipse.jgit.awtui;version="[3.1.0,3.2.0)", - org.eclipse.jgit.blame;version="[3.1.0,3.2.0)", - org.eclipse.jgit.console;version="[3.1.0,3.2.0)", - org.eclipse.jgit.diff;version="[3.1.0,3.2.0)", - org.eclipse.jgit.dircache;version="[3.1.0,3.2.0)", - org.eclipse.jgit.errors;version="[3.1.0,3.2.0)", - org.eclipse.jgit.events;version="[3.1.0,3.2.0)", - org.eclipse.jgit.fnmatch;version="[3.1.0,3.2.0)", - org.eclipse.jgit.ignore;version="[3.1.0,3.2.0)", - org.eclipse.jgit.internal;version="[3.1.0,3.2.0)", - org.eclipse.jgit.internal.storage.dfs;version="[3.1.0,3.2.0)", - org.eclipse.jgit.internal.storage.file;version="[3.1.0,3.2.0)", - org.eclipse.jgit.internal.storage.pack;version="[3.1.0,3.2.0)", - org.eclipse.jgit.java7;version="[3.1.0,3.2.0)";resolution:=optional, - org.eclipse.jgit.junit;version="[3.1.0,3.2.0)", - org.eclipse.jgit.lib;version="[3.1.0,3.2.0)", - org.eclipse.jgit.merge;version="[3.1.0,3.2.0)", - org.eclipse.jgit.nls;version="[3.1.0,3.2.0)", - org.eclipse.jgit.notes;version="[3.1.0,3.2.0)", - org.eclipse.jgit.patch;version="[3.1.0,3.2.0)", - org.eclipse.jgit.pgm;version="[3.1.0,3.2.0)", - org.eclipse.jgit.pgm.internal;version="[3.1.0,3.2.0)", - org.eclipse.jgit.revplot;version="[3.1.0,3.2.0)", - org.eclipse.jgit.revwalk;version="[3.1.0,3.2.0)", - org.eclipse.jgit.revwalk.filter;version="[3.1.0,3.2.0)", - org.eclipse.jgit.storage.file;version="[3.1.0,3.2.0)", - org.eclipse.jgit.storage.pack;version="[3.1.0,3.2.0)", - org.eclipse.jgit.submodule;version="[3.1.0,3.2.0)", - org.eclipse.jgit.transport;version="[3.1.0,3.2.0)", - org.eclipse.jgit.treewalk;version="[3.1.0,3.2.0)", - org.eclipse.jgit.treewalk.filter;version="[3.1.0,3.2.0)", - org.eclipse.jgit.util;version="[3.1.0,3.2.0)", - org.eclipse.jgit.util.io;version="[3.1.0,3.2.0)", + org.eclipse.jgit.api;version="[3.1.1,3.2.0)", + org.eclipse.jgit.api.errors;version="[3.1.1,3.2.0)", + org.eclipse.jgit.awtui;version="[3.1.1,3.2.0)", + org.eclipse.jgit.blame;version="[3.1.1,3.2.0)", + org.eclipse.jgit.console;version="[3.1.1,3.2.0)", + org.eclipse.jgit.diff;version="[3.1.1,3.2.0)", + org.eclipse.jgit.dircache;version="[3.1.1,3.2.0)", + org.eclipse.jgit.errors;version="[3.1.1,3.2.0)", + org.eclipse.jgit.events;version="[3.1.1,3.2.0)", + org.eclipse.jgit.fnmatch;version="[3.1.1,3.2.0)", + org.eclipse.jgit.ignore;version="[3.1.1,3.2.0)", + org.eclipse.jgit.internal;version="[3.1.1,3.2.0)", + org.eclipse.jgit.internal.storage.dfs;version="[3.1.1,3.2.0)", + org.eclipse.jgit.internal.storage.file;version="[3.1.1,3.2.0)", + org.eclipse.jgit.internal.storage.pack;version="[3.1.1,3.2.0)", + org.eclipse.jgit.java7;version="[3.1.1,3.2.0)";resolution:=optional, + org.eclipse.jgit.junit;version="[3.1.1,3.2.0)", + org.eclipse.jgit.lib;version="[3.1.1,3.2.0)", + org.eclipse.jgit.merge;version="[3.1.1,3.2.0)", + org.eclipse.jgit.nls;version="[3.1.1,3.2.0)", + org.eclipse.jgit.notes;version="[3.1.1,3.2.0)", + org.eclipse.jgit.patch;version="[3.1.1,3.2.0)", + org.eclipse.jgit.pgm;version="[3.1.1,3.2.0)", + org.eclipse.jgit.pgm.internal;version="[3.1.1,3.2.0)", + org.eclipse.jgit.revplot;version="[3.1.1,3.2.0)", + org.eclipse.jgit.revwalk;version="[3.1.1,3.2.0)", + org.eclipse.jgit.revwalk.filter;version="[3.1.1,3.2.0)", + org.eclipse.jgit.storage.file;version="[3.1.1,3.2.0)", + org.eclipse.jgit.storage.pack;version="[3.1.1,3.2.0)", + org.eclipse.jgit.submodule;version="[3.1.1,3.2.0)", + org.eclipse.jgit.transport;version="[3.1.1,3.2.0)", + org.eclipse.jgit.treewalk;version="[3.1.1,3.2.0)", + org.eclipse.jgit.treewalk.filter;version="[3.1.1,3.2.0)", + org.eclipse.jgit.util;version="[3.1.1,3.2.0)", + org.eclipse.jgit.util.io;version="[3.1.1,3.2.0)", org.hamcrest;version="[1.1.0,2.0.0)", org.junit;version="[4.4.0,5.0.0)", org.junit.experimental.theories;version="[4.4.0,5.0.0)", diff --git a/org.eclipse.jgit.test/pom.xml b/org.eclipse.jgit.test/pom.xml index 7b9f4ca41f..435bd8d0a4 100644 --- a/org.eclipse.jgit.test/pom.xml +++ b/org.eclipse.jgit.test/pom.xml @@ -52,7 +52,7 @@ <parent> <groupId>org.eclipse.jgit</groupId> <artifactId>org.eclipse.jgit-parent</artifactId> - <version>3.1.0-SNAPSHOT</version> + <version>3.1.1-SNAPSHOT</version> </parent> <artifactId>org.eclipse.jgit.test</artifactId> diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/revplot/PlotCommitListTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/revplot/PlotCommitListTest.java index 5db6b86f81..926424c06d 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/revplot/PlotCommitListTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/revplot/PlotCommitListTest.java @@ -156,8 +156,8 @@ public class PlotCommitListTest extends RevWalkTestCase { CommitListAssert test = new CommitListAssert(pcl); test.commit(c).lanePos(0).parents(a); - test.commit(b).lanePos(1).parents(a); - test.commit(a).lanePos(0).parents(); + test.commit(b).lanePos(0).parents(a); + test.commit(a).lanePos(1).parents(); test.noMoreCommits(); } @@ -179,9 +179,9 @@ public class PlotCommitListTest extends RevWalkTestCase { CommitListAssert test = new CommitListAssert(pcl); test.commit(d).lanePos(0).parents(a); - test.commit(c).lanePos(1).parents(a); - test.commit(b).lanePos(1).parents(a); - test.commit(a).lanePos(0).parents(); + test.commit(c).lanePos(0).parents(a); + test.commit(b).lanePos(0).parents(a); + test.commit(a).lanePos(1).parents(); test.noMoreCommits(); } @@ -214,14 +214,45 @@ public class PlotCommitListTest extends RevWalkTestCase { CommitListAssert test = new CommitListAssert(pcl); test.commit(g).lanePos(0).parents(f); test.commit(f).lanePos(0).parents(a); - test.commit(e).lanePos(1).parents(a); - test.commit(d).lanePos(1).parents(a); - test.commit(c).lanePos(1).parents(a); - test.commit(b).lanePos(1).parents(a); - test.commit(a).lanePos(0).parents(); + test.commit(e).lanePos(0).parents(a); + test.commit(d).lanePos(0).parents(a); + test.commit(c).lanePos(0).parents(a); + test.commit(b).lanePos(0).parents(a); + test.commit(a).lanePos(1).parents(); test.noMoreCommits(); } + @Test + public void testBug368927() throws Exception { + final RevCommit a = commit(); + final RevCommit b = commit(a); + final RevCommit c = commit(b); + final RevCommit d = commit(b); + final RevCommit e = commit(c); + final RevCommit f = commit(e, d); + final RevCommit g = commit(a); + final RevCommit h = commit(f); + final RevCommit i = commit(h); + + PlotWalk pw = new PlotWalk(db); + pw.markStart(pw.lookupCommit(i.getId())); + pw.markStart(pw.lookupCommit(g.getId())); + + PlotCommitList<PlotLane> pcl = new PlotCommitList<PlotLane>(); + pcl.source(pw); + pcl.fillTo(Integer.MAX_VALUE); + CommitListAssert test = new CommitListAssert(pcl); + test.commit(i).lanePos(1).parents(h); + test.commit(h).lanePos(1).parents(f); + test.commit(g).lanePos(0).parents(a); + test.commit(f).lanePos(1).parents(e, d); + test.commit(e).lanePos(0).parents(c); + test.commit(d).lanePos(1).parents(b); + test.commit(c).lanePos(0).parents(b); + test.commit(b).lanePos(1).parents(a); + test.commit(a).lanePos(2).parents(); + } + // test the history of the egit project between 9fdaf3c1 and e76ad9170f @Test public void testEgitHistory() throws Exception { |