Ejemplo n.º 1
0
        private bool DoRevert(IEnumerable <IResource> resources)
        {
            if (!CanUseSourceControl)
            {
                return(false);
            }

            using (new ProgressBarWrapper("Reverting..."))
            {
                foreach (var resource in resources)
                {
                    SledOutDevice.OutLine(
                        SledMessageType.Info,
                        "{0}: Reverting: {1}",
                        SourceControlText, GetUriRelPath(resource));

                    SourceControlService.Revert(resource.Uri);
                }
            }

            return(true);
        }