Mercurial > hg > soundsoftware-site
changeset 439:d3faf348b287 cannam-pre-20110113-merge
Fix updates for tracking external Mercurial repos
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Mon, 06 Jun 2011 13:32:52 +0100 |
parents | 34214e593c67 |
children | 6253d777aa12 350acce374a2 03a946f2401c |
files | extra/soundsoftware/update-external-repo.sh |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/soundsoftware/update-external-repo.sh Mon Jun 06 13:32:07 2011 +0100 +++ b/extra/soundsoftware/update-external-repo.sh Mon Jun 06 13:32:52 2011 +0100 @@ -89,6 +89,9 @@ if [ -d "$project_repo_mirror/.hg" ]; then "$hg" --config extensions.convert= convert --datesort "$remote_repo" "$project_repo_mirror" && success=true + if [ -z "$success" ]; then + ( cd "$project_repo_mirror" && "$hg" pull "$remote_repo" ) && success=true + fi elif [ -d "$project_repo_mirror/.git" ]; then ( cd "$project_repo_mirror" && git pull "$remote_repo" master ) && success=true else