Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.RepoInitializer


  @Test
  public void testInitEmpty() throws Exception {
    File repoLoc = RepoUtils.createEmptyDir("test-init");
    new HgInitCommand().location(repoLoc).revlogV1().dotencode(false).fncache(false).execute();
   
    int requires = new RepoInitializer().initRequiresFromFile(new File(repoLoc, ".hg")).getRequires();
    errorCollector.assertTrue(0 != (requires & REVLOGV1));
    errorCollector.assertTrue(0 != (requires & STORE));
    errorCollector.assertTrue(0 == (requires & DOTENCODE));
    errorCollector.assertTrue(0 == (requires & FNCACHE));
    errorCollector.assertTrue(0 == (requires & REVLOGV0));
View Full Code Here


    private RevlogCompressor revlogDataZip;

    public WriteDownMate(SessionContext sessionCtx, File destDir, ProgressSupport progress, CancelSupport cancel) {
      ctx = sessionCtx;
      hgDir = new File(destDir, ".hg");
      repoInit = new RepoInitializer();
      repoInit.setRequires(REVLOGV1 | STORE | FNCACHE | DOTENCODE);
      storagePathHelper = repoInit.buildDataFilesHelper(sessionCtx);
      progressSupport = progress;
      cancelSupport = cancel;
      revlogDataZip = new RevlogCompressor(sessionCtx);
View Full Code Here

    if (".hg".equals(location.getName())) {
      repoDir = location;
    } else {
      repoDir = new File(location, ".hg");
    }
    new RepoInitializer().setRequires(requiresFlags).initEmptyRepository(repoDir);
    return getNewRepository();
  }
View Full Code Here

  }
 
  public TestStorePath() {
    propertyOverrides.put("hg.consolelog.debug", true);
    sessionCtx = new BasicSessionContext(propertyOverrides, null);
    repoInit = new RepoInitializer().setRequires(REVLOGV1 | STORE | FNCACHE | DOTENCODE);
    storePathHelper = repoInit.buildDataFilesHelper(sessionCtx);
  }
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.internal.RepoInitializer

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.