P4Connect.VersionInfo.cs #1

  • //
  • guest/
  • anis_sg/
  • perforce_software/
  • p4connect/
  • src/
  • P4Connect/
  • P4Connect/
  • P4Connect.VersionInfo.cs
  • View
  • Commits
  • Open Download .zip Download (2 KB)
using System.Reflection;
using System;
using System.Text.RegularExpressions;
using UnityEngine;
using Perforce.P4;

namespace P4Connect
{


	/// <summary>
	/// Version wrappers for P4Connect
	/// </summary>
    public static class Version
    {
        public static string appName = "p4connect";
        public static string p4ConnectVersion = "2.7";
        public static string perforceRelease = "2015.1.0.0";    // Copy this into the AssemblyInfo for P4Connect?
        public static string branch = "GA.1.";    
        public static string changeIdStr = "";
#if DEBUG
        public static string build = branch + "D." + ChangeId;
#else
        public static string build = branch + "R." + ChangeId; 
#endif

        public static string ChangeId { 
            get {
                string change = " $Change: 12954 $";  // File must be stored +k so the RCS Keyword expands
                if (String.IsNullOrEmpty(changeIdStr))
                {
                   changeIdStr = Regex.Match(change, @"\d+").Value;
                }
                return changeIdStr;
            }
        }

        static Options NameVerOpts = null;

        // Create an Array of options for the Connect call.  You can see these in the Perforce server log
        public static Options ConnectOptions
        {
            get {
                if (NameVerOpts == null)
                {
                    NameVerOpts = new Options();
                    NameVerOpts.Add("ProgramName", appName);
                    NameVerOpts.Add("ProgramVersion", p4ConnectVersion + "." + build);
                }
                return NameVerOpts;
            }
        }
    }
}
# Change User Description Committed
#1 12954 anis_sg Populate -o //guest/perforce_software/p4connect/...
//guest/anis_sg/perforce_software/p4connect/....
//guest/perforce_software/p4connect/src/P4Connect/P4Connect/P4Connect.VersionInfo.cs
#7 12945 Norman Morse Changes from internal main  GA.1
#6 12566 Norman Morse Fixed hang when restarting after rebuild
Updated Release String to GA
#5 12553 Norman Morse integrate from internal main
Build fixes for EC.
Major changes to Configuration and re-initialization code.
Bug fixes
#4 12512 Norman Morse Integrate from Dev branch, preparing for Beta3 release
#3 12252 Norman Morse 2.7 Beta2 release unitypackages.
Updated version file.
#2 12251 Norman Morse Fixes for Beta 2 release
Mostly Configuration dialog bug fixes
#1 12135 Norman Morse Integrate dev branch changes into main.

This code is the basiis of the 2.7 BETA release which provides Unity 5 compatibility
//guest/norman_morse/dev/p4connect/src/P4Connect/P4Connect/P4Connect.VersionInfo.cs
#5 12101 Norman Morse Additional movement towards Unity 5.
Still gettting DllNotFound exceptions in 5
#4 12099 Norman Morse Various changes to prepare for Beta
Fixed VersionInfo to show changeID
Added "additional ignore in config".
Updated ReleaseNotes
#3 12088 Norman Morse Fix RCS keyword
#2 11896 Norman Morse Checkin of Version file
#1 11403 Norman Morse Add version module to P4Connect