Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgRemoteRepository.java @ 170:71ddbf8603e8
Initial clone: populate given directory from a bundle. Everything but remote server access is there, albeit prototype code style
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Wed, 23 Mar 2011 20:46:00 +0100 |
| parents | |
| children | 2c3e96674e2a |
comparison
equal
deleted
inserted
replaced
| 169:8c8e3f372fa1 | 170:71ddbf8603e8 |
|---|---|
| 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.repo; | |
| 18 | |
| 19 import java.io.File; | |
| 20 import java.util.List; | |
| 21 | |
| 22 import org.tmatesoft.hg.core.HgException; | |
| 23 import org.tmatesoft.hg.core.Nodeid; | |
| 24 | |
| 25 /** | |
| 26 * WORK IN PROGRESS, DO NOT USE | |
| 27 * | |
| 28 * @see http://mercurial.selenic.com/wiki/WireProtocol | |
| 29 * | |
| 30 * @author Artem Tikhomirov | |
| 31 * @author TMate Software Ltd. | |
| 32 */ | |
| 33 public class HgRemoteRepository { | |
| 34 | |
| 35 // WireProtocol wiki: roots = a list of the latest nodes on every service side changeset branch that both the client and server know about. | |
| 36 public HgBundle getChanges(List<Nodeid> roots) throws HgException { | |
| 37 return new HgLookup().loadBundle(new File("/temp/hg/hg-bundle-000000000000-gz.tmp")); | |
| 38 } | |
| 39 } |
