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

Greg Ward greg at gerg.ca
Fri Jun 4 13:56:05 CDT 2010


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.)

Greg


More information about the Mercurial-devel mailing list