Source

scons-migration-scripts / convert.sh

Full commit
#!/bin/bash

# Run the conversion

REPO_PATH=file:///`pwd`/../scons-mirror
DEST_DIR=../scons-hg

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 $REPO_PATH $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 
#cd ../


# add hgignore
#cd $DEST_DIR
#hg up -C default
#cp ../hgignore.tmpl .hgignore
#hg add .hgignore
#hg commit -m "Add .hgignore."