comparison src/org/tmatesoft/hg/repo/HgRepository.java @ 571:e4ee4bf4c7d0

Let session context control creation of Path instances
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 11 Apr 2013 16:27:06 +0200
parents 9edfd5a223b8
children 36e36b926747
comparison
equal deleted inserted replaced
570:36853bb80a35 571:e4ee4bf4c7d0
264 return mergeState; 264 return mergeState;
265 } 265 }
266 266
267 public HgDataFile getFileNode(String path) { 267 public HgDataFile getFileNode(String path) {
268 CharSequence nPath = normalizePath.rewrite(path); 268 CharSequence nPath = normalizePath.rewrite(path);
269 Path p = Path.create(nPath); 269 Path p = sessionContext.getPathFactory().path(nPath);
270 return getFileNode(p); 270 return getFileNode(p);
271 } 271 }
272 272
273 public HgDataFile getFileNode(Path path) { 273 public HgDataFile getFileNode(Path path) {
274 RevlogStream content = resolveStoreFile(path); 274 RevlogStream content = resolveStoreFile(path);