Esempio n. 1
0
        /// <summary>
        /// Trivial constructor.
        /// </summary>
        private SubversionInterface(string clientExe, string url, 
                                    string client)
        {
            Client = client;
            ClientExe = clientExe;
            SourceControl = new Subversion(url);
            localRoot = GetLocalRootDirectory();
            FileInfo fileInfo = new FileInfo(Process.GetCurrentProcess().MainModule.FileName);

            diffFromSvnBatFilename = fileInfo.DirectoryName + "\\difffromsvn.bat";
        }
Esempio n. 2
0
 /// <summary>
 /// Trivial constructor.
 /// </summary>
 /// <param name="server"> The source control server where the change belongs. </param>
 /// <param name="sdClientName">In TFS, this is the name of the workspace.</param>
 /// <param name="changeListId"> The CL number of the change. </param>
 /// <param name="timeStamp"> UTC time when the change was created. </param>
 /// <param name="description"> The description of the change. </param>
 /// <param name="files"> The list of (only) text files that constitute the change. </param>
 public Change(
     ISourceControlSystem server, string sdClientName, string changeListId,
     DateTime timeStamp, string description, IList<ChangeFile> files)
     : this(server, sdClientName, changeListId, null, timeStamp, description, new string[0], files)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="clientExe"> The location of source depot client (e.g. sd.exe). </param>
 /// <param name="sourceControl"> The Source Control - must be either Source Depot or Perforce. </param>
 protected PerforceBase(string clientExe, ISourceControlSystem sourceControl)
 {
     SourceControl = sourceControl;
     ClientExe = clientExe;
 }
Esempio n. 4
0
 /// <summary>
 /// Trivial constructor.
 /// </summary>
 /// <param name="server"> The source control server where the change belongs. </param>
 /// <param name="sdClientName">In TFS, this is the name of the workspace.</param>
 /// <param name="changeListId"> The CL number of the change. </param>
 /// <param name="changeListOwner">The CL owner.</param>
 /// <param name="timeStamp"> UTC time when the change was created. </param>
 /// <param name="description"> The description of the change. </param>
 /// <param name="bugIds">The bug IDs associated with this change.</param>
 /// <param name="files"> The list of (only) text files that constitute the change. </param>
 public Change(
     ISourceControlSystem server,
     string sdClientName,
     string changeListId,
     string changeListOwner,
     DateTime timeStamp,
     string description,
     IList<string> bugIds,
     IList<ChangeFile> files)
 {
     Server = server;
     SdClientName = sdClientName == null ? string.Empty : sdClientName;
     ChangeListId = changeListId;
     ChangeListOwner = changeListOwner;
     TimeStamp = timeStamp;
     Description = description != null ? description : "";
     BugIds = bugIds;
     Files = files;
 }