Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.PathPool


  }

  /*package-local*/ Convertor<Path> getPathPool() {
    if (pathPool == null) {
      if (baseRevisionCollector == null) {
        pathPool = new PathPool(new PathRewrite.Empty());
      } else {
        return baseRevisionCollector.getPathPool();
      }
    }
    return pathPool;
View Full Code Here


    private CancelSupport cancelHelper;
   
    public void start(CancelSupport cs) {
      assert cs != null;
      // Manifest keeps normalized paths
      pathPool = new PathPool(new PathRewrite.Empty());
      cancelHelper = cs;
    }
View Full Code Here

    private final HgChangeset changeset;

    public Transformation(HgStatusCollector statusCollector, HgParentChildMap<HgChangelog> pw) {
      // files listed in a changeset don't need their names to be rewritten (they are normalized already)
      // pp serves as a cache for all filenames encountered and as a source for Path listed in the changeset
      PathPool pp = new PathPool(new PathRewrite.Empty());
      statusCollector.setPathPool(pp);
      changeset = new HgChangeset(statusCollector, pp);
      changeset.setParentHelper(pw);
    }
View Full Code Here

  private final PathPool pathHelper;

  public StatusOutputParser() {
//    pattern = Pattern.compile("^([MAR?IC! ]) ([\\w \\.-/\\\\]+)$", Pattern.MULTILINE);
    pattern = Pattern.compile("^([MAR?IC! ]) (.+)$", Pattern.MULTILINE);
    pathHelper = new PathPool(new PathRewrite() {
     
      private final boolean winPathSeparator = File.separatorChar == '\\';

      public CharSequence rewrite(CharSequence s) {
        if (winPathSeparator) {
View Full Code Here

TOP

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

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.