Преглед на файлове

Merge "Add a check in fstick that the reference file exists"

tags/v2.2.0.201212191850-r
Shawn Pearce преди 11 години
родител
ревизия
71ac75fea3
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2
    0
      org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java

+ 2
- 0
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java Целия файл

@@ -371,6 +371,8 @@ public abstract class RepositoryTestCase extends LocalDiskRepositoryTestCase {
public static long fsTick(File lastFile) throws InterruptedException,
IOException {
long sleepTime = 1;
if (lastFile != null && !lastFile.exists())
throw new FileNotFoundException(lastFile.getPath());
File tmp = File.createTempFile("FileTreeIteratorWithTimeControl", null);
try {
long startTime = (lastFile == null) ? tmp.lastModified() : lastFile

Loading…
Отказ
Запис