[PATCH 1 of 6] filelog: extract metadata parsing and packing

Sune Foldager cryo at cyanite.org
Sat Apr 30 04:00:10 CDT 2011


On 07-02-2011 11:26, Sune Foldager wrote:
> On 01-02-2011 01:35, Benoit Boissinot wrote:
>> On Mon, Jan 31, 2011 at 06:27:27PM -0600, Matt Mackall wrote:
>>> On Tue, 2011-02-01 at 01:21 +0100, Benoit Boissinot wrote:
>>>> On Tue, Feb 1, 2011 at 12:47 AM, Matt Mackall<mpm at selenic.com> wrote:
>>>>> On Mon, 2011-01-31 at 11:21 +0100, Sune Foldager wrote:
>>>>>> le('\1\n')
>>>>>> +def _parsemeta(text):
>>>>>> + # text can be buffer, so we can't use .startswith or .index
>>>>>
>>>>> When does this happen? 'buffer' does not appear in revlog or
>>>>> filelog.py.
>>>>
>>>> It used to be in manifest.
>>>
>>> Ok, but that will never apply to lwcopy, right?
>>
>> Indeed.
>
> Cool... one less messed up thing. I'll simplify :)

But not really, as it turns out. A buffer is used in mdiff.patch if the 
base text is empty :-/

/Sune


More information about the Mercurial-devel mailing list