2015-09-25 67 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

您收到的消息似乎是遠程打印的消息。看起來您沒有正確設置身份驗證 - 或者您的身份驗證正確,但在遠程方面,您沒有正確的訪問權限。