Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgInvalidRevisionException.java @ 385:6150555eb41d
HgInvalidRevisionException for svn imported repositories (changeset 0 references nullid manifest)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 13 Feb 2012 14:19:36 +0100 |
parents | 8107b95f4280 |
children | 0ae53c32ecef |
comparison
equal
deleted
inserted
replaced
384:4b97847d0b2d | 385:6150555eb41d |
---|---|
88 String msg = super.getMessage(); | 88 String msg = super.getMessage(); |
89 if (msg != null) { | 89 if (msg != null) { |
90 return msg; | 90 return msg; |
91 } | 91 } |
92 StringBuilder sb = new StringBuilder(); | 92 StringBuilder sb = new StringBuilder(); |
93 sb.append('['); | |
94 if (rev != null) { | 93 if (rev != null) { |
94 sb.append("Revision:"); | |
95 sb.append(rev.shortNotation()); | 95 sb.append(rev.shortNotation()); |
96 sb.append(' '); | 96 sb.append(' '); |
97 } | 97 } |
98 if (revIdx != null) { | 98 if (revIdx != null) { |
99 String sr; | 99 String sr; |
107 sb.append(String.format("%s is not from [%d..%d]", sr, rangeLeftBoundary, rangeRightBoundary)); | 107 sb.append(String.format("%s is not from [%d..%d]", sr, rangeLeftBoundary, rangeRightBoundary)); |
108 } else { | 108 } else { |
109 sb.append(sr); | 109 sb.append(sr); |
110 } | 110 } |
111 } | 111 } |
112 sb.append(']'); | |
113 return sb.toString(); | 112 return sb.toString(); |
114 } | 113 } |
115 } | 114 } |