comparison src/org/tmatesoft/hg/repo/Revlog.java @ 388:b015f3918120

Work on FIXME: correct HgDataFile#workingCopy with tests; BasicSessionContext with property override; platform-specific options to internals
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 15 Feb 2012 22:57:56 +0100
parents 6150555eb41d
children 728708de3597
comparison
equal deleted inserted replaced
387:cdea37239b01 388:b015f3918120
1 /* 1 /*
2 * Copyright (c) 2010-2011 TMate Software Ltd 2 * Copyright (c) 2010-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 *
89 public final int getLastRevision() { 89 public final int getLastRevision() {
90 return content.revisionCount() - 1; 90 return content.revisionCount() - 1;
91 } 91 }
92 92
93 /** 93 /**
94 * Map revision index to unique revision identifier (nodeid) 94 * Map revision index to unique revision identifier (nodeid).
95 * 95 *
96 * @param revision index of the entry in this revlog 96 * @param revision index of the entry in this revlog, may be {@link HgRepository#TIP}
97 * @return revision nodeid of the entry 97 * @return revision nodeid of the entry
98 * 98 *
99 * @throws HgInvalidRevisionException if supplied argument doesn't represent revision index in this revlog 99 * @throws HgInvalidRevisionException if supplied argument doesn't represent revision index in this revlog
100 * @throws HgInvalidControlFileException if access to revlog index/data entry failed 100 * @throws HgInvalidControlFileException if access to revlog index/data entry failed
101 */ 101 */