2015-09-25 156 views
0

我试图做的承诺,并使用Mercurial.Net库推:获取控制台输出Mercurial.Net

var repo = new Repository(repositoryPath); 

var branchCommand = new BranchCommand { Name = branch }; 
repo.Branch(branchCommand); 

var commitCommand = new CommitCommand { Message = commitMessage, OverrideAuthor = author }; 
repo.Commit(commitCommand); 

var pushCommand = new PushCommand { AllowCreatingNewBranch = true, Force = true, }; 
repo.Push(pushCommand); 

repo.Push(pushCommand)它抛出一个异常Mercurial.MercurialExecutionException与消息“中止:访问被拒绝”。

现在的问题是:有没有办法在Mercurial.Net获得mercurial console的输出?

回答

0

您收到的消息似乎是远程打印的消息。看起来您没有正确设置身份验证 - 或者您的身份验证正确,但在远程方面,您没有正确的访问权限。