##// END OF EJS Templates
bisect: allow revsets in addition to single revs (issue2360)
Dirkjan Ochtman -
r12177:80399b5b default
parent child Browse files
Show More
@@ -411,14 +411,19 b' def bisect(ui, repo, rev=None, extra=Non'
411 return
411 return
412
412
413 # update state
413 # update state
414 node = repo.lookup(rev or '.')
414
415 if rev:
416 nodes = [repo.lookup(i) for i in cmdutil.revrange(repo, [rev])]
417 else:
418 nodes = [repo.lookup('.')]
419
415 if good or bad or skip:
420 if good or bad or skip:
416 if good:
421 if good:
417 state['good'].append(node)
422 state['good'] += nodes
418 elif bad:
423 elif bad:
419 state['bad'].append(node)
424 state['bad'] += nodes
420 elif skip:
425 elif skip:
421 state['skip'].append(node)
426 state['skip'] += nodes
422 hbisect.save_state(repo, state)
427 hbisect.save_state(repo, state)
423
428
424 if not check_state(state):
429 if not check_state(state):
@@ -214,6 +214,29 b' skip'
214 summary: msg 29
214 summary: msg 29
215
215
216
216
217 mark revsets instead of single revs
218
219 $ hg bisect -r
220 $ hg bisect -b "0::3"
221 $ hg bisect -s "13::16"
222 $ hg bisect -g "26::tip"
223 Testing changeset 12:1941b52820a5 (23 changesets remaining, ~4 tests)
224 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
225 $ cat .hg/bisect.state
226 skip 9d7d07bc967ca98ad0600c24953fd289ad5fa991
227 skip ce8f0998e922c179e80819d5066fbe46e2998784
228 skip e7fa0811edb063f6319531f0d0a865882138e180
229 skip a2e6ea4973e9196ddd3386493b0c214b41fd97d3
230 bad b99c7b9c8e11558adef3fad9af211c58d46f325b
231 bad 5cd978ea51499179507ee7b6f340d2dbaa401185
232 bad db07c04beaca44cf24832541e7f4a2346a95275b
233 bad b53bea5e2fcb30d3e00bd3409507a5659ce0fd8b
234 good 3efc6fd51aeb8594398044c6c846ca59ae021203
235 good 288867a866e9adb7a29880b66936c874b80f4651
236 good 8e0c2264c8af790daf3585ada0669d93dee09c83
237 good b5bd63375ab9a290419f2024b7f4ee9ea7ce90a8
238 good ed2d2f24b11c368fa8aa0da9f4e1db580abade59
239 good 58c80a7c8a4025a94cedaf7b4a4e3124e8909a96
217
240
218 bisect reverse test
241 bisect reverse test
219
242
General Comments 0
You need to be logged in to leave comments. Login now