equal
deleted
inserted
replaced
403 with repo.transaction('fncache') as tr: |
403 with repo.transaction('fncache') as tr: |
404 fnc.write(tr) |
404 fnc.write(tr) |
405 else: |
405 else: |
406 ui.write(_('fncache already up to date\n')) |
406 ui.write(_('fncache already up to date\n')) |
407 |
407 |
408 def stripbmrevset(repo, mark): |
|
409 """ |
|
410 The revset to strip when strip is called with -B mark |
|
411 |
|
412 Needs to live here so extensions can use it and wrap it even when strip is |
|
413 not enabled or not present on a box. |
|
414 """ |
|
415 return repo.revs("ancestors(bookmark(%s)) - " |
|
416 "ancestors(head() and not bookmark(%s)) - " |
|
417 "ancestors(bookmark() and not bookmark(%s))", |
|
418 mark, mark, mark) |
|
419 |
|
420 def deleteobsmarkers(obsstore, indices): |
408 def deleteobsmarkers(obsstore, indices): |
421 """Delete some obsmarkers from obsstore and return how many were deleted |
409 """Delete some obsmarkers from obsstore and return how many were deleted |
422 |
410 |
423 'indices' is a list of ints which are the indices |
411 'indices' is a list of ints which are the indices |
424 of the markers to be deleted. |
412 of the markers to be deleted. |