diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInternals.java	Thu Feb 17 04:08:34 2011 +0100
+++ b/src/org/tmatesoft/hg/repo/HgInternals.java	Thu Feb 17 05:06:07 2011 +0100
@@ -21,6 +21,7 @@
 import java.net.UnknownHostException;
 
 import org.tmatesoft.hg.internal.ConfigFile;
+import org.tmatesoft.hg.util.Path;
 
 
 /**
@@ -48,7 +49,7 @@
 		HgIgnore ignore = repo.getIgnore();
 		boolean[] rv = new boolean[toCheck.length];
 		for (int i = 0; i < toCheck.length; i++) {
-			rv[i] = ignore.isIgnored(toCheck[i]);
+			rv[i] = ignore.isIgnored(Path.create(toCheck[i]));
 		}
 		return rv;
 	}