[Bug 5843] New: extdata doesn't support a symbol as a string

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Apr 18 18:20:09 UTC 2018


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

            Bug ID: 5843
           Summary: extdata doesn't support a symbol as a string
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: durin42 at gmail.com
                CC: mercurial-devel at mercurial-scm.org

I'd expect all three of these to work the same way, but the first one fails
pretty mysteriously:

diff --git a/tests/test-extdata.t b/tests/test-extdata.t
--- a/tests/test-extdata.t
+++ b/tests/test-extdata.t
@@ -83,6 +83,11 @@ test bad extdata() template source
   abort: unknown extdata source 'unknown'
   [255]

+Works at top-level of a template:
+  $ hg log -r0 -T "{extdata(notes)}\n"
+  $ hg log -r0 -T "{extdata('notes')}\n"
+  $ hg log -r0 -T '{extdata("notes")}\n'
+
 we don't fix up relative file URLs, but we do run shell commands in repo root

   $ mkdir sub

Is this expected, and we should fix the error message, or should we fix extdata
somehow?

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


More information about the Mercurial-devel mailing list