Bug 2854 - hgrc [web] option "allow_push" parsing error with multiple lines
Summary: hgrc [web] option "allow_push" parsing error with multiple lines
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 08:45 UTC by Tim Bonczar
Modified: 2012-05-13 04:58 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Bonczar 2011-06-16 08:45 UTC
When separating user ID's onto multiple lines following the "allow_push" 
option for web access, a parsing error occurs if comments are inserted between 
subsequent lines even when indenting the additional lines per the formatting 
rules. i.e. the below 3 lines will cause a parsing error. Removing the 
"#comment" text fixes the issue.

allow_push = id1, id2
#comment
    id3, id4
Comment 1 HG Bot 2011-06-16 13:00 UTC
Fixed by http://selenic.com/repo/hg/rev/fdcdb221a922
Matt Mackall <mpm@selenic.com>
config: handle comment lines in continuations (issue2854)

(please test the fix)
Comment 2 Tim Bonczar 2011-06-16 16:27 UTC
Tested using "hg debugconfig" and no longer see parsing errors. Thanks.
Comment 3 Bugzilla 2012-05-12 09:20 UTC
--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:20 EDT  ---

This bug was previously known as _bug_ 2854 at http://mercurial.selenic.com/bts/issue2854