[Bug 5292] New: {join(parents,',')} doesn't show parents

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Jul 13 03:32:29 EDT 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5292

            Bug ID: 5292
           Summary: {join(parents,',')} doesn't show parents
           Product: Mercurial
           Version: 3.8.3
          Hardware: Macintosh
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: normal
         Component: templater
          Assignee: bugzilla at selenic.com
          Reporter: sjtai000 at gmail.com
                CC: mercurial-devel at selenic.com

Created attachment 1925
  --> https://bz.mercurial-scm.org/attachment.cgi?id=1925&action=edit
Repo to reproduce bug in join function.

Overview: The output of hg log that uses {join} function in the template is not
as advertised.

Steps to reproduce:

1. Extract the attached repo join-bug.tar.gz and cd into the folder join-bug.

2. hg log -r 3 --template "{join(parents,',')}\n"


Actual Results:

a.txt,a.txtb.txt


Expected Results:

The parents nodes are printed and are separated by comma. E.g.

2:c40e566d15c8,1:2bc4d4ada3ea


Additional info:

The graphlog output is:

@    3[tip]:2,1   e68e4f27d95b   2016-07-13 10:53 +0800   sjtai
|\     Merge with b1.
| |
| o  2:0   c40e566d15c8   2016-07-13 10:53 +0800   sjtai
| |    Changed a.txt.
| |
o |  1   2bc4d4ada3ea   2016-07-13 10:52 +0800   sjtai   b1
|/     Added b.txt.
|
o  0   87a898338cab   2016-07-13 10:52 +0800   sjtai
     Initial commit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list