bookmark: remove useless line in `validdest`
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 24 Oct 2012 18:11:17 +0200
changeset 17918 2eb5f4d1c235
parent 17917 12178f07de97
child 17919 7e819ea679bd
bookmark: remove useless line in `validdest` This case is already covered by the `if old == new:` conditional at the start of the function.
mercurial/bookmarks.py
--- 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)