aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-07-28 14:45:12 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-08-04 11:00:07 -0700
commit60c5939b236723cb43344115eed03caf8de2b22a (patch)
tree43071e9ebc5955e697fadd1b8d4da0c13824c3d9 /org.eclipse.jgit.test/tst/org/eclipse/jgit/diff
parent7514a6dbdc1c69a885d900385d0d9f5b40224c2f (diff)
downloadjgit-60c5939b236723cb43344115eed03caf8de2b22a.tar.gz
jgit-60c5939b236723cb43344115eed03caf8de2b22a.zip
Rename getOldName,getNewName to getOldPath,getNewPath
TreeWalk calls this value "path", while "name" is the stuff after the last slash. FileHeader should do the same thing to be consistent. Rename getOldName to getOldPath and getNewName to getNewPath. Bug: 318526 Change-Id: Ib2e372ad4426402d37939b48d8f233154cc637da Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/diff')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RenameDetectorTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RenameDetectorTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RenameDetectorTest.java
index 37c9d2fb77..26116d2504 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RenameDetectorTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RenameDetectorTest.java
@@ -498,10 +498,10 @@ public class RenameDetectorTest extends RepositoryTestCase {
assertEquals(1, entries.size());
DiffEntry modify = entries.get(0);
- assertEquals(m.oldName, modify.oldName);
+ assertEquals(m.oldPath, modify.oldPath);
assertEquals(m.oldId, modify.oldId);
assertEquals(m.oldMode, modify.oldMode);
- assertEquals(m.newName, modify.newName);
+ assertEquals(m.newPath, modify.newPath);
assertEquals(m.newId, modify.newId);
assertEquals(m.newMode, modify.newMode);
assertEquals(m.changeType, modify.changeType);
@@ -560,8 +560,8 @@ public class RenameDetectorTest extends RepositoryTestCase {
DiffEntry rename) {
assertEquals(ChangeType.RENAME, rename.getChangeType());
- assertEquals(o.getOldName(), rename.getOldName());
- assertEquals(n.getNewName(), rename.getNewName());
+ assertEquals(o.getOldPath(), rename.getOldPath());
+ assertEquals(n.getNewPath(), rename.getNewPath());
assertEquals(o.getOldMode(), rename.getOldMode());
assertEquals(n.getNewMode(), rename.getNewMode());
@@ -576,8 +576,8 @@ public class RenameDetectorTest extends RepositoryTestCase {
DiffEntry copy) {
assertEquals(ChangeType.COPY, copy.getChangeType());
- assertEquals(o.getOldName(), copy.getOldName());
- assertEquals(n.getNewName(), copy.getNewName());
+ assertEquals(o.getOldPath(), copy.getOldPath());
+ assertEquals(n.getNewPath(), copy.getNewPath());
assertEquals(o.getOldMode(), copy.getOldMode());
assertEquals(n.getNewMode(), copy.getNewMode());
@@ -590,11 +590,11 @@ public class RenameDetectorTest extends RepositoryTestCase {
private static void assertAdd(String newName, ObjectId newId,
FileMode newMode, DiffEntry add) {
- assertEquals(DiffEntry.DEV_NULL, add.oldName);
+ assertEquals(DiffEntry.DEV_NULL, add.oldPath);
assertEquals(DiffEntry.A_ZERO, add.oldId);
assertEquals(FileMode.MISSING, add.oldMode);
assertEquals(ChangeType.ADD, add.changeType);
- assertEquals(newName, add.newName);
+ assertEquals(newName, add.newPath);
assertEquals(AbbreviatedObjectId.fromObjectId(newId), add.newId);
assertEquals(newMode, add.newMode);
}