Bug 4359 - create template with ui:user section on hg clone
Summary: create template with ui:user section on hg clone
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 3.1.1
Hardware: PC Windows
: wish feature
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-06 11:42 UTC by techtonik
Modified: 2015-01-22 15:04 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description techtonik 2014-09-06 11:42 UTC
`hg init` creates a pretty well documented `hgrc` with placeholder for filename. `hg clone`, however, doesn't, so users issuing ..hg config -edit" to set your username)... are left without knowledge about how to do this.
Comment 1 Matt Mackall 2014-09-06 13:15 UTC
$ hg init f
$ cd f
$ cat .hg/hgrc
cat: .hg/hgrc: No such file or directory

A template is generated by 'hg config --edit' only when the file doesn't exist, so I guess your request is to make the one generated at clone time more like that one. Sure.
Comment 2 techtonik 2014-09-06 13:32 UTC
Yep. Sorry, using new "hg conf -le" for every edit nowadays, because
it is awesome. )
Comment 3 HG Bot 2014-09-09 18:45 UTC
Fixed by http://selenic.com/repo/hg/rev/82b2ba904e3e
Augie Fackler <raf@durin42.com>
clone: provide sample username = config entry in .hg/hgrc (issue4359)

Some users clone from a server before ever running 'hg config --edit',
so they don't see our helpful template for things like enabling the
username. Attempt to give them some helpful guidance.

(please test the fix)
Comment 4 Matt Mackall 2015-01-22 15:04 UTC
Bulk testing -> fixed