comparison src/org/tmatesoft/hg/internal/NewlineFilter.java @ 331:a37ce7145c3f

Access to repository configuration
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 05 Nov 2011 04:21:18 +0100
parents 981f9f50bb6c
children 7b34d24b8f4d
comparison
equal deleted inserted replaced
330:9747a786a34d 331:a37ce7145c3f
164 private Path.Matcher binMatcher; 164 private Path.Matcher binMatcher;
165 private Path.Matcher nativeMatcher; 165 private Path.Matcher nativeMatcher;
166 private String nativeRepoFormat; 166 private String nativeRepoFormat;
167 private String nativeOSFormat; 167 private String nativeOSFormat;
168 168
169 public void initialize(HgRepository hgRepo, ConfigFile cfg) { 169 public void initialize(HgRepository hgRepo) {
170 failIfInconsistent = cfg.getBoolean("eol", "only-consistent", true); 170 failIfInconsistent = hgRepo.getConfiguration().getBooleanValue("eol", "only-consistent", true);
171 File cfgFile = new File(hgRepo.getWorkingDir(), ".hgeol"); 171 File cfgFile = new File(hgRepo.getWorkingDir(), ".hgeol");
172 if (!cfgFile.canRead()) { 172 if (!cfgFile.canRead()) {
173 return; 173 return;
174 } 174 }
175 // XXX if .hgeol is not checked out, we may get it from repository 175 // XXX if .hgeol is not checked out, we may get it from repository