changeset 17918:2eb5f4d1c235

bookmark: remove useless line in `validdest` This case is already covered by the `if old == new:` conditional at the start of the function.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Wed, 24 Oct 2012 18:11:17 +0200
parents 12178f07de97
children 7e819ea679bd
files mercurial/bookmarks.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bookmarks.py	Wed Oct 24 17:55:21 2012 +0200
+++ b/mercurial/bookmarks.py	Wed Oct 24 18:11:17 2012 +0200
@@ -267,7 +267,6 @@
             succs.update(obsolete.allsuccessors(repo.obsstore, mutable))
             known = (n for n in succs if n in nm)
             validdests = set(repo.set('%ln::', known))
-        validdests.remove(old)
         return new in validdests
     else:
         return old.descendant(new)