public HgSourceControl(HgXmlLogParser hgXmlLogParser, ProcessExecutor executor)
            : base(hgXmlLogParser.ToHistoryParser(), executor)
        {
            if (hgXmlLogParser == null)
            {
                throw new ArgumentNullException("hgXmlLogParser");
            }
            if (executor == null)
            {
                throw new ArgumentNullException("executor");
            }

            _hgXmlLogParser = hgXmlLogParser;

            SetDefaults();
        }
Esempio n. 2
0
 public Hg(IHgProcess processExecutor, HgXmlLogParser xmlLogParser, string repositoryPath)
 {
     if (processExecutor == null)
     {
         throw new ArgumentNullException("processExecutor");
     }
     if (xmlLogParser == null)
     {
         throw new ArgumentNullException("xmlLogParser");
     }
     if (string.IsNullOrEmpty(repositoryPath))
     {
         throw new ArgumentOutOfRangeException("repositoryPath", repositoryPath, "RepositoryPath cannot be null or empty.");
     }
     VerifyRepositoryPath(repositoryPath);
     _processExecutor = processExecutor;
     _xmlLogParser = xmlLogParser;
     _repositoryPath = repositoryPath;
     _log.DebugCurrent("Created Hg with repository path of '{0}'", _repositoryPath);
 }
 internal HistoryParser(HgXmlLogParser hgXmlLogParser)
 {
     Debug.Assert(hgXmlLogParser != null);
     _hgXmlLogParser = hgXmlLogParser;
 }