Mercurial > hg4j
diff src/org/tmatesoft/hg/core/HgChangeset.java @ 211:644ee58c9f16
Compound HgDate object to provide flexible access to change date/time information
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 29 Apr 2011 02:37:52 +0200 |
parents | e2115da4cf6a |
children | 1792b37650f2 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgChangeset.java Thu Apr 28 03:55:23 2011 +0200 +++ b/src/org/tmatesoft/hg/core/HgChangeset.java Fri Apr 29 02:37:52 2011 +0200 @@ -95,8 +95,12 @@ public String getBranch() { return changeset.branch(); } - public String getDate() { - return changeset.dateString(); + + /** + * @return used to be String, now {@link HgDate}, use {@link HgDate#toString()} to get same result as before + */ + public HgDate getDate() { + return new HgDate(changeset.date().getTime(), changeset.timezone()); } public Nodeid getManifestRevision() { return changeset.manifest();