Beispiel #1
0
 //-----------------------------------------------------------------------------------------
 public void fileEnd(string _fileName, bool _create)
 {
     if (_create)
     {
         Perforce.get().checkoutOrAdd(_fileName);
     }
 }
Beispiel #2
0
        //-----------------------------------------------------------------------------------------
        //
        // High level function
        //
        //-----------------------------------------------------------------------------------------

        //-----------------------------------------------------------------------------------------
        public bool fileStart(string _fileName, ref bool _create)
        {
            // directory creation
            string directory = Path.GetDirectoryName(_fileName);

            Directory.CreateDirectory(directory);
            // new file ?
            _create = !File.Exists(_fileName);
            // perforce
            Perforce.get().getRightAccess(_fileName);
            if (Perforce.get().checkAccess(_fileName) != Perforce.Access.OK)
            {
                string msg = string.Format("can't access file \n    ") + _fileName;
                return(false);
            }
            return(true);
        }
Beispiel #3
0
 //-----------------------------------------------------------------------------------------
 static public void createInterface()
 {
     m_singleton = new Perforce();
     m_singleton.getInformation();
 }