Indicate change when repository changed. Closes  #2420.

Partially reverts commit 6e7e6cd4d686d341ce1f703aebb49b4312aeee61.