##// END OF EJS Templates
merge with stable
Matt Mackall -
r14844:7aaae546 merge default
parent child Browse files
Show More
@@ -129,7 +129,8 b' def wrapname(name, wrapper):'
129 funcs = '''os.path.join os.path.split os.path.splitext
129 funcs = '''os.path.join os.path.split os.path.splitext
130 os.path.splitunc os.path.normpath os.path.normcase os.makedirs
130 os.path.splitunc os.path.normpath os.path.normcase os.makedirs
131 mercurial.util.endswithsep mercurial.util.splitpath mercurial.util.checkcase
131 mercurial.util.endswithsep mercurial.util.splitpath mercurial.util.checkcase
132 mercurial.util.fspath mercurial.util.pconvert mercurial.util.normpath'''
132 mercurial.util.fspath mercurial.util.pconvert mercurial.util.normpath
133 mercurial.util.checkwinfilename mercurial.util.checkosfilename'''
133
134
134 # codec and alias names of sjis and big5 to be faked.
135 # codec and alias names of sjis and big5 to be faked.
135 problematic_encodings = '''big5 big5-tw csbig5 big5hkscs big5-hkscs
136 problematic_encodings = '''big5 big5-tw csbig5 big5hkscs big5-hkscs
@@ -928,6 +928,14 b' def optimize(x, small):'
928 elif op == 'group':
928 elif op == 'group':
929 return optimize(x[1], small)
929 return optimize(x[1], small)
930 elif op in 'range list parent ancestorspec':
930 elif op in 'range list parent ancestorspec':
931 if op == 'parent':
932 # x^:y means (x^) : y, not x ^ (:y)
933 post = ('parentpost', x[1])
934 if x[2][0] == 'dagrangepre':
935 return optimize(('dagrange', post, x[2][1]), small)
936 elif x[2][0] == 'rangepre':
937 return optimize(('range', post, x[2][1]), small)
938
931 wa, ta = optimize(x[1], small)
939 wa, ta = optimize(x[1], small)
932 wb, tb = optimize(x[2], small)
940 wb, tb = optimize(x[2], small)
933 return wa + wb, (op, ta, tb)
941 return wa + wb, (op, ta, tb)
General Comments 0
You need to be logged in to leave comments. Login now