Move the last 3 functions from Darcs.Repository to D.R.State (the
pending-related functions) and Darcs.UI.Commands.Util (the prompt about
unrelated repositories).
I was a bit confused at first when I looked at the changes without
seeing your comment below. It would have made sense to add it to the
patch itself as long description.
Otherwise: much appreciated cleanup.