Exemplo n.º 1
0
        protected override void OnMoveDirectory(FilePath localSrcPath, FilePath localDestPath, bool force, IProgressMonitor monitor)
        {
            base.OnMoveDirectory(localSrcPath, localDestPath, force, monitor);
            var            workspace = GetWorkspaceByLocalPath(localSrcPath);
            List <Failure> failures;

            workspace.PendRenameFolder(localSrcPath, localDestPath, out failures);
            cache.RefreshItem(localDestPath);
            FailuresDisplayDialog.ShowFailures(failures);
        }
Exemplo n.º 2
0
 internal void CheckoutFile(FilePath path)
 {
     using (var progress = MonoDevelop.VersionControl.VersionControlService.GetProgressMonitor("CheckOut"))
     {
         progress.Log.WriteLine("Start check out item: " + path);
         var workspace = this.GetWorkspaceByLocalPath(path);
         workspace.Get(new GetRequest(path, RecursionType.None, VersionSpec.Latest), GetOptions.GetAll, progress);
         var failures = workspace.PendEdit(new List <FilePath> {
             path
         }, RecursionType.None, TFSVersionControlService.Instance.CheckOutLockLevel);
         FailuresDisplayDialog.ShowFailures(failures);
         cache.RefreshItem(path);
         FileService.NotifyFileChanged(path);
         progress.ReportSuccess("Finish check out.");
     }
 }