##// END OF EJS Templates
revset: rename bisected() to bisect()...
"Yann E. MORIN" -
r15134:81adf777 default
parent child Browse files
Show More
@@ -235,8 +235,8 def author(repo, subset, x):
235 235 n = getstring(x, _("author requires a string")).lower()
236 236 return [r for r in subset if n in repo[r].user().lower()]
237 237
238 def bisected(repo, subset, x):
239 """``bisected(string)``
238 def bisect(repo, subset, x):
239 """``bisect(string)``
240 240 Changesets marked in the specified bisect state (good, bad, skip).
241 241 """
242 242 state = getstring(x, _("bisect requires a string")).lower()
@@ -245,6 +245,11 def bisected(repo, subset, x):
245 245 marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
246 246 return [r for r in subset if r in marked]
247 247
248 # Backward-compatibility
249 # - no help entry so that we do not advertise it any more
250 def bisected(repo, subset, x):
251 return bisect(repo, subset, x)
252
248 253 def bookmark(repo, subset, x):
249 254 """``bookmark([name])``
250 255 The named bookmark or all bookmarks.
@@ -837,6 +842,7 symbols = {
837 842 "ancestor": ancestor,
838 843 "ancestors": ancestors,
839 844 "author": author,
845 "bisect": bisect,
840 846 "bisected": bisected,
841 847 "bookmark": bookmark,
842 848 "branch": branch,
@@ -377,7 +377,7 reproduce AssertionError, issue1445
377 377 date: Thu Jan 01 00:00:06 1970 +0000
378 378 summary: msg 6
379 379
380 $ hg log -r "bisected(good)"
380 $ hg log -r "bisect(good)"
381 381 changeset: 0:b99c7b9c8e11
382 382 user: test
383 383 date: Thu Jan 01 00:00:00 1970 +0000
@@ -388,13 +388,13 reproduce AssertionError, issue1445
388 388 date: Thu Jan 01 00:00:05 1970 +0000
389 389 summary: msg 5
390 390
391 $ hg log -r "bisected(bad)"
391 $ hg log -r "bisect(bad)"
392 392 changeset: 6:a3d5c6fdf0d3
393 393 user: test
394 394 date: Thu Jan 01 00:00:06 1970 +0000
395 395 summary: msg 6
396 396
397 $ hg log -r "bisected(skip)"
397 $ hg log -r "bisect(skip)"
398 398 changeset: 1:5cd978ea5149
399 399 user: test
400 400 date: Thu Jan 01 00:00:01 1970 +0000
@@ -416,6 +416,15 reproduce AssertionError, issue1445
416 416 summary: msg 4
417 417
418 418
419 test legacy bisected() keyword
420
421 $ hg log -r "bisected(bad)"
422 changeset: 6:a3d5c6fdf0d3
423 user: test
424 date: Thu Jan 01 00:00:06 1970 +0000
425 summary: msg 6
426
427
419 428 $ set +e
420 429
421 430 test invalid command
General Comments 0
You need to be logged in to leave comments. Login now