Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 570:36853bb80a35 | 571:e4ee4bf4c7d0 |
|---|---|
| 228 /** | 228 /** |
| 229 * Handy analog to {@link #file(Path, boolean)} when clients' paths come from filesystem and need conversion to repository's | 229 * Handy analog to {@link #file(Path, boolean)} when clients' paths come from filesystem and need conversion to repository's |
| 230 * @return <code>this</code> for convenience | 230 * @return <code>this</code> for convenience |
| 231 */ | 231 */ |
| 232 public HgLogCommand file(String file, boolean followCopyRename) { | 232 public HgLogCommand file(String file, boolean followCopyRename) { |
| 233 return file(Path.create(repo.getToRepoPathHelper().rewrite(file)), followCopyRename); | 233 Path.Source ps = repo.getSessionContext().getPathFactory(); |
| 234 return file(ps.path(repo.getToRepoPathHelper().rewrite(file)), followCopyRename); | |
| 234 } | 235 } |
| 235 | 236 |
| 236 /** | 237 /** |
| 237 * Handy analog to {@link #file(Path, boolean, boolean)} when clients' paths come from filesystem and need conversion to repository's | 238 * Handy analog to {@link #file(Path, boolean, boolean)} when clients' paths come from filesystem and need conversion to repository's |
| 238 * @return <code>this</code> for convenience | 239 * @return <code>this</code> for convenience |
| 239 */ | 240 */ |
| 240 public HgLogCommand file(String file, boolean followCopyRename, boolean followFileAncestry) { | 241 public HgLogCommand file(String file, boolean followCopyRename, boolean followFileAncestry) { |
| 241 return file(Path.create(repo.getToRepoPathHelper().rewrite(file)), followCopyRename, followFileAncestry); | 242 Path.Source ps = repo.getSessionContext().getPathFactory(); |
| 243 return file(ps.path(repo.getToRepoPathHelper().rewrite(file)), followCopyRename, followFileAncestry); | |
| 242 } | 244 } |
| 243 | 245 |
| 244 /** | 246 /** |
| 245 * Specifies order for changesets reported through #execute(...) methods. | 247 * Specifies order for changesets reported through #execute(...) methods. |
| 246 * By default, command reports changeset in their natural repository order, older first, | 248 * By default, command reports changeset in their natural repository order, older first, |
