This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4c0683655599: namespaces: let namespaces override
singlenode() definition (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
martinvonz added a comment.
In https://phab.mercurial-scm.org/D3852#60160, @yuja wrote:
> Makes sense. One nit.
>
> > +if not singlenode:
> > +def singlenode(repo, name):
> > +n = self.namemap(repo, name)
> > +if n:
> > +
martinvonz updated this revision to Diff 9336.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3852?vs=9333=9336
REVISION DETAIL
https://phab.mercurial-scm.org/D3852
AFFECTED FILES
mercurial/namespaces.py
CHANGE DETAILS
diff --git
Makes sense. One nit.
> +if not singlenode:
> +def singlenode(repo, name):
> +n = self.namemap(repo, name)
> +if n:
> +# return max revision number
> +if len(n) > 1:
> +cl =
martinvonz updated this revision to Diff 9333.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3852?vs=9331=9333
REVISION DETAIL
https://phab.mercurial-scm.org/D3852
AFFECTED FILES
mercurial/namespaces.py
CHANGE DETAILS
diff --git
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Some namespaces have multiple nodes per name (meaning that their
namemap() returns multiple nodes). One such namespace is the "topics"
namespace (from the