Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/Internals.java @ 610:5c68567b3645
Refresh tags, branches, bookmarks and ignore when their files (or csets in the repo) are changed
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 09 May 2013 21:06:48 +0200 |
parents | e1b29756f901 |
children | 99ad1e3a4e4d |
comparison
equal
deleted
inserted
replaced
609:e4a71afd3c71 | 610:5c68567b3645 |
---|---|
36 import org.tmatesoft.hg.repo.HgRepoConfig.ExtensionsSection; | 36 import org.tmatesoft.hg.repo.HgRepoConfig.ExtensionsSection; |
37 import org.tmatesoft.hg.repo.HgRepository; | 37 import org.tmatesoft.hg.repo.HgRepository; |
38 import org.tmatesoft.hg.repo.HgRepositoryFiles; | 38 import org.tmatesoft.hg.repo.HgRepositoryFiles; |
39 import org.tmatesoft.hg.repo.HgRepositoryLock; | 39 import org.tmatesoft.hg.repo.HgRepositoryLock; |
40 import org.tmatesoft.hg.repo.HgRuntimeException; | 40 import org.tmatesoft.hg.repo.HgRuntimeException; |
41 import org.tmatesoft.hg.util.LogFacility; | |
41 import org.tmatesoft.hg.util.Path; | 42 import org.tmatesoft.hg.util.Path; |
42 import org.tmatesoft.hg.util.PathRewrite; | 43 import org.tmatesoft.hg.util.PathRewrite; |
43 | 44 |
44 /** | 45 /** |
45 * Fields/members that shall not be visible | 46 * Fields/members that shall not be visible |
148 public boolean isInvalid() { | 149 public boolean isInvalid() { |
149 return !repoDir.exists() || !repoDir.isDirectory(); | 150 return !repoDir.exists() || !repoDir.isDirectory(); |
150 } | 151 } |
151 | 152 |
152 public File getRepositoryFile(HgRepositoryFiles f) { | 153 public File getRepositoryFile(HgRepositoryFiles f) { |
153 return f.residesUnderRepositoryRoot() ? getFileFromRepoDir(f.getName()) : getFileFromDataDir(f.getName()); | 154 return f.residesUnderRepositoryRoot() ? getFileFromRepoDir(f.getName()) : new File(repo.getWorkingDir(), f.getName()); |
154 } | 155 } |
155 | 156 |
156 /** | 157 /** |
157 * Access files under ".hg/". | 158 * Access files under ".hg/". |
158 * File not necessarily exists, this method is merely a factory for Files at specific, configuration-dependent location. | 159 * File not necessarily exists, this method is merely a factory for Files at specific, configuration-dependent location. |
185 return new File(repoDir, storagePath.toString()); | 186 return new File(repoDir, storagePath.toString()); |
186 } | 187 } |
187 | 188 |
188 public SessionContext getSessionContext() { | 189 public SessionContext getSessionContext() { |
189 return repo.getSessionContext(); | 190 return repo.getSessionContext(); |
191 } | |
192 | |
193 public LogFacility getLog() { | |
194 return getSessionContext().getLog(); | |
190 } | 195 } |
191 | 196 |
192 public HgRepository getRepo() { | 197 public HgRepository getRepo() { |
193 return repo; | 198 return repo; |
194 } | 199 } |