Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgCloneCommand.java @ 292:a415fe296a50
Refactor PathRewrite to accept any char sequence, not only string
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 14 Sep 2011 02:16:19 +0200 |
parents | 9fb50c04f03c |
children | 981f9f50bb6c |
comparison
equal
deleted
inserted
replaced
291:1483e57541ef | 292:a415fe296a50 |
---|---|
207 base = -1; | 207 base = -1; |
208 offset = 0; | 208 offset = 0; |
209 revisionSequence.clear(); | 209 revisionSequence.clear(); |
210 fncacheFiles.add("data/" + name + ".i"); // FIXME this is pure guess, | 210 fncacheFiles.add("data/" + name + ".i"); // FIXME this is pure guess, |
211 // need to investigate more how filenames are kept in fncache | 211 // need to investigate more how filenames are kept in fncache |
212 File file = new File(hgDir, filename = storagePathHelper.rewrite(name)); | 212 File file = new File(hgDir, filename = storagePathHelper.rewrite(name).toString()); |
213 file.getParentFile().mkdirs(); | 213 file.getParentFile().mkdirs(); |
214 indexFile = new FileOutputStream(file); | 214 indexFile = new FileOutputStream(file); |
215 } catch (IOException ex) { | 215 } catch (IOException ex) { |
216 throw new HgBadStateException(ex); | 216 throw new HgBadStateException(ex); |
217 } | 217 } |