Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgDataStreamException.java @ 275:6d1804fe0ed7
Issue 10: Report file content length with respect of metadata. Respect dirstate parents for WC's status. Exceptions to keep useful attributes of the location
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 25 Aug 2011 21:35:03 +0200 |
parents | 41a778e3fd31 |
children | 189dc6dc1c3e |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgDataStreamException.java Thu Aug 25 03:57:39 2011 +0200 +++ b/src/org/tmatesoft/hg/core/HgDataStreamException.java Thu Aug 25 21:35:03 2011 +0200 @@ -27,19 +27,28 @@ */ @SuppressWarnings("serial") public class HgDataStreamException extends HgException { - private final Path fname; public HgDataStreamException(Path file, String message, Throwable cause) { super(message, cause); - fname = file; + setFileName(file); } public HgDataStreamException(Path file, Throwable cause) { super(cause); - fname = file; + setFileName(file); } - public Path getFileName() { - return fname; + @Override + public HgDataStreamException setRevision(Nodeid r) { + return (HgDataStreamException) super.setRevision(r); + } + + @Override + public HgDataStreamException setRevisionNumber(int rev) { + return (HgDataStreamException) super.setRevisionNumber(rev); + } + @Override + public HgDataStreamException setFileName(Path name) { + return (HgDataStreamException) super.setFileName(name); } }