# HG changeset patch # User Artem Tikhomirov # Date 1294972626 -3600 # Node ID 21e26da142fa15977a58f61a899f8b1f09fe1b16 # Parent 4e9b66b07a2831722cd5aabe99a9460f9b3cfcbf Time parsing in Changeset diff -r 4e9b66b07a28 -r 21e26da142fa src/com/tmate/hgkit/ll/Changeset.java --- a/src/com/tmate/hgkit/ll/Changeset.java Fri Jan 14 01:07:05 2011 +0100 +++ b/src/com/tmate/hgkit/ll/Changeset.java Fri Jan 14 03:37:06 2011 +0100 @@ -5,6 +5,8 @@ import java.io.UnsupportedEncodingException; import java.util.ArrayList; +import java.util.Date; +import java.util.Locale; /** * @see mercurial/changelog.py:read() @@ -28,14 +30,18 @@ private String user; private String comment; private ArrayList files; - private String timezone; // FIXME + private Date time; + private String extras; // TODO branch, etc. public void dump() { - System.out.println("User:" + user); - System.out.println("Comment:" + comment); - System.out.println("Manifest:" + manifest); - System.out.println("Date:" + timezone); + System.out.println("User: " + user); + System.out.println("Comment: " + comment); + System.out.println("Manifest: " + manifest); + System.out.printf(Locale.US, "Date: %ta %