Commits

Pierre-Yves David committed 2eb5f4d

bookmark: remove useless line in `validdest`

This case is already covered by the `if old == new:` conditional at the start of
the function.

Comments (0)

Files changed (1)

mercurial/bookmarks.py

             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)