hg init "$srcdir"
cd "$srcdir"
echo .ikiwiki > .hgignore
- hg add * .hgignore
+ hg add
hg commit -m "initial import"
echo "Directory $srcdir is now set up as a mercurial repository"
;;
bzr init "$srcdir"
cd "$srcdir"
echo .ikiwiki > .bzrignore
- bzr add * .bzrignore
+ bzr add
bzr commit -m "initial import"
echo "Directory $srcdir is now set up as a bzr repository"
;;
fi
mkdir -p "$(dirname "$repository")"
- # fix the repository suffix we get from auto.setup
- repository="$(echo "$repository" | sed 's/.monotone/.mtn/g')"
mtn db init -d "$repository"
cleaned_srcdir=$(basename "$srcdir" | tr -s "[:space:]" "_" | sed 's/_$//g')