[PATCH] obsolete: remove unused _knownrevs function

Augie Fackler raf at durin42.com
Tue Sep 22 08:44:43 CDT 2015


On Tue, Sep 22, 2015 at 01:33:47AM +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1442151298 -32400
> #      Sun Sep 13 22:34:58 2015 +0900
> # Node ID a88e581e0654d66c94f8469fdb468398d0f8c2c6
> # Parent  4b685712fa454919c121d8d1c967da35b0522dd5
> obsolete: remove unused _knownrevs function

queued, many thanks

>
> The call site was removed at cd62532c62a1.
>
> diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
> --- a/mercurial/obsolete.py
> +++ b/mercurial/obsolete.py
> @@ -1045,16 +1045,6 @@ def successorssets(repo, initialnode, ca
>                  cache[current] = final
>      return cache[initialnode]
>
> -def _knownrevs(repo, nodes):
> -    """yield revision numbers of known nodes passed in parameters
> -
> -    Unknown revisions are silently ignored."""
> -    torev = repo.changelog.nodemap.get
> -    for n in nodes:
> -        rev = torev(n)
> -        if rev is not None:
> -            yield rev
> -
>  # mapping of 'set-name' -> <function to compute this set>
>  cachefuncs = {}
>  def cachefor(name):
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list