Mercurial > hg4j
comparison cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java @ 274:9fb50c04f03c
Use Nodeid.isNull check instead of NULL.equals
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 25 Aug 2011 03:57:39 +0200 |
parents | 1792b37650f2 |
children | fa4aea41746e |
comparison
equal
deleted
inserted
replaced
273:8f872bd7ddd2 | 274:9fb50c04f03c |
---|---|
102 sb.append('\n'); | 102 sb.append('\n'); |
103 } | 103 } |
104 if (complete) { | 104 if (complete) { |
105 Nodeid p1 = cset.getFirstParentRevision(); | 105 Nodeid p1 = cset.getFirstParentRevision(); |
106 Nodeid p2 = cset.getSecondParentRevision(); | 106 Nodeid p2 = cset.getSecondParentRevision(); |
107 int p1x = p1 == Nodeid.NULL ? -1 : repo.getChangelog().getLocalRevision(p1); | 107 int p1x = p1.isNull() ? -1 : repo.getChangelog().getLocalRevision(p1); |
108 int p2x = p2 == Nodeid.NULL ? -1 : repo.getChangelog().getLocalRevision(p2); | 108 int p2x = p2.isNull() ? -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().toString()); | 112 f.format("user: %s\ndate: %s\n", cset.getUser(), cset.getDate().toString()); |
113 if (!complete && verbose) { | 113 if (!complete && verbose) { |