infra/codestorage/hg-repo-sync

Paddy 2015-10-14 Parent:cc08c8ed2128 Child:32a993adf753

3:c8b4b952488a Go to Latest

infra/codestorage/hg-repo-sync/pull.sh

Remove the hgrc file, fix permissions. When pulling backups, make sure we set the permissions to 0770 as well as change the group they belong to. This caused us to not be able to write changes (oops). Also, remove the hgrc file. Which means our annoying "not trusting file /mounted/repos/blah-blah/.hg/hgrc from untrusted user root, group committers" message is back, but that's a minor nuisance. The real issue is that we're overwriting the hgrc for everything _anyways_ to get the push hook, etc. So there seemed to be little point.

History
     1.1 --- a/pull.sh	Sun Oct 11 16:52:32 2015 -0700
     1.2 +++ b/pull.sh	Wed Oct 14 23:04:31 2015 -0700
     1.3 @@ -43,8 +43,9 @@
     1.4  	else
     1.5  		echo "Creating /mounted/repos$target repo from $bundle"
     1.6  		hg clone $bundle /mounted/repos${target}
     1.7 -		chgrp -R 2000 /mounted/repos${target}
     1.8  	fi
     1.9 +	chgrp -R 2000 /mounted/repos${target}
    1.10 +	chmod -R 0770 /mounted/repos${target}
    1.11  done
    1.12  
    1.13  echo "Cleaning up..."