[PATCH 1 of 2] completion: add a debugpathcomplete command

Kevin Bullock kbullock+mercurial at ringworld.org
Thu Mar 21 13:46:59 CDT 2013


On 21 Mar 2013, at 1:17 PM, Bryan O'Sullivan wrote:

> # HG changeset patch
> # User Bryan O'Sullivan <bryano at fb.com>
> # Date 1363889763 25200
> # Node ID d91fe1c607511dc57cb51e557229c243908a6b39
> # Parent  1e28a7f58f33729994be240335ba490a3f92e5d5
> completion: add a debugpathcomplete command
> 
> [...]
> diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
> --- a/mercurial/dirstate.py
> +++ b/mercurial/dirstate.py
> @@ -223,6 +223,9 @@ class dirstate(object):
>         for x in sorted(self._map):
>             yield x
> 
> +    def iteritems(self):
> +        return self._map.iteritems()

Now there's a nice, lightweight solution. Series LGTM.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list