comparison src/org/tmatesoft/hg/core/ChangesetTransformer.java @ 418:528b6780a8bd

A bit of FIXME cleanup (mostly degraded to TODO post 1.0), comments and javadoc
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 22 Mar 2012 21:02:20 +0100
parents 2747b0723867
children 9c9c442b5f2e
comparison
equal deleted inserted replaced
417:ccd7d25e5aea 418:528b6780a8bd
1 /* 1 /*
2 * Copyright (c) 2011 TMate Software Ltd 2 * Copyright (c) 2011-2012 TMate Software Ltd
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License. 6 * the Free Software Foundation; version 2 of the License.
7 * 7 *
28 import org.tmatesoft.hg.util.PathRewrite; 28 import org.tmatesoft.hg.util.PathRewrite;
29 import org.tmatesoft.hg.util.ProgressSupport; 29 import org.tmatesoft.hg.util.ProgressSupport;
30 30
31 /** 31 /**
32 * Bridges {@link HgChangelog.RawChangeset} with high-level {@link HgChangeset} API 32 * Bridges {@link HgChangelog.RawChangeset} with high-level {@link HgChangeset} API
33 * FIXME move to .internal once access to package-local HgChangeset cons is resolved 33 * TODO post-1.0 Move to .internal once access to package-local HgChangeset cons is resolved. For 1.0, enough it's package-local
34 * 34 *
35 * @author Artem Tikhomirov 35 * @author Artem Tikhomirov
36 * @author TMate Software Ltd. 36 * @author TMate Software Ltd.
37 */ 37 */
38 /*package-local*/ class ChangesetTransformer implements HgChangelog.Inspector { 38 /*package-local*/ class ChangesetTransformer implements HgChangelog.Inspector {
107 statusCollector.setPathPool(pp); 107 statusCollector.setPathPool(pp);
108 changeset = new HgChangeset(statusCollector, pp); 108 changeset = new HgChangeset(statusCollector, pp);
109 changeset.setParentHelper(pw); 109 changeset.setParentHelper(pw);
110 } 110 }
111 111
112 // FIXME document instance reuse policy 112 /**
113 * Callers shall not assume they get new HgChangeset instance each time, implementation may reuse instances.
114 * @return hi-level changeset description
115 */
113 HgChangeset handle(int revisionNumber, Nodeid nodeid, RawChangeset cset) { 116 HgChangeset handle(int revisionNumber, Nodeid nodeid, RawChangeset cset) {
114 changeset.init(revisionNumber, nodeid, cset); 117 changeset.init(revisionNumber, nodeid, cset);
115 return changeset; 118 return changeset;
116 } 119 }
117 } 120 }