/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
Possible License(s): BSD-3-Clause, GPL-2.0
- <Query Kind="Program">
- <Reference Relative="..\Mercurial.Net\bin\Debug\Mercurial.Net.dll">C:\Dev\VS.NET\Mercurial.Net\Mercurial.Net\bin\Debug\Mercurial.Net.dll</Reference>
- <Namespace>Mercurial</Namespace>
- <Namespace>Mercurial.Gui</Namespace>
- </Query>
-
- // *****************************************************
- // *
- // * This example shows how to open the repository explorer
- // * in TortoiseHg, asynchronously.
- // *
- // ***********************
-
- void Main()
- {
- var repoPath = @"C:\Temp\repo";
- if (Directory.Exists(repoPath))
- Directory.Delete(repoPath, true);
- Directory.CreateDirectory(repoPath);
- var repo = new Repository(repoPath);
- repo.CloneGui();
- repo.LogGui();
- }