using Exortech.NetReflector;
namespace ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial{
/// <summary>
/// Build a Mercurial URL.
/// </summary>
/// <title>Mercurial Issue Tracker URL Builder</title>
/// <version>1.5</version>
/// <example>
/// <code>
/// <webUrlBuilder type="hgweb">
/// <url>http://hg.mycompany.com/hgwebdir.cgi/myproject/</url>
/// </webUrlBuilder>
/// </code>
/// </example>
[ReflectorType("hgweb")]
public class HgWebUrlBuilder : IModificationUrlBuilder
{
/// <summary>
/// The base URL to use.
/// </summary>
/// <version>1.5</version>
/// <default>n/a</default>
[ReflectorProperty("url")]
public string Url;
public void SetupModification(Modification[] modifications)
{
foreach (Modification modification in modifications)
{
modification.Url = Url + "rev/" + modification.Version;
}
}
}
}
|