Example #1
0
        public void OnExecute(CommandEventArgs e)
        {
            if (_commandService == null)
            {
                _commandService = e.GetService <IAnkhCommandService>();
            }
            if (_fileCache == null)
            {
                _fileCache = e.GetService <SvnStatusCache>(typeof(ISvnStatusCache));
            }

            _commandService.TockCommand(e.Command);

            if (e.Command == AnkhCommand.SvnCacheFinishTasks)
            {
                _fileCache.OnCleanup();
            }
            else
            {
                _fileCache.BroadcastChanges();
            }
        }
Example #2
0
        public SvnManager()
        {
            _statusCache = new SvnStatusCache(false, this);

            _svnClient = new SvnClient();
        }