Commits

anatoly techtonik committed 4e5d806

convert.sh: also produce clone without branches

  • Participants
  • Parent commits 6ced492

Comments (0)

Files changed (1)

 PARENT="$( cd "$( dirname "$0" )/.." && pwd )"
 REPO_PATH=file://$PARENT/scons-mirror
 DEST_DIR=$PARENT/scons-hg
+DEST_NO_BRANCH_CLONE=$DEST_DIR-nobranches
 
 if [ -x $DEST_DIR ]
 then
 hg convert --datesort --authormap=$CURDIR/authors.txt --filemap=$CURDIR/filemap.txt --splicemap=$CURDIR/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 ../
-
+# Uncomment to the create additional clone without branches (trunk/ only)
+echo "Creating branchless clone in $DEST_NO_BRANCH_CLONE"
+hg clone $DEST_DIR $DEST_NO_BRANCH_CLONE -r default -U
 
 # add hgignore
 #cd $DEST_DIR