##// END OF EJS Templates
tests: stabilize `test-merge-partial-tool.t` on Windows...
tests: stabilize `test-merge-partial-tool.t` on Windows The test was previously failing because it was opening the shell scripts being used as an executable in a text editor, and problems cascaded from there.

File last commit:

r49730:6000f5b2 default
r52838:4ee2505f default
Show More
revnamesext.py
20 lines | 537 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
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)