wrapping the fetch command

David Roguin nesdavid at gmail.com
Sat Jan 15 06:08:46 CST 2011


2011/1/15 Yuya Nishihara <yuya at tcha.org>

> 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
>


Yeap, that did it.

Thank you!

-- 
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110115/9914fc41/attachment.htm>


More information about the Mercurial-devel mailing list