Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/DirstateReader.java @ 534:243202f1bda5
Commit: refactor revision creation code from clone command to work separately, fit into existing library structure
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 04 Feb 2013 18:00:55 +0100 |
parents | 47b7bedf0569 |
children | 5daa42067e7c |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/DirstateReader.java Wed Jan 30 15:48:36 2013 +0100 +++ b/src/org/tmatesoft/hg/internal/DirstateReader.java Mon Feb 04 18:00:55 2013 +0100 @@ -66,7 +66,7 @@ if (dirstateFile == null || !dirstateFile.exists()) { return; } - DataAccess da = repo.getDataAccess().create(dirstateFile); + DataAccess da = repo.getDataAccess().createReader(dirstateFile); try { if (da.isEmpty()) { return; @@ -142,7 +142,7 @@ if (dirstateFile == null || !dirstateFile.exists()) { return new Pair<Nodeid,Nodeid>(NULL, NULL); } - DataAccess da = internalRepo.getDataAccess().create(dirstateFile); + DataAccess da = internalRepo.getDataAccess().createReader(dirstateFile); try { if (da.isEmpty()) { return new Pair<Nodeid,Nodeid>(NULL, NULL);