Mercurial > hg4j
diff src/com/tmate/hgkit/console/Log.java @ 3:24bb4f365164
Rudimentary log functionality with basic infrastructure is in place
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 Dec 2010 02:50:36 +0100 |
parents | 08db726a0fb7 |
children | aa1912c70b36 |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/console/Log.java Sun Dec 19 05:41:31 2010 +0100 +++ b/src/com/tmate/hgkit/console/Log.java Mon Dec 20 02:50:36 2010 +0100 @@ -21,18 +21,22 @@ return; } System.out.println(hgRepo.getLocation()); - final Changeset.Callback callback = new Changeset.Callback() { + final Changeset.Inspector callback = new Changeset.Inspector() { public void next(Changeset cset) { - System.out.println(); + System.out.println("==>"); + cset.dump(); } }; HgDataFile f1 = hgRepo.getFileNode("hello.c"); System.out.println("Complete of a file:"); f1.history(callback); - System.out.println("Range 1-3:"); - f1.history(1,3, callback); // +// System.out.println("\n\n========================="); +// System.out.println("Range 1-3:"); +// f1.history(1,3, callback); + // + System.out.println("\n\n========================="); System.out.println("Complete of a repo:"); hgRepo.getChangelog().all(callback); //new ChangelogWalker().setFile("hello.c").setRevisionRange(1, 4).accept(new Visitor);