[issue2242] `hg init` options - --ignore=..., --user, --interactive

techtonik bugs at mercurial.selenic.com
Sun Jun 20 09:10:28 UTC 2010


New submission from techtonik <techtonik at gmail.com>:

When working on a quick patch for some project it would be nice if 'hg init' 
can automate some repetitive tasks, such as:
1. create .hgignore file with `all included` mask
> hg init --ignore
# just create .hgignore file
> hg init --ignore=all
# create ignore file with everything ignored
2. creating .hgrc with username for this repository
> hg init --user="user name <em at il>"

As with more options it becomes harder to memorize them, --interactive 
should help to save time for those users who don't want to spend too much 
time reading cmd help.

> hg init --interactive
Create .hgignore [No/Empty/All] (default No): A
Set username in .hgrc (leave empty to skip): User Name <em at il>
Done.

----------
messages: 12851
nosy: techtonik
priority: feature
status: unread
title: `hg init` options - --ignore=..., --user, --interactive

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2242>
____________________________________________________


More information about the Mercurial-devel mailing list