protected void OnResolve() { List <FilePath> files = null; MercurialRepository repo = null; foreach (VersionControlItemList repolist in GetItems().SplitByRepository()) { repo = (MercurialRepository)repolist[0].Repository; files = new List <FilePath> (repolist.Count); foreach (VersionControlItem item in repolist) { files.Add(new FilePath(item.Path)); } MercurialTask worker = new MercurialTask(); worker.Description = string.Format("Resolving {0}", files[0]); worker.Operation = delegate { repo.Resolve(files.ToArray(), true, worker.ProgressMonitor); }; worker.Start(); } } // OnResolve