xml style on hg heads

Brodie Rao dackze at gmail.com
Wed Apr 7 11:38:18 CDT 2010


On Apr 7, 2010, at 12:14 PM, John Sparrow wrote:

> Is the xml style broken on 'hg heads'? eg if I do (on hg 1.5.1):
>  
> hg heads --style xml
>  
> on my copy of the mecurial repos, I get the output listed below. Notice 2 xml declarations, 2 opening tags for log, but only one closing tag.
>  
> I thought my xml parser was going crazy!

Looks like a bug with how it's handling the template header, and I guess it would affect hg parents as well. Could you file an issue here? http://mercurial.selenic.com/bts/

Thanks.

> <?xml version="1.0"?>
> <log>
> <logentry revision="10790" node="ef3668450cd0075978e2d11ec991aab557d9c59c">
> <tag>tip</tag>
> <parent revision="10787" node="5974123d03391f40778a6c10ea02eb84d8ff5305" />
> <parent revision="10789" node="1b45468d3debdfe66625814939a4bf925d9a4dc8" />
> <author email="mpmedit-lenic.com">Matt Mackall</author>
> <date>2010-03-30T13:09:25-05:00</date>
> <msg xml:space="preserve">Merge with stable</msg>
> </logentry>
> <?xml version="1.0"?>
> <log>
> <logentry revision="10789" node="1b45468d3debdfe66625814939a4bf925d9a4dc8">
> <branch>stable</branch>
> <author email="durin42edit-ail.com">Augie Fackler</author>
> <date>2010-03-15T14:53:34-05:00</date>
> <msg xml:space="preserve">util.termwidth: check stderr first as it&#39;s least likely to be redirected</msg>
> </logentry>
> </log>


More information about the Mercurial mailing list