maximum recursion depth exceeded in dispatch.py/util.py

Idan Kamara idankk86 at gmail.com
Thu Aug 4 11:54:54 CDT 2011


On Wed, Aug 3, 2011 at 10:39 AM, Dominik Psenner <dpsenner at gmail.com> wrote:
>
> >Looks like some function is getting more deeply wrapped on every pass
> >through the dispatcher (probably both push and diff, which you've
> >recursively defined). Eventually it gets too deeply wrapped.
> >
> >> [alias]
> >> latest = log --limit 5
> >> push = push --new-branch
> >> diff = diff -a
> >
> >hg help config has this to say about aliases:
> >
> >    Note:
> >       It is possible to create aliases with the same names as existing
> >       commands, which will then override the original definitions. This
is
> >       almost always a bad idea!
> >
> >This is not one of the reasons we had in mind, but it certainly fits.
>
> True. :-) Still it works just fine - at least for a couple of days/weeks
> until it decides magically to stop working. This is odd, isn't it?
>
> Could this become a supported feature with only a few changesets?

Yes: http://markmail.org/message/jpbksn22yfbqhf5h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110804/7f653813/attachment.html>


More information about the Mercurial-devel mailing list