Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgIgnore.java @ 141:8248aae33f7d
Adopt FileIterator moving towards WCStatusCollector parameterizing. Improved path handling, move 'em around
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 17 Feb 2011 04:08:34 +0100 |
parents | 46291ec605a0 |
children | fad70a9e6c7f |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgIgnore.java Wed Feb 16 22:33:04 2011 +0100 +++ b/src/org/tmatesoft/hg/repo/HgIgnore.java Thu Feb 17 04:08:34 2011 +0100 @@ -25,7 +25,10 @@ import java.util.List; import java.util.regex.Pattern; +import org.tmatesoft.hg.util.Path; + /** + * Handling of ignored paths according to .hgignore configuration * * @author Artem Tikhomirov * @author TMate Software Ltd. @@ -119,8 +122,8 @@ return sb.toString(); } - // TODO use Path and PathGlobMatcher - public boolean isIgnored(String path) { + // TODO use PathGlobMatcher + public boolean isIgnored(Path path) { for (Pattern p : entries) { if (p.matcher(path).find()) { return true;