Problem using {parents} in --template

Jesse Glick jesse.glick at sun.com
Wed Apr 9 18:16:51 UTC 2008


Kelly O'Hair wrote:
> You have me confused now. Both 'hg log' and 'hg out' with this
> template gives nothing without using --debug.

That's not true. As I demonstrated in the table in my previous message:

1. A merge changeset will always show both parents.

2. A regular changeset will not show the null second parent without 
--debug. Without --debug, it will also elide the first parent in case 
this was simply the previous changeset (counting by local sequence 
numbers) in the repository. The first parent will always be shown if it 
"skipped over" some other changesets committed to a different (perhaps 
anonymous) branch.




More information about the Mercurial mailing list