Examples of checkCancelled()


Examples of org.exist.versioning.svn.internal.wc.admin.SVNWCAccess.checkCancelled()

    }

    public boolean handleCommitPath(String commitPath, ISVNEditor commitEditor) throws SVNException {
        SVNCommitItem item = (SVNCommitItem) myCommitItems.get(commitPath);
        SVNWCAccess wcAccess = item.getWCAccess();
        wcAccess.checkCancelled();
        if (item.isCopied()) {
            if (item.getCopyFromURL() == null) {
                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.BAD_URL, "Commit item ''{0}'' has copy flag but no copyfrom URL", item.getFile());                   
                SVNErrorManager.error(err, SVNLogType.WC);
            } else if (item.getRevision().getNumber() < 0) {
View Full Code Here

Examples of org.exist.versioning.svn.internal.wc.admin.SVNWCAccess.checkCancelled()

    public void sendTextDeltas(ISVNEditor editor) throws SVNException {
        for (Iterator paths = myModifiedFiles.keySet().iterator(); paths.hasNext();) {
            String path = (String) paths.next();
            SVNCommitItem item = (SVNCommitItem) myModifiedFiles.get(path);
            SVNWCAccess wcAccess = item.getWCAccess();
            wcAccess.checkCancelled();

            SVNEvent event = SVNEventFactory.createSVNEvent(new Resource(wcAccess.getAnchor(), item.getPath()),SVNNodeKind.FILE, null, SVNRepository.INVALID_REVISION, SVNEventAction.COMMIT_DELTA_SENT, null, null, null);
            wcAccess.handleEvent(event, ISVNEventHandler.UNKNOWN);

            SVNAdminArea dir = wcAccess.retrieve(item.getFile().getParentFile());
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

        // sink itself still may supply CS
        sinkWrap = sink;
      } else {
        // try CS from sink, if any. at least there is CS from command
        CancelSupport cancelHelper = getCancelSupport(sink, true);
        cancelHelper.checkCancelled();
        sinkWrap = new ByteChannelProxy(sink, cancelHelper);
      }
      dataFile.contentWithFilters(revToExtract, sinkWrap);
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

    if (file == null) {
      throw new HgBadArgumentException("Command needs file argument", null);
    }
    final ProgressSupport progress = getProgressSupport(inspector);
    final CancelSupport cancellation = getCancelSupport(inspector, true);
    cancellation.checkCancelled();
    progress.start(200);
    try {
      HgDataFile df = repo.getFileNode(file);
      if (!df.exists()) {
        return;
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

//      ReverseAnnotateInspector ai = new ReverseAnnotateInspector();
      ForwardAnnotateInspector ai = new ForwardAnnotateInspector();
      cmd.order(ai.iterateDirection());
      //
      cmd.executeAnnotate(ai);
      cancellation.checkCancelled();
      final int lastCsetWithFileChange;
      Nodeid fileRev = repo.getManifest().getFileRevision(annotateRevIndex, df.getPath());
      if (fileRev != null) {
        lastCsetWithFileChange = df.getChangesetRevisionIndex(df.getRevisionIndex(fileRev));
      } else {
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

    repoWalker.reset();
    TreeSet<Path> processed = new TreeSet<Path>(); // names of files we handled as they known to Dirstate (not FileIterator)
    final HgDirstate ds = getDirstateImpl();
    TreeSet<Path> knownEntries = ds.all(); // here just to get dirstate initialized
    while (repoWalker.hasNext()) {
      cs.checkCancelled();
      repoWalker.next();
      final Path fname = getPathPool().mangle(repoWalker.name());
      FileInfo f = repoWalker.file();
      Path knownInDirstate;
      if (!f.exists()) {
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

      // as it's sort of last resort - what to do with otherwise unprocessed base revision files
      for (Path fromBase : baseRevFiles) {
        if (repoWalker.inScope(fromBase)) {
          inspector.removed(fromBase);
          processed.add(fromBase);
          cs.checkCancelled();
        }
      }
    }
    knownEntries.removeAll(processed);
    for (Path m : knownEntries) {
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

    for (Path m : knownEntries) {
      if (!repoWalker.inScope(m)) {
        // do not report as missing/removed those FileIterator doesn't care about.
        continue;
      }
      cs.checkCancelled();
      // missing known file from a working dir 
      if (ds.checkRemoved(m) == null) {
        // not removed from the repository = 'deleted' 
        inspector.missing(m);
      } else {
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

        if (nidR1.equals(nidR2) && flagsR2 == flagsR1) {
          inspector.clean(r2fname);
        } else {
          inspector.modified(r2fname);
        }
        cs.checkCancelled();
      } else {
        try {
          Path copyTarget = r2fname;
          Path copyOrigin = detectCopies ? getOriginIfCopy(repo, copyTarget, r2.nodeid(copyTarget), allBaseFiles, rev1) : null;
          if (copyOrigin != null) {
View Full Code Here

Examples of org.tmatesoft.hg.util.CancelSupport.checkCancelled()

        } catch (HgInvalidFileException ex) {
          // record exception to a mediator and continue,
          // for a single file not to be irresolvable obstacle for a status operation
          inspector.invalid(r2fname, ex);
        }
        cs.checkCancelled();
      }
    }
    for (Path r1fname : r1Files) {
      if (scope.accept(r1fname)) {
        inspector.removed(r1fname);
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.