[PATCH 1 of 1] ui: handle leading newlines in configlist

Nicolas Dumazet nicdumz at gmail.com
Tue Jun 8 04:53:21 CDT 2010


2010/6/5 Greg Ward <greg at gerg.ca>:
> On Thu, Jun 3, 2010 at 4:38 PM, Henrik Stuart <hg at hstuart.dk> wrote:
>> # HG changeset patch
>> # User Henrik Stuart <hg at hstuart.dk>
>> # Date 1275597083 -7200
>> # Node ID f9c791b84bba1e68662d1a6e1362386fed773616
>> # Parent  e8a66a40474df0c70609ed16843f95183c1639c8
>> ui: handle leading newlines in configlist
>
> Another possibility: do lstrip("\n") on the string before splitting it
> into a list.  (Yes, that works in Python 2.4.)

Because I'm not familiar with the parser, I find this proposition much
more straightforward than the proposed patch :p
Henrik, would it just work? If so, I think that we have a winner ;)

-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial-devel mailing list