示例#1
0
 public void InitScm()
 {
     if (this.scm == null)
     {
         this.scm = this.scmFactory.Create(this.repo.Scm);
         if (!this.scm.IsOnThisComputer())
         {
             throw new InvalidOperationException(string.Format(Resource.ScmNotOnThisComputer, this.repo.Scm.ToString()));
         }
     }
 }