[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Changes in nvm.basic_io.inventory

From: Stephen Leake
Subject: Re: [Monotone-devel] Changes in nvm.basic_io.inventory
Date: Sat, 12 May 2007 07:15:35 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt)

Christian Ohler <address@hidden> writes:

> Stephen Leake, 2007-05-10:
>> Then the stanza should start with 'status', since there needs to be a
>> line that reliably starts a stanza
> Not really.  Manifests also have two alternative forms of stanzas, one
> starting with 'file', one starting with 'dir'.

Ah. So parsing that output into stanzas must rely on the whitespace.

However, currently I rely on the first line in an automate inventory
stanza being "path" in tests/automate_inventory. That could change to
any first line, but it must be a reliable first line.

I guess it could be "either one of these lines indicates a stanza
start", as long as the other line does not occur in the same stanza.

It would be better in the long run to be able to rely on the blank
lines to separate stanzas.

-- Stephe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]