comparison src/org/tmatesoft/hg/core/HgOutgoingCommand.java @ 181:cd3371670f0b

Refactor incoming and outgoing code to be shared with RepositoryComparator. Placeholders for in/out commands. Refactor common remote lookup code
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 12 Apr 2011 19:10:38 +0200
parents
children e5407b5a586a
comparison
equal deleted inserted replaced
180:42fe9a94b9d0 181:cd3371670f0b
1 /*
2 * Copyright (c) 2011 TMate Software Ltd
3 *
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
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * For information on how to redistribute this software under
14 * the terms of a license other than GNU General Public License
15 * contact TMate Software at support@hg4j.com
16 */
17 package org.tmatesoft.hg.core;
18
19 import java.util.List;
20
21 import org.tmatesoft.hg.repo.HgRepository;
22 import org.tmatesoft.hg.util.CancelledException;
23
24 /**
25 *
26 * @author Artem Tikhomirov
27 * @author TMate Software Ltd.
28 */
29 public class HgOutgoingCommand {
30 private final HgRepository repo;
31 private boolean includeSubrepo;
32
33 public HgOutgoingCommand(HgRepository hgRepo) {
34 repo = hgRepo;
35 }
36
37 /**
38 * Select specific branch to pull
39 * @return <code>this</code> for convenience
40 */
41 public HgOutgoingCommand branch(String branch) {
42 throw HgRepository.notImplemented();
43 }
44
45 /**
46 *
47 * @return <code>this</code> for convenience
48 */
49 public HgOutgoingCommand subrepo(boolean include) {
50 includeSubrepo = include;
51 throw HgRepository.notImplemented();
52 }
53
54 public List<Nodeid> executeLite(Object context) throws HgException, CancelledException {
55 throw HgRepository.notImplemented();
56 }
57
58 public void executeFull(HgLogCommand.Handler handler) throws HgException, CancelledException {
59 throw HgRepository.notImplemented();
60 }
61 }