"hg log" for remote repositories?

Jens Alfke jens at mooseyard.com
Fri Sep 14 12:55:58 CDT 2007


On 14 Sep '07, at 10:03 AM, Dustin Sallings wrote:

> 	Any of XMLRPC, SOAP, etc... would be bad.

I personally agree; although please no one start a REST-vs-SOAP  
flameware here!

> One thing I've done in an application recently, though, was to
> deliver all of the content in clean, concise XML with a stylesheet
> instruction at the top.

Stylesheet aside, the RSS feed is already close to this (as someone  
else pointed out.) It's an XML file that contains the date, author and  
comment of each revision. It's missing other "hg log" metadata,  
though, such as the revision ID, parents, branch/tag names, and list  
of affected files. These could be added to the template pretty easily  
as custom XML elements in a new namespace.

The feed also only lists the last ten revisions; there'd need to be a  
way to get to earlier revisions, like optional "?start=___&limit=___"  
URL parameters that specify a revision range.

I wouldn't mind doing this, if people felt it was a good thing. I  
already understand the template syntax, and I'm an RSS/Atom expert in  
my day job...

--Jens


More information about the Mercurial mailing list