Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgDataFile.java @ 417:ccd7d25e5aea
New and better name for HgFileInformer - HgChangesetFileSneaker. Explain (comments) ties between HgManifest, HgDataFile, HgChangesetFileSneaker and reasons for method placement
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 22 Mar 2012 20:14:06 +0100 |
parents | d30083c80d52 |
children | 6c22bdc0bdfd |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgDataFile.java Thu Mar 22 19:11:33 2012 +0100 +++ b/src/org/tmatesoft/hg/repo/HgDataFile.java Thu Mar 22 20:14:06 2012 +0100 @@ -448,6 +448,15 @@ history(0, getLastRevision(), inspector); } + /** + * + * @param start local revision index + * @param end local revision index + * @param inspector + * FIXME EXCEPTIONS + * @throws HgInvalidRevisionException + * @throws HgInvalidControlFileException + */ public void history(int start, int end, HgChangelog.Inspector inspector) throws HgInvalidRevisionException, HgInvalidControlFileException { if (!exists()) { throw new IllegalStateException("Can't get history of invalid repository file node"); @@ -556,24 +565,18 @@ } throw new UnsupportedOperationException(); } -/* FIXME - public Nodeid getRevisionAtChangeset(int changesetRevision) { - } - - public HgManifest.Flags getFlagsAtChangeset(int changesetRevisionIndex) { - } -*/ - + /** - * + * Get file flags recorded in the manifest * @param fileRevisionIndex - revision local index, non-negative, or {@link HgRepository#TIP}. - * FIXME EXCEPTIONS + * @see HgManifest#getFileFlags(int, Path) + * FIXME EXCEPTIONS * @throws HgInvalidControlFileException * @throws HgInvalidRevisionException */ public HgManifest.Flags getFlags(int fileRevisionIndex) throws HgInvalidControlFileException, HgInvalidRevisionException { int changesetRevIndex = getChangesetRevisionIndex(fileRevisionIndex); - return getRepo().getManifest().extractFlags(changesetRevIndex, getPath()); + return getRepo().getManifest().getFileFlags(changesetRevIndex, getPath()); } @Override