Modify repository creation
Nils
nils.schlupp at gmail.com
Thu Sep 3 11:04:22 CDT 2009
Hey,
I find myself creating repositories rather often. Now i would like to
be able to modify the way the creation happens. My primary concerns
are mainly to have an default .hgignore copied over into the new
repository, then copy the repository to a remote server over ssh, as
well as modifying the .hg/hgrc file to include the default push for
the server.
Now i was wondering what would be the most efficient way to go about
this? I was thinking maybe create an extension that imports the init
and then just call it and go from there. or maybe just write a shell
script wrapper for all this?
In short, this is what i would like to happen:
$ mkdir ~/code/category/newproject
$ cd !$
$ hg init
then the computer does the usual thing, and then
cp ~/.hgignore .
hg clone . ssh://hg@server/category/newproject
echo "default-push = ssh://hg@server/category/newproject" >> .hg/hgrc
Any tips?
Thanks,
Nils
More information about the Mercurial
mailing list