Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgFileRevision.java @ 519:934037edbea0
Few toString() implementations to ease debug
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Thu, 20 Dec 2012 20:21:59 +0100 |
| parents | 0d5e1ea7955e |
| children | 6526d8adbc0f |
comparison
equal
deleted
inserted
replaced
| 518:0d5e1ea7955e | 519:934037edbea0 |
|---|---|
| 148 public void putContentTo(ByteChannel sink) throws HgException, CancelledException { | 148 public void putContentTo(ByteChannel sink) throws HgException, CancelledException { |
| 149 HgDataFile fn = repo.getFileNode(path); | 149 HgDataFile fn = repo.getFileNode(path); |
| 150 int revisionIndex = fn.getRevisionIndex(revision); | 150 int revisionIndex = fn.getRevisionIndex(revision); |
| 151 fn.contentWithFilters(revisionIndex, sink); | 151 fn.contentWithFilters(revisionIndex, sink); |
| 152 } | 152 } |
| 153 | |
| 154 @Override | |
| 155 public String toString() { | |
| 156 return String.format("HgFileRevision(%s, %s)", getPath().toString(), revision.shortNotation()); | |
| 157 } | |
| 153 | 158 |
| 154 private void checkCopy() throws HgException { | 159 private void checkCopy() throws HgException { |
| 155 HgDataFile fn = repo.getFileNode(path); | 160 HgDataFile fn = repo.getFileNode(path); |
| 156 if (fn.isCopy()) { | 161 if (fn.isCopy()) { |
| 157 if (fn.getRevision(0).equals(revision)) { | 162 if (fn.getRevision(0).equals(revision)) { |
