comparison src/org/tmatesoft/hg/core/HgIncomingCommand.java @ 380:9517df1ef7ec

Comments/javadoc
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 09 Feb 2012 18:57:14 +0100
parents 189dc6dc1c3e
children 7f136a3fa671
comparison
equal deleted inserted replaced
379:fa2be7a05af6 380:9517df1ef7ec
98 * Lightweight check for incoming changes, gives only list of revisions to pull. 98 * Lightweight check for incoming changes, gives only list of revisions to pull.
99 * Reported changes are from any branch (limits set by {@link #branch(String)} are not taken into account. 99 * Reported changes are from any branch (limits set by {@link #branch(String)} are not taken into account.
100 * 100 *
101 * @return list of nodes present at remote and missing locally 101 * @return list of nodes present at remote and missing locally
102 * @throws HgRemoteConnectionException when failed to communicate with remote repository 102 * @throws HgRemoteConnectionException when failed to communicate with remote repository
103 * @throws HgInvalidControlFileException FIXME 103 * @throws HgInvalidControlFileException if access to revlog index/data entry failed
104 * @throws CancelledException 104 * @throws CancelledException if execution of the command was cancelled
105 */ 105 */
106 public List<Nodeid> executeLite() throws HgRemoteConnectionException, HgInvalidControlFileException, CancelledException { 106 public List<Nodeid> executeLite() throws HgRemoteConnectionException, HgInvalidControlFileException, CancelledException {
107 LinkedHashSet<Nodeid> result = new LinkedHashSet<Nodeid>(); 107 LinkedHashSet<Nodeid> result = new LinkedHashSet<Nodeid>();
108 RepositoryComparator repoCompare = getComparator(); 108 RepositoryComparator repoCompare = getComparator();
109 for (BranchChain bc : getMissingBranches()) { 109 for (BranchChain bc : getMissingBranches()) {
120 120
121 /** 121 /**
122 * Full information about incoming changes 122 * Full information about incoming changes
123 * 123 *
124 * @throws HgRemoteConnectionException when failed to communicate with remote repository 124 * @throws HgRemoteConnectionException when failed to communicate with remote repository
125 * @throws HgInvalidControlFileException FIXME 125 * @throws HgInvalidControlFileException if access to revlog index/data entry failed
126 * @throws HgInvalidFileException to indicate failure working with locally downloaded changes in a bundle file 126 * @throws HgInvalidFileException to indicate failure working with locally downloaded changes in a bundle file
127 * @throws HgCallbackTargetException to re-throw exception from the handler 127 * @throws HgCallbackTargetException to re-throw exception from the handler
128 * @throws CancelledException 128 * @throws CancelledException if execution of the command was cancelled
129 */ 129 */
130 public void executeFull(final HgChangesetHandler handler) throws HgRemoteConnectionException, HgInvalidControlFileException, HgInvalidFileException, HgCallbackTargetException, CancelledException { 130 public void executeFull(final HgChangesetHandler handler) throws HgRemoteConnectionException, HgInvalidControlFileException, HgInvalidFileException, HgCallbackTargetException, CancelledException {
131 if (handler == null) { 131 if (handler == null) {
132 throw new IllegalArgumentException("Delegate can't be null"); 132 throw new IllegalArgumentException("Delegate can't be null");
133 } 133 }