Bug 133550 [History] CVS history provider doesn't fetch in getFileHistoryFor
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/filehistory/CVSFileHistoryProvider.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/filehistory/CVSFileHistoryProvider.java
index a00c8ea..87f578d 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/filehistory/CVSFileHistoryProvider.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/filehistory/CVSFileHistoryProvider.java
@@ -14,6 +14,7 @@
 import org.eclipse.core.filesystem.IFileStore;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.team.core.TeamException;
 import org.eclipse.team.core.history.*;
 import org.eclipse.team.core.history.provider.FileHistoryProvider;
 import org.eclipse.team.internal.ccvs.core.*;
@@ -47,10 +48,12 @@
 				CVSFileHistory remoteFile = null;
 				if (remoteResource instanceof ICVSFile) {
 					remoteFile = new CVSFileHistory((ICVSFile) remoteResource);
+					remoteFile.refresh(monitor);
 				}
 				return remoteFile;
 			}
 		} catch (CVSException e) {
+		} catch (TeamException e) {
 		} finally {
 			monitor.done();
 		}
@@ -81,10 +84,16 @@
 			CVSFileStore fileStore = (CVSFileStore) store;
 			ICVSRemoteFile file = fileStore.getCVSURI().toFile();
 			if (file != null){
+				try{
 				if ((flags == IFileHistoryProvider.SINGLE_REVISION) || ((flags == IFileHistoryProvider.SINGLE_LINE_OF_DESCENT))) {
-					return new CVSFileHistory(file, flags);
-				} else
-					return new CVSFileHistory(file);
+					CVSFileHistory history = new CVSFileHistory(file, flags);
+					history.refresh(monitor);
+					return history;
+				} else{
+					CVSFileHistory history = new CVSFileHistory(file);
+					history.refresh(monitor);
+					return history;
+				} } catch (TeamException ex){}
 			}
 		}
 		return null;