Package org.tmatesoft.hg.repo.HgRemoteRepository

Examples of org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch


    // scroll up to common head.
    while (!toQuery.isEmpty()) {
      List<RemoteBranch> remoteBranches = remoteRepo.branches(toQuery)//head, root, first parent, second parent
      toQuery.clear();
      while(!remoteBranches.isEmpty()) {
        RemoteBranch rb = remoteBranches.remove(0);
        // I assume branches remote call gives branches with head equal to what I pass there, i.e.
        // that I don't need to check whether rb.head is unknown.
        if (localRepo.knownNode(rb.root)) {
          // we known branch start, common head is somewhere in its descendants line 
          checkUp2Head.add(rb);
View Full Code Here


    HashMap<Nodeid, BranchChain> head2chain = new HashMap<Nodeid, BranchChain>();
    while (!toQuery.isEmpty()) {
      List<RemoteBranch> remoteBranches = remoteRepo.branches(new ArrayList<Nodeid>(toQuery))//head, root, first parent, second parent
      toQuery.clear();
      while(!remoteBranches.isEmpty()) {
        RemoteBranch rb = remoteBranches.remove(0);
        BranchChain chainElement = head2chain.get(rb.head);
        if (chainElement == null) {
          chainElement = new BranchChain(rb.head);
          // record this unknown branch to download later
          branches2load.add(chainElement);
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.