wrapping the fetch command
Yuya Nishihara
yuya at tcha.org
Fri Jan 14 23:57:40 CST 2011
David Roguin wrote:
> Hi,
>
> I want to wrap the fetch command or the fetch function. I've tried this with
> so far:
>
> extensions.wrapcommand(commands.table, 'fetch', _fetch)
> and
> extensions.wrapfunction(extensions.find('fetch'), 'fetch', _fetch)
>
> neither of them is working, I believe commands.table doesn't contain
> extensions commands, and I really don't have a clue about was going on with
> the wrapfunction.
Hi, you can wrap fetch.cmdtable instead of commands.table.
hgext.record has a working example.
> Inside of _fetch is ui.write("fetching") but nothing is printing on screen.
>
> Any pointers?
Regards,
Yuya
More information about the Mercurial-devel
mailing list