nub transitionList to avoid ugly message after repeated transitions, and avoid redundant work for repeated ForgetDeadRemotes transitions

This commit is contained in:
Joey Hess 2016-05-18 12:26:38 -04:00
parent 766728c8cf
commit 823c28d2dc
Failed to extract signature
2 changed files with 4 additions and 3 deletions

View file

@ -77,7 +77,7 @@ combineTransitions :: [Transitions] -> Transitions
combineTransitions = S.unions
transitionList :: Transitions -> [Transition]
transitionList = map transition . S.elems
transitionList = nub . map transition . S.elems
{- Typically ran with Annex.Branch.change, but we can't import Annex.Branch
- here since it depends on this module. -}