0

I am trying to set up source server for debugging projects that are stored on Kiln/Mercurial repository.

I need to get revision of the file by following data:

  • Local file path in the repository;
  • Number of revision;
  • URL repository.

Can I do this via URL? Or there is another workaround for the issue?

P.S. I'd prefer to avoid using Kiln API if possible.

klashar
  • 2,519
  • 2
  • 28
  • 38

2 Answers2

0

If you aren't opposed to parsing the HTML, you can find the string with the changeset hash by visiting the following URL:

http://<Kiln URL>/File/<path from hg root>/<filename>/rev=<rev #>

In the resulting HTML, you can search for:

<a class="changeset" href="long path" rev="rev you want">

Tim Henigan
  • 60,452
  • 11
  • 85
  • 78
  • Hi Tim. Thanks for reply. But the proposed approach is not sufficient because of two reasons: it requires user to be authenticated via forms authentication; it returns html representation of file instead of the original one. – klashar Sep 05 '11 at 11:55
0

I was able to accomplish this solution using Kiln API.

There is awesome .Net library that wraps all call to Kiln API called Kiln.Net

klashar
  • 2,519
  • 2
  • 28
  • 38