Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgChangeset.java @ 142:37a34044e6bd
More reasonable use of path normalizer and path.source
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Thu, 17 Feb 2011 05:06:07 +0100 |
| parents | 4a948ec83980 |
| children | 1a7a9a20e1f9 |
comparison
equal
deleted
inserted
replaced
| 141:8248aae33f7d | 142:37a34044e6bd |
|---|---|
| 23 import org.tmatesoft.hg.core.HgLogCommand.FileRevision; | 23 import org.tmatesoft.hg.core.HgLogCommand.FileRevision; |
| 24 import org.tmatesoft.hg.repo.HgChangelog.Changeset; | 24 import org.tmatesoft.hg.repo.HgChangelog.Changeset; |
| 25 import org.tmatesoft.hg.repo.HgRepository; | 25 import org.tmatesoft.hg.repo.HgRepository; |
| 26 import org.tmatesoft.hg.repo.HgStatusCollector; | 26 import org.tmatesoft.hg.repo.HgStatusCollector; |
| 27 import org.tmatesoft.hg.util.Path; | 27 import org.tmatesoft.hg.util.Path; |
| 28 import org.tmatesoft.hg.util.PathPool; | |
| 29 | 28 |
| 30 | 29 |
| 31 /** | 30 /** |
| 32 * Record in the Mercurial changelog, describing single commit. | 31 * Record in the Mercurial changelog, describing single commit. |
| 33 * | 32 * |
| 36 * @author Artem Tikhomirov | 35 * @author Artem Tikhomirov |
| 37 * @author TMate Software Ltd. | 36 * @author TMate Software Ltd. |
| 38 */ | 37 */ |
| 39 public class HgChangeset implements Cloneable { | 38 public class HgChangeset implements Cloneable { |
| 40 private final HgStatusCollector statusHelper; | 39 private final HgStatusCollector statusHelper; |
| 41 private final PathPool pathHelper; | 40 private final Path.Source pathHelper; |
| 42 | 41 |
| 43 // | 42 // |
| 44 private Changeset changeset; | 43 private Changeset changeset; |
| 45 private Nodeid nodeid; | 44 private Nodeid nodeid; |
| 46 | 45 |
| 49 private List<Path> deletedFiles; | 48 private List<Path> deletedFiles; |
| 50 private int revNumber; | 49 private int revNumber; |
| 51 | 50 |
| 52 // XXX consider CommandContext with StatusCollector, PathPool etc. Commands optionally get CC through a cons or create new | 51 // XXX consider CommandContext with StatusCollector, PathPool etc. Commands optionally get CC through a cons or create new |
| 53 // and pass it around | 52 // and pass it around |
| 54 /*package-local*/HgChangeset(HgStatusCollector statusCollector, PathPool pathPool) { | 53 /*package-local*/HgChangeset(HgStatusCollector statusCollector, Path.Source pathFactory) { |
| 55 statusHelper = statusCollector; | 54 statusHelper = statusCollector; |
| 56 pathHelper = pathPool; | 55 pathHelper = pathFactory; |
| 57 } | 56 } |
| 58 | 57 |
| 59 /*package-local*/ | 58 /*package-local*/ |
| 60 void init(int localRevNumber, Nodeid nid, Changeset rawChangeset) { | 59 void init(int localRevNumber, Nodeid nid, Changeset rawChangeset) { |
| 61 revNumber = localRevNumber; | 60 revNumber = localRevNumber; |
