2017-03-28 1 views
0

Mercurial.NET 라이브러리를 사용하여 Mercurial에서 코드 변경 사항을 가져 오려고합니다. 승인 예외가 발생하고 결과가 표시되지 않습니다. 코드는 다음과 같습니다.Mercurial.Net pullCommand 권한을 사용하여

Repository repository = new Repository(@"D:\sandeep\work\20Dec2016"); 

PullCommand pullcommand = new PullCommand(); 
repository.Pull(pullcommand); 

이것은 내 코드이며, 최근 변경 사항을 가져 오기 위해 인증을 위해 내 자격 증명 (사용자 이름 및 암호)을 지정할 수 있습니까?

답변

0

나는 아래의 코드로 결과를 달성하고

Repository repository = new Repository(@"D:\sandeep\Work\20Dec2016"); 
pullCommand.WithConfigurationOverride("auth", "x.prefix", "*"); 
pullCommand.WithConfigurationOverride("auth", "x.username", "ssk"); 
pullCommand.WithConfigurationOverride("auth", "x.password", "ssk"); 
repository.Pull(pullCommand); 
라세 V. 칼슨에서 도움을 줄 수
관련 문제