comparison python/hgrc.py @ 435:ac7973ec485e

python/hgrc.py
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 08 Aug 2013 10:36:19 -0700
parents 6797477f6a8f
children 2588ca4ae849
comparison
equal deleted inserted replaced
434:d4f6995812c1 435:ac7973ec485e
80 for path in hgrc: 80 for path in hgrc:
81 config[path] = ConfigParser() 81 config[path] = ConfigParser()
82 if isinstance(path, basestring): 82 if isinstance(path, basestring):
83 if os.path.exists(path): 83 if os.path.exists(path):
84 config[path].read(path) 84 config[path].read(path)
85 else:
86 # XXX this code path is untenable
87 config[path].
88 85
89 # print the chosen hgrc paths 86 # print the chosen hgrc paths
90 if options.list_hgrc: 87 if options.list_hgrc:
91 print '\n'.join(hgrc) 88 print '\n'.join(hgrc)
92 89