Mercurial > hg
changeset 33514:169c97bbd94c
bookmark: drop deletedivergent
It has no caller anymore.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 10 Jul 2017 20:06:15 +0200 |
parents | 904894edb205 |
children | 3325c7dcabaa |
files | mercurial/bookmarks.py |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Mon Jul 10 20:02:32 2017 +0200 +++ b/mercurial/bookmarks.py Mon Jul 10 20:06:15 2017 +0200 @@ -292,16 +292,6 @@ parents = [p.node() for p in repo[None].parents()] return (mark in marks and marks[mark] in parents) -def deletedivergent(repo, deletefrom, bm): - '''Delete divergent versions of bm on nodes in deletefrom. - - Return True if at least one bookmark was deleted, False otherwise.''' - bms = divergent2delete(repo, deletefrom, bm) - marks = repo._bookmarks - for b in bms: - del marks[b] - return bool(bms) - def divergent2delete(repo, deletefrom, bm): """find divergent versions of bm on nodes in deletefrom.