##// 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 $ cat > ../names.py <<EOF
2028 $ cat > ../names.py <<EOF
2029 > """A small extension to test adding arbitrary names to a repo"""
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 > def reposetup(ui, repo):
2033 > def reposetup(ui, repo):
2033 > foo = {'foo': repo[0].node()}
2034 > foo = {'foo': repo[0].node()}
@@ -2035,7 +2036,8 b' Check that adding an arbitrary name show'
2035 > namemap = lambda r, name: foo.get(name)
2036 > namemap = lambda r, name: foo.get(name)
2036 > nodemap = lambda r, node: [name for name, n in foo.iteritems()
2037 > nodemap = lambda r, node: [name for name, n in foo.iteritems()
2037 > if n == node]
2038 > if n == node]
2038 > ns = namespace("bars", templatename="bar", logname="barlog",
2039 > ns = namespaces.namespace(
2040 > "bars", templatename="bar", logname="barlog",
2039 > colorname="barcolor", listnames=names, namemap=namemap,
2041 > colorname="barcolor", listnames=names, namemap=namemap,
2040 > nodemap=nodemap)
2042 > nodemap=nodemap)
2041 >
2043 >
General Comments 0
You need to be logged in to leave comments. Login now