How to add largefiles file from Python
Simon King
simon at simonking.org.uk
Tue Dec 11 11:10:35 UTC 2012
On Tue, Dec 11, 2012 at 10:18 AM, ftreton <ftreton at dxo.com> wrote:
> Matt Mackall wrote
>> Please start by printing out the value of commands.add at this point,
>> and see if it's actually still commands.add and not the function from
>> the largefiles module that wraps it.
>
> After adding prints the code is using commands.add and not the one from
> largefiles module.
>
> If I understand well in order to add a largefiles the add function need to
> be Overridden.
> How then to activate this overriden ?
>
largefiles overrides the 'add' command in its uisetup function:
http://selenic.com/hg/file/40374059d227/hgext/largefiles/uisetup.py#l20
Command-line mercurial calls uisetup for all enabled extensions:
http://selenic.com/hg/file/40374059d227/mercurial/extensions.py#l85
http://mercurial.selenic.com/wiki/WritingExtensions#Setup_Callbacks
It sounds like the largefiles extension somehow isn't enabled in your
TortoiseHG setup - you need to find out why that is.
Hope that helps,
Simon
More information about the Mercurial
mailing list