# Mercurial.ini and largefiles extension

**URL:** https://www.finalbuilder.com/forums/t/mercurial-ini-and-largefiles-extension/5696
**Category:** Discussion
**Created:** [April 27, 2015, 9:54am UTC](https://www.finalbuilder.com/forums/t/mercurial-ini-and-largefiles-extension/5696 "2015-04-27T09:54:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kgemeinhart](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/c4cdca/32.png) [@kgemeinhart](https://www.finalbuilder.com/forums/u/kgemeinhart)
#### Post date: [April 27, 2015, 9:54am UTC](https://www.finalbuilder.com/forums/t/mercurial-ini-and-largefiles-extension/5696/1 "2015-04-27T09:54:16Z")

</div>

Greetings, I’m getting the following error when adding a new repository. I searched the whole drive for mercurial.ini config files and changed them all to enable the largefiles extension, but I’m still getting the error. Note that when I validate the repository settings, it says validated successfully. Any suggestions?   
  
_Repository xxxxx cannot be initialised: Running C:\Program Files\TortoiseHg\hg.exe with arguments “clone --noupdate [https://xxxxx:\*\*\*\*\*\*\*\*\*\*@xxx.xxx.com/kiln/Code/xxx/xxx/xxx](https://xxxxx: ********** @xxx.xxx.com/kiln/Code/xxx/xxx/xxx) C:@CI\Rc\439c10f2 --config ui.username=Continua --noninteractive” on server failed with return code 255 and error output: "abort: remote error:_  
  
_This repository uses the largefiles extension._  
  
_Please enable it in your Mercurial config file._  
  
Thanks,  
-Keith

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 28, 2015, 8:09am UTC](https://www.finalbuilder.com/forums/t/mercurial-ini-and-largefiles-extension/5696/2 "2015-04-28T08:09:21Z")

</div>

Hi Keith,  
  
Continua does not currently support the largefiles extension. We recommend converting the repository back to a normal repository if possible. We have not tried this however the following links should help: [https://commaster.net/content/remov…repository](https://commaster.net/content/removing-largefiles-extension-mercurial-repository) or [http://stackoverflow.com/questions/…t/14453480](http://stackoverflow.com/questions/14449707/how-do-i-safely-disable-remove-the-largefiles-directory-from-a-mercurial-reposit/14453480)  
  
If you must use the largefiles extension, then ensure it is enabled for the hg command line picked up by the property collector - in your case this is C:\Program Files\TortoiseHg\hg.exe **and** the bundled versions e.g. C:\Program Files\VSoft Technologies\ContinuaCI\Server\hg\hg.exe and c:\Program Files\VSoft Technologies\ContinuaCI Agent\hg\hg.exe on each agent.   
  
You can enable the extension for all hg versions of the server by adding the extension to %USERPROFILE%.hgrc or %USERPROFILE%\Mercurial.ini where %USERPROFILE% is the profile folder for the user the service runs under e.g. C:\Users\serviceuser  
  
You can also enable it for each installation&nbsp;by adding the extension to&nbsp;C:\Program Files\TortoiseHg\Mercuial.ini or C:\Program Files\TortoiseHg\hgrc.d\Mercurial.rc etc.  
  
See&nbsp;[http://www.selenic.com/mercurial/hgrc.5.html](http://www.selenic.com/mercurial/hgrc.5.html)for possible locations for Mercurial config files.
