comparison src/org/tmatesoft/hg/core/HgChangesetTreeHandler.java @ 427:31a89587eb04

FIXMEs: consistent names, throws for commands and their handlers. Use of checked exceptions in hi-level api
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 29 Mar 2012 17:14:35 +0200
parents 9c9c442b5f2e
children a6435c1a42d0
comparison
equal deleted inserted replaced
426:063b0663495a 427:31a89587eb04
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.util.CancelledException;
23 import org.tmatesoft.hg.util.Pair; 22 import org.tmatesoft.hg.util.Pair;
24 23
25 /** 24 /**
26 * Handler to iterate file history (generally, any revlog) with access to parent-child relations between changesets. 25 * Handler to iterate file history (generally, any revlog) with access to parent-child relations between changesets.
27 * 26 *
34 public interface HgChangesetTreeHandler { 33 public interface HgChangesetTreeHandler {
35 /** 34 /**
36 * @param entry access to various pieces of information about current tree node. Instances might be 35 * @param entry access to various pieces of information about current tree node. Instances might be
37 * reused across calls and shall not be kept by client's code 36 * reused across calls and shall not be kept by client's code
38 * @throws HgCallbackTargetException wrapper for any exception user code may produce 37 * @throws HgCallbackTargetException wrapper for any exception user code may produce
39 * @throws CancelledException if execution of the operation was cancelled
40 */ 38 */
41 public void next(HgChangesetTreeHandler.TreeElement entry) throws HgCallbackTargetException, CancelledException; 39 public void treeElement(HgChangesetTreeHandler.TreeElement entry) throws HgCallbackTargetException;
42 40
43 interface TreeElement { 41 interface TreeElement {
44 /** 42 /**
45 * Revision of the revlog being iterated. For example, when walking file history, return value represents file revisions. 43 * Revision of the revlog being iterated. For example, when walking file history, return value represents file revisions.
46 * 44 *