Mercurial > hg4j
comparison 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 |
comparison
equal
deleted
inserted
replaced
210:6a2481866491 | 211:644ee58c9f16 |
---|---|
93 return changeset.comment(); | 93 return changeset.comment(); |
94 } | 94 } |
95 public String getBranch() { | 95 public String getBranch() { |
96 return changeset.branch(); | 96 return changeset.branch(); |
97 } | 97 } |
98 public String getDate() { | 98 |
99 return changeset.dateString(); | 99 /** |
100 * @return used to be String, now {@link HgDate}, use {@link HgDate#toString()} to get same result as before | |
101 */ | |
102 public HgDate getDate() { | |
103 return new HgDate(changeset.date().getTime(), changeset.timezone()); | |
100 } | 104 } |
101 public Nodeid getManifestRevision() { | 105 public Nodeid getManifestRevision() { |
102 return changeset.manifest(); | 106 return changeset.manifest(); |
103 } | 107 } |
104 | 108 |