comparison cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.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 ef8eba4aa215
children 1792b37650f2
comparison
equal deleted inserted replaced
210:6a2481866491 211:644ee58c9f16
107 int p1x = p1 == Nodeid.NULL ? -1 : repo.getChangelog().getLocalRevision(p1); 107 int p1x = p1 == Nodeid.NULL ? -1 : repo.getChangelog().getLocalRevision(p1);
108 int p2x = p2 == Nodeid.NULL ? -1 : repo.getChangelog().getLocalRevision(p2); 108 int p2x = p2 == Nodeid.NULL ? -1 : repo.getChangelog().getLocalRevision(p2);
109 int mx = repo.getManifest().getLocalRevision(cset.getManifestRevision()); 109 int mx = repo.getManifest().getLocalRevision(cset.getManifestRevision());
110 f.format("parent: %d:%s\nparent: %d:%s\nmanifest: %d:%s\n", p1x, p1, p2x, p2, mx, cset.getManifestRevision()); 110 f.format("parent: %d:%s\nparent: %d:%s\nmanifest: %d:%s\n", p1x, p1, p2x, p2, mx, cset.getManifestRevision());
111 } 111 }
112 f.format("user: %s\ndate: %s\n", cset.getUser(), cset.getDate()); 112 f.format("user: %s\ndate: %s\n", cset.getUser(), cset.getDate().toString());
113 if (!complete && verbose) { 113 if (!complete && verbose) {
114 final List<Path> files = cset.getAffectedFiles(); 114 final List<Path> files = cset.getAffectedFiles();
115 sb.append("files: "); 115 sb.append("files: ");
116 for (Path s : files) { 116 for (Path s : files) {
117 sb.append(' '); 117 sb.append(' ');