Modify repository creation
Greg Ward
greg-hg at gerg.ca
Thu Sep 3 11:30:15 CDT 2009
On Thu, Sep 3, 2009 at 12:04 PM, Nils<nils.schlupp at gmail.com> wrote:
> 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?
Extensions are cool and fun and sexy, but probably overkill here. I
would just write a shell script. If this is something commonly done
by many people on a common project, it might be worth writing an
extension... but I wouldn't bother until you know it's worth it.
Greg
More information about the Mercurial
mailing list