diff 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
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Internals.java	Wed May 08 17:11:45 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/Internals.java	Thu May 09 21:06:48 2013 +0200
@@ -38,6 +38,7 @@
 import org.tmatesoft.hg.repo.HgRepositoryFiles;
 import org.tmatesoft.hg.repo.HgRepositoryLock;
 import org.tmatesoft.hg.repo.HgRuntimeException;
+import org.tmatesoft.hg.util.LogFacility;
 import org.tmatesoft.hg.util.Path;
 import org.tmatesoft.hg.util.PathRewrite;
 
@@ -150,7 +151,7 @@
 	}
 	
 	public File getRepositoryFile(HgRepositoryFiles f) {
-		return f.residesUnderRepositoryRoot() ? getFileFromRepoDir(f.getName()) : getFileFromDataDir(f.getName());
+		return f.residesUnderRepositoryRoot() ? getFileFromRepoDir(f.getName()) : new File(repo.getWorkingDir(), f.getName());
 	}
 
 	/**
@@ -189,6 +190,10 @@
 		return repo.getSessionContext();
 	}
 	
+	public LogFacility getLog() {
+		return getSessionContext().getLog();
+	}
+	
 	public HgRepository getRepo() {
 		return repo;
 	}