hg log with files is very slow

Brian Wallis brian.wallis at infomedix.com.au
Mon Jul 7 00:53:35 CDT 2008


On 04/07/2008, at 5:38 PM, Dirkjan Ochtman wrote:

> Brian Wallis wrote:
>> The mercurial eclipse plugin uses the attached style file to gather  
>> the revision details about the files in a repository.
>> hg log --debug --style /path/to/style/log_style_with_files /path/to/ 
>> repo/root
>> In a large repository this can take a very long time to execute (6  
>> minutes in a 800M repo that has 6000-8000 files in a typical  
>> workspace checkout)
>
> I *think* log filename is very much intended to be called with just  
> a few files. If Eclipse wants to see all the files, it seems to me  
> it can infer much the same data from just hg log --debug, at much  
> lower cost.

hg log --debug won't work as there is no way to reliably separate the  
filenames since it presents a ' ' separated list of names and ' ' is a  
valid filename character.

The style file that was attached outputs an XML format in which  
filenames are reliably separated from eachother.

Brian Wallis
InfoMedix
p: 3 8615 4553 | f: 3 8615 4501 | e: brian.wallis at infomedix.com.au
Level 5, 451 Little Bourke Street, Melbourne VIC 3000





More information about the Mercurial mailing list