Mercurial > hg4j
diff cmdline/org/tmatesoft/hg/console/Main.java @ 229:1ec6b327a6ac
Scope for status reworked: explicit files or a general matcher
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 31 May 2011 05:23:07 +0200 |
parents | 26ad7827a62d |
children | 1792b37650f2 |
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java Fri May 27 03:01:26 2011 +0200 +++ b/cmdline/org/tmatesoft/hg/console/Main.java Tue May 31 05:23:07 2011 +0200 @@ -28,6 +28,7 @@ import org.tmatesoft.hg.core.Nodeid; import org.tmatesoft.hg.internal.ByteArrayChannel; import org.tmatesoft.hg.internal.DigestHelper; +import org.tmatesoft.hg.internal.PathGlobMatcher; import org.tmatesoft.hg.repo.HgBranches; import org.tmatesoft.hg.repo.HgDataFile; import org.tmatesoft.hg.repo.HgInternals; @@ -75,9 +76,26 @@ private void testFileStatus() { // final Path path = Path.create("src/org/tmatesoft/hg/util/"); - final Path path = Path.create("src/org/tmatesoft/hg/internal/Experimental.java"); - HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, path); +// final Path path = Path.create("src/org/tmatesoft/hg/internal/Experimental.java"); +// final Path path = Path.create("dir/file3"); +// HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, path); + HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, new PathGlobMatcher("*")); wcsc.walk(TIP, new StatusDump()); + new HgManifestCommand(hgRepo).dirs(true).revision(TIP).execute(new HgManifestCommand.Handler() { + + public void file(FileRevision fileRevision) { + } + + public void end(Nodeid manifestRevision) { + } + + public void dir(Path p) { + System.out.println(p); + } + + public void begin(Nodeid manifestRevision) { + } + }); } private void dumpBranches() {