예제 #1
0
        protected void OnUncommit()
        {
            VersionControlItem  vcitem = GetItems()[0];
            MercurialRepository repo   = (MercurialRepository)vcitem.Repository;

            MercurialTask worker = new MercurialTask();

            worker.Description = string.Format("Uncommitting {0}", vcitem.Path);
            worker.Operation   = delegate { repo.Uncommit(vcitem.Path, worker.ProgressMonitor); };
            worker.Start();
        }        // OnUncommit