comparison src/org/tmatesoft/hg/repo/HgRepository.java @ 412:63c5a9d7ca3f smartgit3

Follow-up for Issue 29: unify path translation for manifest and dirstate
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 21 Mar 2012 14:54:02 +0100
parents 0f5696623512
children bb278ccf9866 d0e5dc3cae6e
comparison
equal deleted inserted replaced
411:464b4404e75d 412:63c5a9d7ca3f
143 } 143 }
144 144
145 public HgManifest getManifest() { 145 public HgManifest getManifest() {
146 if (manifest == null) { 146 if (manifest == null) {
147 RevlogStream content = resolve(Path.create(repoPathHelper.rewrite("00manifest.i")), true); 147 RevlogStream content = resolve(Path.create(repoPathHelper.rewrite("00manifest.i")), true);
148 manifest = new HgManifest(this, content); 148 manifest = new HgManifest(this, content, impl.buildFileNameEncodingHelper());
149 } 149 }
150 return manifest; 150 return manifest;
151 } 151 }
152 152
153 public HgTags getTags() throws HgInvalidControlFileException { 153 public HgTags getTags() throws HgInvalidControlFileException {
306 return path.toString().toLowerCase(); 306 return path.toString().toLowerCase();
307 } 307 }
308 }; 308 };
309 } 309 }
310 HgDirstate ds = new HgDirstate(this, new File(repoDir, "dirstate"), pathPool, canonicalPath); 310 HgDirstate ds = new HgDirstate(this, new File(repoDir, "dirstate"), pathPool, canonicalPath);
311 ds.read(); 311 ds.read(impl.buildFileNameEncodingHelper());
312 return ds; 312 return ds;
313 } 313 }
314 314
315 /** 315 /**
316 * Access to configured set of ignored files. 316 * Access to configured set of ignored files.
383 } 383 }
384 384
385 /*package-local*/ SessionContext getContext() { 385 /*package-local*/ SessionContext getContext() {
386 return sessionContext; 386 return sessionContext;
387 } 387 }
388
389 /*package-local*/ Internals getImplHelper() {
390 return impl;
391 }
388 392
389 private List<Filter> instantiateFilters(Path p, Filter.Options opts) { 393 private List<Filter> instantiateFilters(Path p, Filter.Options opts) {
390 List<Filter.Factory> factories = impl.getFilters(this); 394 List<Filter.Factory> factories = impl.getFilters(this);
391 if (factories.isEmpty()) { 395 if (factories.isEmpty()) {
392 return Collections.emptyList(); 396 return Collections.emptyList();