/Examples/103 - Clone a repository and show the log afterwards.linq

# · Unknown · 23 lines · 21 code · 2 blank · 0 comment · 0 complexity · ca623968ba616a2572c5a2f98253a87d MD5 · raw file

  1. <Query Kind="Program">
  2. <Reference Relative="..\Mercurial.Net\bin\Debug\Mercurial.Net.dll">C:\Dev\VS.NET\Mercurial.Net\Mercurial.Net\bin\Debug\Mercurial.Net.dll</Reference>
  3. <Namespace>Mercurial</Namespace>
  4. <Namespace>Mercurial.Gui</Namespace>
  5. </Query>
  6. // *****************************************************
  7. // *
  8. // * This example shows how to open the repository explorer
  9. // * in TortoiseHg, asynchronously.
  10. // *
  11. // ***********************
  12. void Main()
  13. {
  14. var repoPath = @"C:\Temp\repo";
  15. if (Directory.Exists(repoPath))
  16. Directory.Delete(repoPath, true);
  17. Directory.CreateDirectory(repoPath);
  18. var repo = new Repository(repoPath);
  19. repo.CloneGui();
  20. repo.LogGui();
  21. }