Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/PhasesHelper.java @ 647:c75297c17867
Location of repository files as enumeration, use file constants instead of plain names
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 25 Jun 2013 18:53:18 +0200 |
parents | 6526d8adbc0f |
children | 690e71d29bf6 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/PhasesHelper.java Fri Jun 21 18:30:35 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/PhasesHelper.java Tue Jun 25 18:53:18 2013 +0200 @@ -18,6 +18,7 @@ import static org.tmatesoft.hg.repo.HgPhase.Draft; import static org.tmatesoft.hg.repo.HgPhase.Secret; +import static org.tmatesoft.hg.repo.HgRepositoryFiles.Phaseroots; import static org.tmatesoft.hg.util.LogFacility.Severity.Info; import static org.tmatesoft.hg.util.LogFacility.Severity.Warn; @@ -134,7 +135,7 @@ } private Boolean readRoots() throws HgRuntimeException { - File phaseroots = repo.getFileFromStoreDir("phaseroots"); // TODO into HgRepositoryFiles + File phaseroots = repo.getRepositoryFile(Phaseroots); BufferedReader br = null; try { if (!phaseroots.exists()) {