comparison src/org/tmatesoft/hg/repo/HgRepository.java @ 409:0f5696623512 smartgit3

Support glob path pattern rewrite to facilitate use of globs with Windows path separator
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 16 Mar 2012 20:14:47 +0100
parents 30922c728341
children 63c5a9d7ca3f
comparison
equal deleted inserted replaced
408:e732521a9eb4 409:0f5696623512
317 * @see HgIgnore#isIgnored(Path) 317 * @see HgIgnore#isIgnored(Path)
318 */ 318 */
319 public HgIgnore getIgnore() /*throws HgInvalidControlFileException */{ 319 public HgIgnore getIgnore() /*throws HgInvalidControlFileException */{
320 // TODO read config for additional locations 320 // TODO read config for additional locations
321 if (ignore == null) { 321 if (ignore == null) {
322 ignore = new HgIgnore(); 322 ignore = new HgIgnore(getToRepoPathHelper());
323 File ignoreFile = new File(getWorkingDir(), ".hgignore"); 323 File ignoreFile = new File(getWorkingDir(), ".hgignore");
324 try { 324 try {
325 final List<String> errors = ignore.read(ignoreFile); 325 final List<String> errors = ignore.read(ignoreFile);
326 if (errors != null) { 326 if (errors != null) {
327 getContext().getLog().warn(getClass(), "Syntax errors parsing .hgignore:\n%s", Internals.join(errors, ",\n")); 327 getContext().getLog().warn(getClass(), "Syntax errors parsing .hgignore:\n%s", Internals.join(errors, ",\n"));