comparison src/org/tmatesoft/hg/repo/HgRemoteRepository.java @ 184:ec1820f64d2b

Complete incoming cmdline client, with both lite (revisions) and complete (full changeset) information dump
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 13 Apr 2011 19:09:10 +0200
parents cd3371670f0b
children 44a34baabea0
comparison
equal deleted inserted replaced
183:9807bf8f3a9c 184:ec1820f64d2b
299 } catch (IOException ex) { 299 } catch (IOException ex) {
300 throw new HgException(ex); 300 throw new HgException(ex);
301 } 301 }
302 } 302 }
303 303
304 // WireProtocol wiki: roots = a list of the latest nodes on every service side changeset branch that both the client and server know about. 304 // WireProtocol wiki: roots = a list of the latest nodes on every service side changeset branch that both the client and server know about.
305 // perhaps, shall be named 'changegroup'
305 public HgBundle getChanges(List<Nodeid> roots) throws HgException { 306 public HgBundle getChanges(List<Nodeid> roots) throws HgException {
306 StringBuilder sb = new StringBuilder(20 + roots.size() * 41); 307 StringBuilder sb = new StringBuilder(20 + roots.size() * 41);
307 sb.append("roots="); 308 sb.append("roots=");
308 for (Nodeid n : roots) { 309 for (Nodeid n : roots) {
309 sb.append(n.toString()); 310 sb.append(n.toString());
383 public Range(Nodeid from, Nodeid to) { 384 public Range(Nodeid from, Nodeid to) {
384 start = from; 385 start = from;
385 end = to; 386 end = to;
386 } 387 }
387 } 388 }
389
388 public static final class RemoteBranch { 390 public static final class RemoteBranch {
389 public final Nodeid head, root, p1, p2; 391 public final Nodeid head, root, p1, p2;
390 392
391 public RemoteBranch(Nodeid h, Nodeid r, Nodeid parent1, Nodeid parent2) { 393 public RemoteBranch(Nodeid h, Nodeid r, Nodeid parent1, Nodeid parent2) {
392 head = h; 394 head = h;