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.

  • Participants
  • Parent commits 12178f0

Comments (0)

Files changed (1)

File mercurial/

             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
         return old.descendant(new)