Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Main.java @ 515:e6c8b9b654b2
Provide access to HgDataFile being iterated into HgChangesetTreeHandler.TreeElement to give context for renamed files
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 20:51:12 +0100 |
parents | 5dcb4581c8ef |
children | 0ae5768081aa |
comparison
equal
deleted
inserted
replaced
514:5dcb4581c8ef | 515:e6c8b9b654b2 |
---|---|
189 final Pair<Nodeid, Nodeid> parents = entry.parentRevisions(); | 189 final Pair<Nodeid, Nodeid> parents = entry.parentRevisions(); |
190 final boolean isJoin = !parents.first().isNull() && !parents.second().isNull(); | 190 final boolean isJoin = !parents.first().isNull() && !parents.second().isNull(); |
191 final boolean isFork = entry.children().size() > 1; | 191 final boolean isFork = entry.children().size() > 1; |
192 final HgChangeset cset = entry.changeset(); | 192 final HgChangeset cset = entry.changeset(); |
193 System.out.printf("%d:%s - %s (%s)\n", cset.getRevisionIndex(), cset.getNodeid().shortNotation(), cset.getComment(), cset.getPhase()); | 193 System.out.printf("%d:%s - %s (%s)\n", cset.getRevisionIndex(), cset.getNodeid().shortNotation(), cset.getComment(), cset.getPhase()); |
194 System.out.printf("Known as %s (file rev:%s)\n", entry.file().getPath(), entry.fileRevision().shortNotation()); | |
194 if (!isJoin && !isFork && !entry.children().isEmpty()) { | 195 if (!isJoin && !isFork && !entry.children().isEmpty()) { |
195 System.out.printf("\t=> %s\n", sb); | 196 System.out.printf("\t=> %s\n", sb); |
196 } | 197 } |
197 if (isJoin) { | 198 if (isJoin) { |
198 HgChangeset p1 = entry.parents().first(); | 199 HgChangeset p1 = entry.parents().first(); |