[PATCH 1 of 2 STABLE] subrepo: ignore blank lines in .hgsubstate (issue3424)
Pierre-Yves David
pierre-yves.david at logilab.fr
Fri May 4 10:13:53 CDT 2012
On Fri, May 04, 2012 at 04:55:46PM +0200, Patrick Mézard wrote:
> Le 04/05/12 16:11, Mads Kiilerich a écrit :
> > Patrick Mezard wrote, On 05/04/2012 02:29 PM:
> >> # HG changeset patch # User Patrick Mezard<patrick at mezard.eu> #
> >> Date 1336133992 -7200 # Branch stable # Node ID
> >> 983c614cea9455732fc16fac772b905c3dd215b1 # Parent
> >> 91323a78aac252b630144f66e1039321cd41c9ef subrepo: ignore blank
> >> lines in .hgsubstate (issue3424)
> >
> > .hgsubstate is an internal file that the user never should touch
> > directly or care about ... and any attempt of doing that ususally
> > fails. Better support for recovery from a situation where the user
> > has done it anyway might be a good idea, but moving in the direction
> > of being more flexible in what we accept here would be misleading.
> > IMO.
>
> For the record, I do not like Postel's principle, I prefer "be strict everywhere". But here I had the choice:
> 1- Ignore the blank line
> 2- Tell the user he put blank lines in his .hgsubstate and bail out
> 3- Keep tracing back
>
> [3] is not acceptable, at least when we can avoid it easily. Blank lines are so easy to filter than [2] feels sadistic, so go for [1].
[1] is used in several other places (mq status file, bookmark and tag IIRC)
--
Pierre-Yves David
http://www.logilab.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120504/ab8e754f/attachment.pgp>
More information about the Mercurial-devel
mailing list