[issue3319] lfconvert does not convert files matching patterns regardless of size

Simon N bugs at mercurial.selenic.com
Tue Mar 13 05:50:23 CDT 2012


New submission from Simon N <snaish at gmail.com>:

When using hg lfconvert on a repository it should behave regarding files
matching the patterns according to the wiki
(http://mercurial.selenic.com/wiki/LargefilesExtension):-

<quote>
The largefiles.patterns config option allows you to specify specific
space-separated filename patterns (in shell glob syntax) that should always
be tracked as largefiles
</quote>

However it doesnt, it depends upon the size in the --lfsize argument instead.

I have the following in my mercurial.ini:-

[largefiles]
minsize = 10
patterns =
    *.wmf
    *.ico
    *.jpg
    *.png
    *.bmp
    *.gig
    *.GIF
    *.zip
    *.tgz
    *.tar.gz
    *.jar
    *.o
    *.so
    *.cab
    *.dll
    *.exe
    *.out
    *.pdf
    *.PDF
    *.hlp
    *.mdb
    *.doc
    *.rtf
    *.ico

I want lfconvert to convert all files matching the pattern regardless of
size, and any other file over 10MB in size to be converted. 

The wiki definitely suggests this should be the case, yet this is not the
behaviour I am seeing when running against an existing repository with many
files matching these patterns that are less than 10MB in size.

Either the docs are wrong and this is not the intended functioanlity, or
this is a bug in the current version of mercurial:-

>hg --version
Mercurial Distributed SCM (version 2.1.1)

----------
messages: 19367
nosy: 51m0n
priority: bug
status: unread
title: lfconvert does not convert files matching patterns regardless of size

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3319>
____________________________________________________


More information about the Mercurial-devel mailing list