##// END OF EJS Templates
debugcommands: introduce new debugrequirements command...
debugcommands: introduce new debugrequirements command This for now just prints out the list of current requirements. In future this will be helpful in reading requirements from couple of sources, and checking which requirement comes from where. Differential Revision: https://phab.mercurial-scm.org/D8632

File last commit:

r43346:2372284d default
r45667:4a28f5e8 default
Show More
revnamesext.py
21 lines | 576 B | text/x-python | PythonLexer
Gregory Szorc
namespaces: record and expose whether namespace is built-in...
r33048 # Dummy extension to define a namespace containing revision names
from __future__ import absolute_import
Augie Fackler
formatting: blacken the codebase...
r43346 from mercurial import namespaces
Gregory Szorc
namespaces: record and expose whether namespace is built-in...
r33048
def reposetup(ui, repo):
Yuya Nishihara
py3: mark all string literals in test-command-template.t as bytes...
r36566 names = {b'r%d' % rev: repo[rev].node() for rev in repo}
Gregory Szorc
namespaces: record and expose whether namespace is built-in...
r33048 namemap = lambda r, name: names.get(name)
Yuya Nishihara
py3: mark all string literals in test-command-template.t as bytes...
r36566 nodemap = lambda r, node: [b'r%d' % repo[node].rev()]
Gregory Szorc
namespaces: record and expose whether namespace is built-in...
r33048
Augie Fackler
formatting: blacken the codebase...
r43346 ns = namespaces.namespace(
b'revnames',
templatename=b'revname',
logname=b'revname',
listnames=lambda r: names.keys(),
namemap=namemap,
nodemap=nodemap,
)
Gregory Szorc
namespaces: record and expose whether namespace is built-in...
r33048 repo.names.addnamespace(ns)