D3852: namespaces: let namespaces override singlenode() definition

2018-06-28 Thread martinvonz (Martin von Zweigbergk)
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

D3852: namespaces: let namespaces override singlenode() definition

2018-06-28 Thread martinvonz (Martin von Zweigbergk)
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: > > +

D3852: namespaces: let namespaces override singlenode() definition

2018-06-28 Thread martinvonz (Martin von Zweigbergk)
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

Re: D3852: namespaces: let namespaces override singlenode() definition

2018-06-28 Thread Yuya Nishihara
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 =

D3852: namespaces: let namespaces override singlenode() definition

2018-06-27 Thread martinvonz (Martin von Zweigbergk)
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

D3852: namespaces: let namespaces override singlenode() definition

2018-06-27 Thread martinvonz (Martin von Zweigbergk)
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