[PATCH] templatekw: allow tagtypes other than global in getlatesttags

Matt Mackall mpm at selenic.com
Mon Jan 6 11:44:18 CST 2014


On Mon, 2013-12-23 at 14:15 +0100, Andrew Shadura wrote:
> # HG changeset patch
> # User Andrew Shadura <andrew at shadura.me>
> # Date 1387804471 -3600
> #      Mon Dec 23 14:14:31 2013 +0100
> # Node ID 9d828248ba21fc13ed6c4cc343761dd0966087ad
> # Parent  4274eda143cb1025be1130ffdaaf62370a2a6961
> templatekw: allow tagtypes other than global in getlatesttags
> 
> hg-git uses tagtype 'git', for example, so it's better
> to check for tagtype != 'local', not strictly for 'global'

Queued for default, thanks. Check-code sends its regards:

mercurial/templatekw.py:120:
 >         tags = [t for t in ctx.tags() if (repo.tagtype(t) and
repo.tagtype(t) != 'local')]
 line too long

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list