[Bug 6642] New: file_add is missing when using a template with hg log command

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Feb 8 22:08:41 UTC 2022


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

            Bug ID: 6642
           Summary: file_add is missing when using a template with hg log
                    command
           Product: Mercurial
           Version: unspecified
          Hardware: Macintosh
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: templater
          Assignee: bugzilla at mercurial-scm.org
          Reporter: relaxdays_for-develop at yahoo.co.jp
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

Created attachment 2136
  --> https://bz.mercurial-scm.org/attachment.cgi?id=2136&action=edit
the repository used for testing Redmine

When you execute 'hg log --debug -C -Txml' command, the output content differs
between v4.9.1 and v5 or later.

```
$ diff hg491.log.xml hg602.log.xml
119,124d118
< <path action="A">sql_escape/percent%dir/percent%file1.txt</path>
< <path action="A">sql_escape/percent%dir/percentfile1.txt</path>
< <path action="A">sql_escape/percent%file.txt</path>
< <path action="A">sql_escape/underscore_dir/understrike-file.txt</path>
< <path action="A">sql_escape/underscore_dir/understrike_file.txt</path>
< <path action="A">sql_escape/underscore_file.txt</path>
```

However, if you do not use a template (execute 'hg log --debug -C' command),
the same content will be output.
I suspect it's probably due to
https://bz.mercurial-scm.org/show_bug.cgi?id=4292 fixed in v5.1.

Attach the repository used for testing Redmine (https://www.redmine.org/).
https://www.redmine.org/projects/redmine/repository/changes/trunk/test/fixtures/repositories/mercurial_repository.hg

```
$ hg init [repo_path]
$ hg -R [repo_path] pull mercurial_repository.hg
```

please confirm.

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


More information about the Mercurial-devel mailing list