Mercurial > hg > config
comparison python/hgrc.py @ 468:4853551536d6
python/hgrc.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 10 Aug 2013 18:52:46 -0700 |
parents | 980584d34134 |
children | 764535e1f991 |
comparison
equal
deleted
inserted
replaced
467:980584d34134 | 468:4853551536d6 |
---|---|
11 import os | 11 import os |
12 import subprocess | 12 import subprocess |
13 import sys | 13 import sys |
14 from ConfigParser import RawConfigParser as ConfigParser | 14 from ConfigParser import RawConfigParser as ConfigParser |
15 | 15 |
16 #@parser # decorator makes this x-form path -> ConfigParser automagically | |
16 def set_default_push(parser, default_push): | 17 def set_default_push(parser, default_push): |
17 """ | 18 """ |
18 set [paths]:default_push to `default_push` | 19 set [paths]:default_push to `default_push` |
19 """ | 20 """ |
20 pass | 21 pass |
21 | 22 |
22 def set_default_push_to_ssh(): | 23 def set_default_push_to_ssh(parser): |
24 """ | |
23 pass | 25 pass |
26 """ | |
24 | 27 |
25 def main(args=sys.argv[1:]): | 28 def main(args=sys.argv[1:]): |
26 | 29 |
27 # parse command line arguments | 30 # parse command line arguments |
28 usage = '%prog [options] repository <repository> <...>' | 31 usage = '%prog [options] repository <repository> <...>' |
108 if options.list_hgrc: | 111 if options.list_hgrc: |
109 print '\n'.join(hgrc) | 112 print '\n'.join(hgrc) |
110 | 113 |
111 # alter .hgrc files | 114 # alter .hgrc files |
112 for path, ini in config.items(): | 115 for path, ini in config.items(): |
116 | |
113 import pdb; pdb.set_trace() | 117 import pdb; pdb.set_trace() |
114 | 118 |
115 if __name__ == '__main__': | 119 if __name__ == '__main__': |
116 main() | 120 main() |