comparison src/org/tmatesoft/hg/repo/HgInternals.java @ 339:863356c2847e

Issue 16: respect glob patterns in HgIgnore for sub-directories
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 16 Nov 2011 22:42:21 +0100
parents a37ce7145c3f
children 8da7ade36c57
comparison
equal deleted inserted replaced
338:3cfa4d908fc9 339:863356c2847e
81 rv[i] = dirstate.known(toCheck[i]); 81 rv[i] = dirstate.known(toCheck[i]);
82 } 82 }
83 return rv; 83 return rv;
84 } 84 }
85 85
86 public boolean[] checkIgnored(String... toCheck) {
87 HgIgnore ignore = repo.getIgnore();
88 boolean[] rv = new boolean[toCheck.length];
89 for (int i = 0; i < toCheck.length; i++) {
90 rv[i] = ignore.isIgnored(Path.create(toCheck[i]));
91 }
92 return rv;
93 }
94
95 public File getRepositoryDir() { 86 public File getRepositoryDir() {
96 return repo.getRepositoryRoot(); 87 return repo.getRepositoryRoot();
97 } 88 }
98 89
99 public static HgIgnore newHgIgnore(Reader source) throws IOException { 90 public static HgIgnore newHgIgnore(Reader source) throws IOException {