Mercurial > hg > soundsoftware-site
comparison extra/soundsoftware/update-external-repo.sh @ 241:7658d21a1493 feature_73
A bit more work on external repo conversion script
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 22 Feb 2011 17:49:00 +0000 |
parents | |
children | bde4f47b6427 |
comparison
equal
deleted
inserted
replaced
240:6c282df74a30 | 241:7658d21a1493 |
---|---|
1 #!/bin/sh | |
2 | |
3 project="$1" | |
4 local_repo="$2" | |
5 remote_repo="$3" | |
6 | |
7 if [ -z "$project" ] || [ -z "$local_repo" ] || [ -z "$remote_repo" ]; then | |
8 echo "Usage: $0 <project> <local-repo-path> <remote-repo-url>" | |
9 exit 2 | |
10 fi | |
11 | |
12 | |
13 # We need to handle different source repository types separately. | |
14 # | |
15 # The convert extension cannot convert directly from a remote git | |
16 # repo; we'd have to mirror to a local repo first. Incremental | |
17 # conversions do work though. The hg-git plugin will convert | |
18 # directly from remote repositories, but not via all schemes | |
19 # (e.g. https is not currently supported). It's probably easier to | |
20 # use git itself to clone locally and then convert or hg-git from | |
21 # there. | |
22 # | |
23 # We can of course convert directly from remote Subversion repos, | |
24 # but we need to keep track of that -- you can ask to convert into a | |
25 # repo that has already been used (for Mercurial) and it'll do so | |
26 # happily; we don't want that. | |
27 # | |
28 # Converting from a remote Hg repo should be fine! | |
29 # | |
30 # One other thing -- we can't actually tell the difference between | |
31 # the various SCM types based on URL alone. We have to try them | |
32 # (ideally in an order determined by a guess based on the URL) and | |
33 # see what happens. | |
34 | |
35 | |
36 | |
37 |