Package org.tmatesoft.hg.repo.HgRepoConfig

Examples of org.tmatesoft.hg.repo.HgRepoConfig.Section


    //
    HgRepository repo = new HgLookup().detect(repoLoc);
    final HgRepoConfig cfg = repo.getConfiguration();
    assertNotNull(cfg.getPaths());
    assertNotNull(cfg.getExtensions());
    final Section dne = cfg.getSection("does-not-exist");
    assertNotNull(dne);
    assertFalse(dne.exists());
    assertEquals(username, cfg.getSection("ui").getString("username", null));
    final PathsSection p = cfg.getPaths();
    assertTrue(p.getPathSymbolicNames().contains(path1_key));
    assertEquals(path1_value, p.getString(path1_key, null));
    assertTrue(p.hasDefault());
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.repo.HgRepoConfig.Section

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.