Largefiles slow with ignored files?

Michał Sznajder michalsznajder at gmail.com
Sat Apr 7 18:34:38 UTC 2012


I have a repo with a few tracked files and tons of ignored. It
has largefiles enabled (by accident though).

  $ hg showconfig | grep large
  extensions.largefiles=
  $ hg status --all | wc -l
    127356
  $ hg status --ignored | wc -l
    127123

While working with it I found that status is much faster without
largefiles:

  $ time hg status > /dev/null

  real	0m10.931s
  user 0m4.783s
  sys	0m4.966s

  $ time hg status --config extensions.largefiles=! > /dev/null

  real 0m0.163s
  user 0m0.114s
  sys	0m0.042s

I am aware of http://mercurial.selenic.com/bts/issue3136 but I think
I already have it:

  $ hg --version --quiet
  Mercurial Distributed SCM (version 2.1.1+50-72597eb0204f)

I checked the code and I think it has something to do with a comment here
http://selenic.com/repo/hg/file/329887a7074c/hgext/largefiles/reposetup.py#l158
Why ignored files are so special that we always request for them?
They are only used in line 242 to calculate unknown files.

Michał Sznajder



More information about the Mercurial mailing list