##// END OF EJS Templates
compare-disco: support for `file` nodes specification...
marmoute -
r50358:5acbc550 default
parent child Browse files
Show More
@@ -99,7 +99,11 b' assert set(VARIANTS.keys()) == set(VARIA'
99
99
100 def parse_case(case):
100 def parse_case(case):
101 case_type, case_args = case.split('-', 1)
101 case_type, case_args = case.split('-', 1)
102 case = (case_type,) + tuple(int(x) for x in case_args.split('-'))
102 if case_type == 'file':
103 case_args = (case_args,)
104 else:
105 case_args = tuple(int(x) for x in case_args.split('-'))
106 case = (case_type,) + case_args
103 return case
107 return case
104
108
105
109
@@ -115,6 +119,8 b' def to_revsets(case):'
115 return '::randomantichain(all(), "%d")' % case[1]
119 return '::randomantichain(all(), "%d")' % case[1]
116 elif t == 'rev':
120 elif t == 'rev':
117 return '::%d' % case[1]
121 return '::%d' % case[1]
122 elif t == 'file':
123 return '::nodefromfile("%s")' % case[1]
118 else:
124 else:
119 assert False
125 assert False
120
126
General Comments 0
You need to be logged in to leave comments. Login now