[Bug 4135] New: XML logs are invalid if the log is empty
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Fri Dec 20 08:40:01 CST 2013
http://bz.selenic.com/show_bug.cgi?id=4135
Priority: normal
Bug ID: 4135
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: XML logs are invalid if the log is empty
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: dg at cowlark.com
Hardware: PC
Status: UNCONFIRMED
Version: 2.2.2
Component: Mercurial
Product: Mercurial
If you do 'hg log --style xml' on a repository with no checkins, you get no
output. I'd have expected to have received an XML header and an empty <log>
element.
Test case:
$ hg init
$ hg log --style xml
-> nothing
$ hg init
$ touch q
$ hg add q
$ hg commit -m "checkin"
$ hg log --style xml
->
<?xml version="1.0"?>
<log>
<logentry revision="0" node="4bcfe6b79ecdaa73f9071027959541f429f82fd6">
<tag>tip</tag>
<author email="dg at cowlark.com">David Given</author>
<date>2013-12-20T14:39:09+00:00</date>
<msg xml:space="preserve">checkin</msg>
</logentry>
</log>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list