Esempio n. 1
0
        public bool exists()
        {
            try
            {
                if (_StreamexistsChecked)
                {
                    return(_Streamexists);
                }
                _StreamexistsChecked = true;

                P4ScmProvider scm = P4VsProvider.CurrentScm;

                IList <P4.Depot> depots = scm.GetDepots();

                foreach (P4.Depot depot in depots)
                {
                    if (depot.Type == P4.DepotType.Stream)
                    {
                        _Streamexists = true;;
                        return(_Streamexists);
                    }
                }

                _Streamexists = false;
                return(_Streamexists);
            }
            catch (Exception ex)
            {
                logger.Trace("Error in Streamexists(), {0}: \r\n{1}", ex.Message, ex.StackTrace);

                _Streamexists = false;
                return(_Streamexists);
            }
        }