Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgInternals.java @ 284:7232b94f2ae3
HgDirstate shall operate with Path instead of String for file names. Use of Pair instead of array of unspecified length for parents.
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 03 Sep 2011 13:12:13 +0200 |
parents | 7af843ecc378 |
children | 981f9f50bb6c |
comparison
equal
deleted
inserted
replaced
283:7a8e1a305a78 | 284:7232b94f2ae3 |
---|---|
29 import org.tmatesoft.hg.internal.Experimental; | 29 import org.tmatesoft.hg.internal.Experimental; |
30 import org.tmatesoft.hg.internal.RelativePathRewrite; | 30 import org.tmatesoft.hg.internal.RelativePathRewrite; |
31 import org.tmatesoft.hg.util.FileIterator; | 31 import org.tmatesoft.hg.util.FileIterator; |
32 import org.tmatesoft.hg.util.FileWalker; | 32 import org.tmatesoft.hg.util.FileWalker; |
33 import org.tmatesoft.hg.util.Path; | 33 import org.tmatesoft.hg.util.Path; |
34 import org.tmatesoft.hg.util.PathPool; | |
34 import org.tmatesoft.hg.util.PathRewrite; | 35 import org.tmatesoft.hg.util.PathRewrite; |
35 | 36 |
36 | 37 |
37 /** | 38 /** |
38 * DO NOT USE THIS CLASS, INTENDED FOR TESTING PURPOSES. | 39 * DO NOT USE THIS CLASS, INTENDED FOR TESTING PURPOSES. |
51 public HgInternals(HgRepository hgRepo) { | 52 public HgInternals(HgRepository hgRepo) { |
52 repo = hgRepo; | 53 repo = hgRepo; |
53 } | 54 } |
54 | 55 |
55 public void dumpDirstate() { | 56 public void dumpDirstate() { |
56 repo.loadDirstate().dump(); | 57 repo.loadDirstate(new PathPool(new PathRewrite.Empty())).dump(); |
57 } | 58 } |
58 | 59 |
59 public boolean[] checkIgnored(String... toCheck) { | 60 public boolean[] checkIgnored(String... toCheck) { |
60 HgIgnore ignore = repo.getIgnore(); | 61 HgIgnore ignore = repo.getIgnore(); |
61 boolean[] rv = new boolean[toCheck.length]; | 62 boolean[] rv = new boolean[toCheck.length]; |