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的输出?