[PATCH RESEND] largefiles: speed up the check if largefiles should be added to repo requirements

Martin Geisler mg at lazybytes.net
Sat Oct 29 06:05:24 CDT 2011


Dominik Psenner <dpsenner at gmail.com> writes:

> On 10/29/2011 01:05 AM, Matt Mackall wrote:
>> but this doesn't work at all on repos that aren't "dot-encoded":
>> 
>>   File "/home/mpm/hg/hgext/largefiles/reposetup.py", line 405, in checkrequireslfiles
>>     in f[0] for f in repo.store._walk('data', False))):
>>   File "/home/mpm/hg/hgext/largefiles/reposetup.py", line 405, in <genexpr>
>>     in f[0] for f in repo.store._walk('data', False))):
>> AttributeError: 'encodedstore' object has no attribute 'encode'
>> 
>> Ironic error message, I know.
>
> Unfortunate. *hm* I have none of those old repositories around to test
> this.

I haven't looked into your proposed fix, but I'll just add that you can
convert back to a non-dotencode format with

  hg --config format.dotencode=0 clone --pull repoA repoB

as described on

  http://mercurial.selenic.com/wiki/RequiresFile

That should let you test all you want with old-style repositories.

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111029/f5c0baae/attachment.pgp>


More information about the Mercurial-devel mailing list