Mercurial > hg4j
diff src/com/tmate/hgkit/console/Manifest.java @ 22:603806cd2dc6
Status of local working dir against non-tip base revision
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 06 Jan 2011 03:30:20 +0100 |
parents | 40532cdc92fc |
children | 19e9e220bf68 |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/console/Manifest.java Wed Jan 05 04:10:28 2011 +0100 +++ b/src/com/tmate/hgkit/console/Manifest.java Thu Jan 06 03:30:20 2011 +0100 @@ -25,22 +25,24 @@ return; } System.out.println(hgRepo.getLocation()); - HgManifest.Inspector insp = new HgManifest.Inspector() { - public boolean begin(int revision, Nodeid nid) { - System.out.printf("%d : %s\n", revision, nid); - return true; - } - - public boolean next(Nodeid nid, String fname, String flags) { - System.out.println(nid + "\t" + fname + "\t\t" + flags); - return true; - } - - public boolean end(int revision) { - System.out.println(); - return true; - } - }; + HgManifest.Inspector insp = new Dump(); hgRepo.getManifest().walk(0, TIP, insp); } + + public static final class Dump implements HgManifest.Inspector { + public boolean begin(int revision, Nodeid nid) { + System.out.printf("%d : %s\n", revision, nid); + return true; + } + + public boolean next(Nodeid nid, String fname, String flags) { + System.out.println(nid + "\t" + fname + "\t\t" + flags); + return true; + } + + public boolean end(int revision) { + System.out.println(); + return true; + } + } }