[Bug 5087] New: comments in .hgrc may cause hg to fail

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sat Feb 6 20:50:10 UTC 2016


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

            Bug ID: 5087
           Summary: comments in .hgrc may cause hg to fail
           Product: Mercurial
           Version: 3.1.2
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: open.pop.star at gmail.com
                CC: mercurial-devel at selenic.com

tl;dr comments in .hgrc may cause hg to fail.

When adding a comment in .hgrc in a line that is used by mercurial, mercurial
fails to correctly parse the line.

e.g. the following line in .hgrc:

[hostfingerprints]
foo.bar.baz = a1:b2:c3:d4:e5:f6:11:22:33:44:55:66:77:88:99:00:f9:r8:d7:c6 #
comment here

causes mercurial to fail with the following error:

abort: certificate for foo.bar.baz has unexpected fingerprint
a1:b2:c3:d4:e5:f6:11:22:33:44:55:66:77:88:99:00:f9:r8:d7:c6
(check hostfingerprint configuration)

The entry seems only to work then the line doesn't contain a comment at the
end.

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


More information about the Mercurial-devel mailing list