Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgRepository.java @ 289:086a326f181f
Provide public access to ignored files configuration to use in alternative file walkers
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 12 Sep 2011 14:11:45 +0200 |
parents | 7232b94f2ae3 |
children | a415fe296a50 |
comparison
equal
deleted
inserted
replaced
288:b11f6a08f748 | 289:086a326f181f |
---|---|
274 // XXX consider passing Path pool or factory to produce (shared) Path instead of Strings | 274 // XXX consider passing Path pool or factory to produce (shared) Path instead of Strings |
275 /*package-local*/ final HgDirstate loadDirstate(PathPool pathPool) { | 275 /*package-local*/ final HgDirstate loadDirstate(PathPool pathPool) { |
276 return new HgDirstate(this, new File(repoDir, "dirstate"), pathPool); | 276 return new HgDirstate(this, new File(repoDir, "dirstate"), pathPool); |
277 } | 277 } |
278 | 278 |
279 // package-local, see comment for loadDirstate | 279 /** |
280 /*package-local*/ final HgIgnore getIgnore() { | 280 * Access to configured set of ignored files. |
281 * @see HgIgnore#isIgnored(Path) | |
282 */ | |
283 public HgIgnore getIgnore() { | |
281 // TODO read config for additional locations | 284 // TODO read config for additional locations |
282 if (ignore == null) { | 285 if (ignore == null) { |
283 ignore = new HgIgnore(); | 286 ignore = new HgIgnore(); |
284 try { | 287 try { |
285 File ignoreFile = new File(getWorkingDir(), ".hgignore"); | 288 File ignoreFile = new File(getWorkingDir(), ".hgignore"); |