comparison src/org/tmatesoft/hg/repo/HgInternals.java @ 142:37a34044e6bd

More reasonable use of path normalizer and path.source
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 17 Feb 2011 05:06:07 +0100
parents 44b97930570c
children 1a7a9a20e1f9
comparison
equal deleted inserted replaced
141:8248aae33f7d 142:37a34044e6bd
19 import java.io.File; 19 import java.io.File;
20 import java.net.InetAddress; 20 import java.net.InetAddress;
21 import java.net.UnknownHostException; 21 import java.net.UnknownHostException;
22 22
23 import org.tmatesoft.hg.internal.ConfigFile; 23 import org.tmatesoft.hg.internal.ConfigFile;
24 import org.tmatesoft.hg.util.Path;
24 25
25 26
26 /** 27 /**
27 * DO NOT USE THIS CLASS, INTENDED FOR TESTING PURPOSES. 28 * DO NOT USE THIS CLASS, INTENDED FOR TESTING PURPOSES.
28 * 29 *
46 47
47 public boolean[] checkIgnored(String... toCheck) { 48 public boolean[] checkIgnored(String... toCheck) {
48 HgIgnore ignore = repo.getIgnore(); 49 HgIgnore ignore = repo.getIgnore();
49 boolean[] rv = new boolean[toCheck.length]; 50 boolean[] rv = new boolean[toCheck.length];
50 for (int i = 0; i < toCheck.length; i++) { 51 for (int i = 0; i < toCheck.length; i++) {
51 rv[i] = ignore.isIgnored(toCheck[i]); 52 rv[i] = ignore.isIgnored(Path.create(toCheck[i]));
52 } 53 }
53 return rv; 54 return rv;
54 } 55 }
55 56
56 public File getRepositoryDir() { 57 public File getRepositoryDir() {