Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/Internals.java @ 91:c2ce1cfaeb9e
ignore file with regex and 'honest' glob support
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> | 
|---|---|
| date | Thu, 27 Jan 2011 06:06:42 +0100 | 
| parents | 6f1b88693d48 | 
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 90:a95c700408a9 | 91:c2ce1cfaeb9e | 
|---|---|
| 37 public void dumpDirstate() { | 37 public void dumpDirstate() { | 
| 38 repo.loadDirstate().dump(); | 38 repo.loadDirstate().dump(); | 
| 39 } | 39 } | 
| 40 | 40 | 
| 41 public boolean[] checkIgnored(String... toCheck) { | 41 public boolean[] checkIgnored(String... toCheck) { | 
| 42 HgIgnore ignore = repo.loadIgnore(); | 42 HgIgnore ignore = repo.getIgnore(); | 
| 43 boolean[] rv = new boolean[toCheck.length]; | 43 boolean[] rv = new boolean[toCheck.length]; | 
| 44 for (int i = 0; i < toCheck.length; i++) { | 44 for (int i = 0; i < toCheck.length; i++) { | 
| 45 rv[i] = ignore.isIgnored(toCheck[i]); | 45 rv[i] = ignore.isIgnored(toCheck[i]); | 
| 46 } | 46 } | 
| 47 return rv; | 47 return rv; | 
