Mercurial > hg > config
comparison python/hgrc.py @ 568:bb6e21338c5c
hgrc notes
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Sun, 12 Jan 2014 21:48:06 -0800 |
| parents | 2a5eee9418ba |
| children | a5a339b7fd82 |
comparison
equal
deleted
inserted
replaced
| 567:67e5137b1476 | 568:bb6e21338c5c |
|---|---|
| 3 """ | 3 """ |
| 4 Script for modifying hgrc files. | 4 Script for modifying hgrc files. |
| 5 | 5 |
| 6 If no arguments specified, the repository given by `hg root` is used. | 6 If no arguments specified, the repository given by `hg root` is used. |
| 7 | 7 |
| 8 [WIP] If http(s):// arguments are given, create hgrc file from such a thing | 8 If http(s):// arguments are given, create hgrc file from such a thing |
| 9 """ | 9 """ |
| 10 | |
| 11 ## TODO: | |
| 12 # - functionality to populate [web]-> description in hgrc file from | |
| 13 # setup.py, e.g. | |
| 14 # http://stackoverflow.com/questions/1541778/mercurial-how-do-i-populate-repository-descriptions-for-hgwebdir-cgi | |
| 15 # Could also loop over a directory; e.g. | |
| 16 # `hgrc --setup-web . # loop over all .hg repos in this directory` | |
| 10 | 17 |
| 11 # imports | 18 # imports |
| 12 import optparse | 19 import optparse |
| 13 import os | 20 import os |
| 14 import subprocess | 21 import subprocess |
