Is there any sample to show how to use Mercurial.net library to push to a remote mercurial repository at Bitbucket?
var workingDir = @"E:\testrepo";
var repository = new Mercurial.Repository(workingDir);
repository.Clone(repourl, new Mercurial.CloneCommand().WithObserver(new Mercurial.DebugObserver()).WithUpdate(false));
For example I added some txt files to local repo, than:
repository.AddRemove(new AddRemoveCommand().WithIncludePattern("*.txt"));
repository.Commit("test commit");
repository.Push(repourl); //How to push?
I think I have to create a new instance of PushCommand and use it at Push(). But how can I set up the parameters of PushCommand? How to add credentials?
Thank you very much!