Examples of parents()


Examples of com.google.gwt.query.client.GQuery.parents()

                    searchField.val("");
                }
                $(document).click(clickTestAction);
                resultsShow();
            } else if (!isMultiple && !$e.isEmpty()
                    && ($e.get(0) == selectedItem.get(0) || $e.parents("a." + css.chznSingle()).length() > 0)) {
                e.preventDefault();
                resultsToggle();
            }

            activateField(e);
View Full Code Here

Examples of edu.indiana.dlib.metsnav.data.AtomicItem.parents()

            dataStream.put(entry.getKey(), entry.getValue());
        }
        aim.put("dataStream", dataStream);
       
        aim.put("imageText", ai.getLabel());
        List<String> parents = ai.parents();
        JSONArray parentList = new JSONArray();
        for (String string : parents) {
            parentList.add(string);
        }
        aim.put("parents", parentList);
View Full Code Here

Examples of es.ipsa.atril.doc.user.Document.parents()

    super.save(oSes);
  }

  public CustomerAccount customerAccount(Dms oDms) {
    Document txps = oDms.getDocument(getDocument().parents().get(0).id());
    return new CustomerAccount(oDms, txps.parents().get(0).id());
  }

  public AccountingAccounts accounts(AtrilSession oSes)
    throws ElementNotFoundException, NotEnoughRightsException, DmsException, InstantiationException, IllegalStateException, IllegalAccessException {
    AccountingAccounts oAccountingAccounts = null;
View Full Code Here

Examples of org.tmatesoft.hg.internal.DirstateBuilder.parents()

      Internals implRepo = Internals.getInstance(repo);
      final DirstateBuilder dirstateBuilder = new DirstateBuilder(implRepo);
      dirstateBuilder.fillFrom(new DirstateReader(implRepo, new Path.SimpleSource(repo.getSessionContext().getPathFactory(), cacheFiles)));
      final HgChangelog clog = repo.getChangelog();
      final Nodeid headCset1 = clog.getRevision(firstCset);
      dirstateBuilder.parents(headCset1, clog.getRevision(secondCset));
      //
      MergeStateBuilder mergeStateBuilder = new MergeStateBuilder(implRepo);
      mergeStateBuilder.prepare(headCset1);

      ManifestRevision m1, m2, ma;
View Full Code Here

Examples of org.tmatesoft.hg.internal.DirstateBuilder.parents()

          return true;
        }
      };
      // checkout tip if no revision set
      final int coRevision = revisionToCheckout.get(HgRepository.TIP);
      dirstateBuilder.parents(repo.getChangelog().getRevision(coRevision), null);
      repo.getManifest().walk(coRevision, coRevision, insp);
      worker.checkFailed();
      progress.worked(3);
      cancellation.checkCancelled();
      File dirstateFile = internalRepo.getRepositoryFile(Dirstate);
View Full Code Here

Examples of org.tmatesoft.hg.internal.DirstateReader.parents()

        default: throw new HgInvalidStateException(String.format("Unexpected entry in the dirstate: %s", kind));
        }
        return true;
      }
    });
    parents = dirstateReader.parents();
  }

  /**
   * @return pair of working copy parents, with {@link Nodeid#NULL} for missing values.
   */
 
View Full Code Here

Examples of org.tmatesoft.hg.repo.HgChangelog.parents()

    final HgChangelog clog = repo.getChangelog();
    byte[] parent1 = new byte[Nodeid.SIZE], parent2 = new byte[Nodeid.SIZE];
    int[] parentRevs = new int[2];
    for (Nodeid n : elements) {
      assert clog.isKnown(n);
      clog.parents(clog.getRevisionIndex(n), parentRevs, parent1, parent2);
      if (parentRevs[0] != NO_REVISION && elements.contains(new Nodeid(parent1, false))) {
        copy.remove(n);
        continue;
      }
      if (parentRevs[1] != NO_REVISION && elements.contains(new Nodeid(parent2, false))) {
View Full Code Here

Examples of org.tmatesoft.hg.repo.HgDataFile.parents()

      private int[] parentRevisions = new int[2];
     
      public void next(int revisionNumber, Nodeid nodeid, RawChangeset cset) {
        try {
          fileChangesetRevisions[fileLocalRevisions] = revisionNumber;
          fn.parents(fileLocalRevisions, parentRevisions, null, null);
          boolean join = parentRevisions[0] != -1 && parentRevisions[1] != -1;
          if (join) {
            System.out.print("join[");
          }
          if (parentRevisions[0] != -1) {
View Full Code Here

Examples of org.tmatesoft.hg.repo.HgDataFile.parents()

          byte[] content = sink.toArray();
          System.out.println(new String(content));
          int[] parentRevisions = new int[2];
          byte[] parent1 = new byte[20];
          byte[] parent2 = new byte[20];
          fn.parents(i, parentRevisions, parent1, parent2);
          System.out.println(dh.sha1(parent1, parent2, content).asHexString());
        }
      } else {
        System.out.println(">>>Not found!");
      }
View Full Code Here

Examples of org.tmatesoft.hg.repo.HgDataFile.parents()

      int revisionIndex = fn.getRevisionIndex(revision);
      int[] pr = new int[2];
      byte[] p1 = new byte[20], p2 = new byte[20];
      // XXX Revlog#parents is not the best method to use here
      // need smth that gives Nodeids (piped through Pool<Nodeid> from repo's context)
      fn.parents(revisionIndex, pr, p1, p2);
      parents = new Pair<Nodeid, Nodeid>(Nodeid.fromBinary(p1, 0), Nodeid.fromBinary(p2, 0));
    }
    return parents;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.