# HG changeset patch # User Artem Tikhomirov # Date 1293371768 -3600 # Node ID 442dc6ee647bd3f69a1678c49bed741f1ff648db # Parent df8c67f3006a16ddbb13ee0dfc84c2f14cfb44fa Show correct time diff -r df8c67f3006a -r 442dc6ee647b design.txt --- a/design.txt Sun Dec 26 03:21:17 2010 +0100 +++ b/design.txt Sun Dec 26 14:56:08 2010 +0100 @@ -24,12 +24,14 @@ + command-line samples (-R, filenames) (Log & Cat) to show on any repo +buildfile + run samples *input stream impl + lifecycle. Step forward with FileChannel and ByteBuffer, although questionable accomplishment (looks bit complicated, cumbersome) ++ dirstate.mtime calculate sha1 digest for file to see I can deal with nodeid DataAccess - collect debug info (buffer misses, file size/total read operations) to find out better strategy to buffer size detection. delta merge Changeset to get index (local revision number) - +.hgignored processing +RevisionWalker (on manifest) and WorkingCopyWalker (io.File) talking to ? and/or dirstate >>>> Effective file read/data access diff -r df8c67f3006a -r 442dc6ee647b src/com/tmate/hgkit/ll/HgDirstate.java --- a/src/com/tmate/hgkit/ll/HgDirstate.java Sun Dec 26 03:21:17 2010 +0100 +++ b/src/com/tmate/hgkit/ll/HgDirstate.java Sun Dec 26 14:56:08 2010 +0100 @@ -96,7 +96,7 @@ char[] x = new char[] {'n', 'a', 'r', 'm' }; for (int i = 0; i < all.length; i++) { for (Record r : all[i]) { - System.out.printf("%c %3o%6d %30tc\t\t%s", x[i], r.mode, r.size, (long) r.time, r.name1); + System.out.printf("%c %3o%6d %30tc\t\t%s", x[i], r.mode, r.size, (long) r.time * 1000, r.name1); if (r.name2 != null) { System.out.printf(" --> %s", r.name2); }