Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.WinToNixPathRewrite


   */
  public static HgIgnore newHgIgnore(Reader source, PathRewrite globPathRewrite) throws IOException {
    if (globPathRewrite == null) {
      // shall match that of HgRepository#getIgnore() (Internals#buildNormalizePathRewrite())
      if (Internals.runningOnWindows()) {
        globPathRewrite = new WinToNixPathRewrite();
      } else {
        globPathRewrite = new PathRewrite.Empty();
      }
    }
    HgIgnore hgIgnore = new HgIgnore(globPathRewrite);
View Full Code Here


  @Test
  public void testGlobWithWindowsPathSeparators() throws Exception {
    String s = "syntax:glob\n" + "bin\\*\n" + "*\\dir*\\*.a\n" + "*\\_ReSharper*\\\n";
    // explicit PathRewrite for the test to run on *nix as well
    HgIgnore hgIgnore = HgInternals.newHgIgnore(new StringReader(s), new WinToNixPathRewrite());
    Path[] toPass = new Path[] {
        create("bind/x"),
        create("dir/x.a"),
        create("dir-b/x.a"),
        create("a/dir-b/x.b"),
View Full Code Here

TOP

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

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.