开发者

Pulling conctere revision of file form Kiln via URL?

开发者 https://www.devze.com 2023-04-02 05:50 出处:网络
I am trying to set up source server for debugging projects that are stored on Kiln/Mercurial repository.

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.

C开发者_如何转开发an 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.


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">


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号