diff src/org/tmatesoft/hg/core/HgLogCommand.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 78a9e26e670d
children 43cfa08ff3fd
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgLogCommand.java	Thu Apr 11 16:07:17 2013 +0200
+++ b/src/org/tmatesoft/hg/core/HgLogCommand.java	Thu Apr 11 16:27:06 2013 +0200
@@ -230,7 +230,8 @@
 	 * @return <code>this</code> for convenience
 	 */
 	public HgLogCommand file(String file, boolean followCopyRename) {
-		return file(Path.create(repo.getToRepoPathHelper().rewrite(file)), followCopyRename);
+		Path.Source ps = repo.getSessionContext().getPathFactory();
+		return file(ps.path(repo.getToRepoPathHelper().rewrite(file)), followCopyRename);
 	}
 
 	/**
@@ -238,7 +239,8 @@
 	 * @return <code>this</code> for convenience
 	 */
 	public HgLogCommand file(String file, boolean followCopyRename, boolean followFileAncestry) {
-		return file(Path.create(repo.getToRepoPathHelper().rewrite(file)), followCopyRename, followFileAncestry);
+		Path.Source ps = repo.getSessionContext().getPathFactory();
+		return file(ps.path(repo.getToRepoPathHelper().rewrite(file)), followCopyRename, followFileAncestry);
 	}
 	
 	/**