comparison src/org/tmatesoft/hg/internal/KeywordFilter.java @ 118:68ba22a2133a

Defects in the filter initialization
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 04 Feb 2011 02:44:32 +0100
parents 46291ec605a0
children ed2b4adac51c
comparison
equal deleted inserted replaced
117:6c0be854d149 118:68ba22a2133a
287 // TODO read and respect keyword patterns from [keywordmaps] 287 // TODO read and respect keyword patterns from [keywordmaps]
288 } 288 }
289 289
290 public Filter create(Path path, Options opts) { 290 public Filter create(Path path, Options opts) {
291 if (matcher.accept(path)) { 291 if (matcher.accept(path)) {
292 return new KeywordFilter(repo, path, true); 292 return new KeywordFilter(repo, path, opts.getDirection() == Filter.Direction.FromRepo);
293 } 293 }
294 return null; 294 return null;
295 } 295 }
296 } 296 }
297 297