Mercurial > hg4j
diff src/org/tmatesoft/hg/core/HgCloneCommand.java @ 616:5e0313485eef
encode directories as demanded by fncache format
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 14 May 2013 17:31:35 +0200 |
parents | e4ee4bf4c7d0 |
children | 7c0d2ce340b8 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgCloneCommand.java Mon May 13 22:48:29 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgCloneCommand.java Tue May 14 17:31:35 2013 +0200 @@ -245,7 +245,6 @@ try { revlogHeader.offset(0).baseRevision(-1); revisionSequence.clear(); - fncacheFile.add(pathFactory.path(name)); File file = new File(hgDir, filename = storagePathHelper.rewrite(name).toString()); file.getParentFile().mkdirs(); indexFile = new FileOutputStream(file); @@ -258,6 +257,7 @@ public void fileEnd(String name) { try { + fncacheFile.addIndex(pathFactory.path(name)); clearPreviousContent(); closeIndexFile(); } catch (IOException ex) {