[PATCH] revset: added _intlist method to replace _list for %ld

Matt Mackall mpm at selenic.com
Wed Feb 26 15:10:30 CST 2014


On Wed, 2014-02-26 at 12:43 -0800, Lucas Moscovicz wrote:
> # HG changeset patch
> # User Lucas Moscovicz <lmoscovicz at fb.com>
> # Date 1393446996 28800
> #      Wed Feb 26 12:36:36 2014 -0800
> # Node ID d9cf5e6843d7b15fe82ab0cd64a614489ff590da
> # Parent  e1b82805679d24f3de891162d780971da4e8e151
> revset: added _intlist method to replace _list for %ld
> 
> Now %ld expression goes through _intlist and doesn't do any unnecesary
> processing anymore.
> 
> diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
> --- a/mercurial/localrepo.py
> +++ b/mercurial/localrepo.py
> @@ -428,7 +428,7 @@
>          '''Return a list of revisions matching the given revset'''
>          expr = revset.formatspec(expr, *args)
>          m = revset.match(None, expr)
> -        return revset.baseset([r for r in m(self, revset.baseset(self))])
> +        return m(self, revset.spanset(self))

This bit appears unrelated to $DESC, I've queued the rest of the patch.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list