Add largefiles extension
What about adding support for largefiles extension?
I wasn't being able to create Merge Request so let me attach diffs here for reference.
changes boil down to:
* enable largefiles extention
* configure its usercache dir
* make import from hg url pull all largefiles
* make gitlab-rails to forward hg client large files requests (getlfile command) to hgserve
`config/mercurial/repos.hgrc` - enable and configure extension
```
[extensions]
largefiles=
[largefiles]
usercache=/var/opt/gitlab/largefiles
[alias]
# pull all largefiles, this is so 'import project' -> 'HG repo by URL' imports largefiles as well
pull=pull --lfrev='all()'
```
`lib/gitlab/hg_access.rb` - include getlfile command
```
- DOWNLOAD_COMMANDS = %w{ batch between branchmap branches clonebundles capabilities changegroup changegroupsubset debugwireargs getbundle heads hello listkeys lookup known protocaps stream_out evoext_obshashrange_v1 }.freeze
+ DOWNLOAD_COMMANDS = %w{ batch between branchmap branches clonebundles capabilities changegroup changegroupsubset debugwireargs getbundle getlfile heads hello listkeys lookup known protocaps stream_out evoext_obshashrange_v1 }.freeze
```
[add-largefiles-extension.patch](/uploads/9935211b4efca4f9a95c5eddd6dee873/add-largefiles-extension.patch)
issue