PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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// *
 9// * This example shows how to open the repository explorer
10// * in TortoiseHg, asynchronously.
11// *
12// ***********************
13
14void Main()
15{
16    var repoPath = @"C:\Temp\repo";
17    if (Directory.Exists(repoPath))
18        Directory.Delete(repoPath, true);
19    Directory.CreateDirectory(repoPath);
20    var repo = new Repository(repoPath);
21    repo.CloneGui();
22    repo.LogGui();
23}