Source

scons-migration-scripts / convert.sh

#!/bin/bash

# Run the conversion

DEST_DIR=rietveld

if [ -x $DEST_DIR ]
then
    echo "Destination folder already exists."
    exit 1
fi


mkdir $DEST_DIR

hg convert --datesort --authormap=authors.txt --splicemap=splicemap.txt http://rietveld.googlecode.com/svn $DEST_DIR
 
# # uncomment the following lines to close the testing branch
# cd $DEST_DIR
# hg up -C testing
# hg commit --close-branch -m "Close testing branch."
# hg up -C default