#!/bin/bash
[ $# -eq 0 ] && { echo "Usage $0 hg_copy_repo repo_name"; exit 999; }

base=$1

SERVER="hg.research.att.com"
USR="gviz"
OUT="outfile_$base"
ssh $USR@$SERVER "(bin/hg_get_repo ${base})" > $OUT 2>&1
scp -r $USR@$SERVER:${base}.tgz . >> $OUT 2>&1


Copy mercurial repo tarball from hg.
Copy mercurial repo tarball from hg.
