How to add largefiles file from Python
Matt Harbison
matt_harbison at yahoo.com
Wed Dec 12 04:14:21 UTC 2012
On Tue, 11 Dec 2012 06:28:40 -0800, ftreton wrote:
> Simon King wrote
>> It sounds like the largefiles extension somehow isn't enabled in your
>> TortoiseHG setup - you need to find out why that is.
>
> Thanks to point out the source code location that was very helpful!
>
>
> After checking the largefiles extension is correctly activated.
> But the *commands.add()* is called instead of *overrides.overrideadd().*
>
> It seems that the *uisetup * does not provide any line to override the
> add function (only the command).
Correct, it overrides the command, not the function. I'm not sure why it
was done that way (it may have been a conscious decision because there are
other cases where commands are overridden instead of repo functions), but
overriding the command should be sufficient.
> It seems to work if the following line is added plus some other changes.
(I think the line went missing)
> I now think this is a largefiles issue that need be corrected.
I'm stumped. It doesn't seem like a largefiles problem though, since it
_does_ work when called by hg.exe. I thought maybe the command table was
getting reset somehow prior to being used, but even calling
extensions.loadall() or calling uisetup() on largefiles directly didn't
help- printing out the add method before and after those calls printed the
same thing.
--Matt
More information about the Mercurial
mailing list