remote-hg: add shared repo upgrade
commit3baacc5cc6e4c2ed6184a7c5d9e10299999498dd
authorFelipe Contreras <felipe.contreras@gmail.com>
Fri, 9 Aug 2013 22:38:04 +0000 (9 17:38 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Aug 2013 06:17:10 +0000 (11 23:17 -0700)
tree01e85417c5baabe1ccf6a2eed4d731f17767b560
parent52f0856a7bf06cf278ce1404a5d80070f327eee1
remote-hg: add shared repo upgrade

If we have an old organization (v1.8.3), and want to upgrade to a newer
one (v1.8.4), the user would have to fetch the whole repository, instead
we can just move the repository, so the user would not notice any
difference.

Also, remove other clones, so in time they get set up as shared.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Reviewed-by: Antoine Pelisse <apelisse@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg