##// END OF EJS Templates
tests: update test-log to pass our import checker
Augie Fackler -
r33967:251bd3fd default
parent child Browse files
Show More
@@ -2027,7 +2027,8 b' Check that adding an arbitrary name show'
2027 2027
2028 2028 $ cat > ../names.py <<EOF
2029 2029 > """A small extension to test adding arbitrary names to a repo"""
2030 > from mercurial.namespaces import namespace
2030 > from __future__ import absolute_import
2031 > from mercurial import namespaces
2031 2032 >
2032 2033 > def reposetup(ui, repo):
2033 2034 > foo = {'foo': repo[0].node()}
@@ -2035,9 +2036,10 b' Check that adding an arbitrary name show'
2035 2036 > namemap = lambda r, name: foo.get(name)
2036 2037 > nodemap = lambda r, node: [name for name, n in foo.iteritems()
2037 2038 > if n == node]
2038 > ns = namespace("bars", templatename="bar", logname="barlog",
2039 > colorname="barcolor", listnames=names, namemap=namemap,
2040 > nodemap=nodemap)
2039 > ns = namespaces.namespace(
2040 > "bars", templatename="bar", logname="barlog",
2041 > colorname="barcolor", listnames=names, namemap=namemap,
2042 > nodemap=nodemap)
2041 2043 >
2042 2044 > repo.names.addnamespace(ns)
2043 2045 > EOF
General Comments 0
You need to be logged in to leave comments. Login now