PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/Examples/019 - Bookmarks.linq

#
Unknown | 20 lines | 17 code | 3 blank | 0 comment | 0 complexity | 28d82fbf0a2349ff45e7441c3c782b05 MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0
  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.Extensions.Churn</Namespace>
  5. </Query>
  6. // *****************************************************
  7. // *
  8. // * This example shows how to list all the bookmarks
  9. // * in a repository.
  10. // *
  11. // ***********************
  12. void Main()
  13. {
  14. var repoPath = @"C:\Temp\SomeOtherRepo";
  15. var repo = new Repository(repoPath);
  16. repo.Bookmarks().Dump();
  17. }