[PATCH 2 of 2] workingctx: don't report the tags for its parents

Yuya Nishihara yuya at tcha.org
Mon Jun 29 08:31:45 CDT 2015


On Sun, 28 Jun 2015 15:34:42 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1435513083 14400
> #      Sun Jun 28 13:38:03 2015 -0400
> # Node ID 601770f5da477240954670d51f5ea11caa40dc20
> # Parent  87c10f86c7517d0f8c42a080821c4b399d6f9755
> workingctx: don't report the tags for its parents
> 
> This fixes the bad distance calculation for '{latesttagdistance}' mentioned in
> the previous patch.
> 
> diff --git a/mercurial/context.py b/mercurial/context.py
> --- a/mercurial/context.py
> +++ b/mercurial/context.py
> @@ -1247,10 +1247,7 @@
>          return self._extra
>  
>      def tags(self):
> -        t = []
> -        for p in self.parents():
> -            t.extend(p.tags())
> -        return t
> +        return []

Both make sense to me.


More information about the Mercurial-devel mailing list