##// 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 b' def author(repo, subset, x):'
235 n = getstring(x, _("author requires a string")).lower()
235 n = getstring(x, _("author requires a string")).lower()
236 return [r for r in subset if n in repo[r].user().lower()]
236 return [r for r in subset if n in repo[r].user().lower()]
237
237
238 def bisected(repo, subset, x):
238 def bisect(repo, subset, x):
239 """``bisected(string)``
239 """``bisect(string)``
240 Changesets marked in the specified bisect state (good, bad, skip).
240 Changesets marked in the specified bisect state (good, bad, skip).
241 """
241 """
242 state = getstring(x, _("bisect requires a string")).lower()
242 state = getstring(x, _("bisect requires a string")).lower()
@@ -245,6 +245,11 b' def bisected(repo, subset, x):'
245 marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
245 marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
246 return [r for r in subset if r in marked]
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 def bookmark(repo, subset, x):
253 def bookmark(repo, subset, x):
249 """``bookmark([name])``
254 """``bookmark([name])``
250 The named bookmark or all bookmarks.
255 The named bookmark or all bookmarks.
@@ -837,6 +842,7 b' symbols = {'
837 "ancestor": ancestor,
842 "ancestor": ancestor,
838 "ancestors": ancestors,
843 "ancestors": ancestors,
839 "author": author,
844 "author": author,
845 "bisect": bisect,
840 "bisected": bisected,
846 "bisected": bisected,
841 "bookmark": bookmark,
847 "bookmark": bookmark,
842 "branch": branch,
848 "branch": branch,
@@ -377,7 +377,7 b' reproduce AssertionError, issue1445'
377 date: Thu Jan 01 00:00:06 1970 +0000
377 date: Thu Jan 01 00:00:06 1970 +0000
378 summary: msg 6
378 summary: msg 6
379
379
380 $ hg log -r "bisected(good)"
380 $ hg log -r "bisect(good)"
381 changeset: 0:b99c7b9c8e11
381 changeset: 0:b99c7b9c8e11
382 user: test
382 user: test
383 date: Thu Jan 01 00:00:00 1970 +0000
383 date: Thu Jan 01 00:00:00 1970 +0000
@@ -388,13 +388,13 b' reproduce AssertionError, issue1445'
388 date: Thu Jan 01 00:00:05 1970 +0000
388 date: Thu Jan 01 00:00:05 1970 +0000
389 summary: msg 5
389 summary: msg 5
390
390
391 $ hg log -r "bisected(bad)"
391 $ hg log -r "bisect(bad)"
392 changeset: 6:a3d5c6fdf0d3
392 changeset: 6:a3d5c6fdf0d3
393 user: test
393 user: test
394 date: Thu Jan 01 00:00:06 1970 +0000
394 date: Thu Jan 01 00:00:06 1970 +0000
395 summary: msg 6
395 summary: msg 6
396
396
397 $ hg log -r "bisected(skip)"
397 $ hg log -r "bisect(skip)"
398 changeset: 1:5cd978ea5149
398 changeset: 1:5cd978ea5149
399 user: test
399 user: test
400 date: Thu Jan 01 00:00:01 1970 +0000
400 date: Thu Jan 01 00:00:01 1970 +0000
@@ -416,6 +416,15 b' reproduce AssertionError, issue1445'
416 summary: msg 4
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 $ set +e
428 $ set +e
420
429
421 test invalid command
430 test invalid command
General Comments 0
You need to be logged in to leave comments. Login now