Package org.tmatesoft.hg.repo

Examples of org.tmatesoft.hg.repo.HgBundle.unlink()


        RevisionSet rsCommon = new RevisionSet(common);
        HgRemoteRepository.Phases remotePhases = remote.getPhases();
        phaseHelper.synchronizeWithRemote(remotePhases, rsCommon.union(added));
      }
      progress.worked(5);
      incoming.unlink(); // keep the file only in case of failure
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    } finally {
      progress.done();
    }
View Full Code Here


        // pull changes
        completeChanges.inspectAll(mate);
        mate.checkFailure();
        mate.complete();
      } finally {
        completeChanges.unlink();
        progress.done();
      }
    } catch (HgRuntimeException ex) {
      throw new HgLibraryFailureException(ex);
    }
View Full Code Here

        }
      }
      // XXX WTF is obsolete in namespaces key??
      progress.worked(5);
      if (b != null) {
        b.unlink(); // keep the file only in case of failure
      }
    } catch (IOException ex) {
      throw new HgIOException(ex.getMessage(), null); // XXX not a nice idea to throw IOException from BundleGenerator#create
    } catch (HgRepositoryNotFoundException ex) {
      final HgInvalidStateException e = new HgInvalidStateException("Failed to load a just-created bundle");
View Full Code Here

    Collections.sort(affectedFiles);
    Collections.sort(foundFiles);
    errorCollector.assertEquals(affectedFiles, foundFiles);
    errorCollector.assertEquals(affectedFiles.size(), insp.filesEnter);
    errorCollector.assertEquals(affectedFiles.size(), insp.filesExit);
    b.unlink();
  }

  private static class DumbInspector implements HgBundle.Inspector {
    public boolean clogEnter, clogExit, manifestEnter, manifestExit;
    public int filesEnter, filesExit;
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.