Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgChangesetTreeHandler.java @ 515:e6c8b9b654b2
Provide access to HgDataFile being iterated into HgChangesetTreeHandler.TreeElement to give context for renamed files
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 20:51:12 +0100 |
parents | a6435c1a42d0 |
children | 6526d8adbc0f |
comparison
equal
deleted
inserted
replaced
514:5dcb4581c8ef | 515:e6c8b9b654b2 |
---|---|
17 package org.tmatesoft.hg.core; | 17 package org.tmatesoft.hg.core; |
18 | 18 |
19 import java.util.Collection; | 19 import java.util.Collection; |
20 | 20 |
21 import org.tmatesoft.hg.internal.Callback; | 21 import org.tmatesoft.hg.internal.Callback; |
22 import org.tmatesoft.hg.repo.HgDataFile; | |
22 import org.tmatesoft.hg.util.Pair; | 23 import org.tmatesoft.hg.util.Pair; |
23 | 24 |
24 /** | 25 /** |
25 * Handler to iterate file history (generally, any revlog) with access to parent-child relations between changesets. | 26 * Handler to iterate file history (generally, any revlog) with access to parent-child relations between changesets. |
26 * | 27 * |
43 * Revision of the revlog being iterated. For example, when walking file history, return value represents file revisions. | 44 * Revision of the revlog being iterated. For example, when walking file history, return value represents file revisions. |
44 * | 45 * |
45 * @return revision of the revlog being iterated. | 46 * @return revision of the revlog being iterated. |
46 */ | 47 */ |
47 public Nodeid fileRevision(); | 48 public Nodeid fileRevision(); |
49 | |
50 /** | |
51 * File node, provided revlog being iterated is a {@link HgDataFile}; {@link #fileRevision()} | |
52 * references revision from the history of this very {@link HgDataFile file}. | |
53 * | |
54 * Comes handy when file history with renames is being followed to find out | |
55 * file name for particular revision in the history. | |
56 * | |
57 * @return instance of the file being walked, or <code>null</code> if it's not a file but other revlog. | |
58 */ | |
59 public HgDataFile file(); | |
48 | 60 |
49 /** | 61 /** |
50 * @return changeset associated with the current file revision | 62 * @return changeset associated with the current file revision |
51 */ | 63 */ |
52 public HgChangeset changeset(); | 64 public HgChangeset changeset(); |