Mercurial > jhg
comparison src/org/tmatesoft/hg/util/Path.java @ 623:fedc54356091
Update tests for Windows; TestCommit: use copy of a repo (not clone) to preserve old timestamps
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 May 2013 18:35:13 +0200 |
parents | 072b5f3ed0c8 |
children | 170b6ecc890e |
comparison
equal
deleted
inserted
replaced
622:4e6179bde4fc | 623:fedc54356091 |
---|---|
157 Path o = (Path) path; | 157 Path o = (Path) path; |
158 return o; | 158 return o; |
159 } | 159 } |
160 String p = path.toString(); | 160 String p = path.toString(); |
161 if (p.indexOf('\\') != -1) { | 161 if (p.indexOf('\\') != -1) { |
162 throw new IllegalArgumentException(); | 162 throw new IllegalArgumentException(String.format("Path '%s' contains illegal char at %d", p, p.indexOf('\\'))); |
163 } | 163 } |
164 Path rv = new Path(p); | 164 Path rv = new Path(p); |
165 return rv; | 165 return rv; |
166 } | 166 } |
167 | 167 |