# HG changeset patch # User Jeff Hammel # Date 1372323692 25200 # Node ID 971e7deca495368bb699b4d3ee696f438053bbca # Parent 52e718567731932bfe11b7fdba3c6ba36bdead3f got --print working, maybe diff -r 52e718567731 -r 971e7deca495 python/hgrc.py --- a/python/hgrc.py Thu Jun 27 00:04:12 2013 -0700 +++ b/python/hgrc.py Thu Jun 27 02:01:32 2013 -0700 @@ -6,12 +6,11 @@ Actions: (TBD) """ - +# imports import optparse import os import sys - -here = os.path.dirname(os.path.realpath(__file__)) +from ConfigParser import RawCOnfigParser as ConfigParser def main(args=sys.argv[1:]): @@ -56,7 +55,12 @@ continue else: assert os.path.isfile(path), "%s is not a file, exiting" % path + hgrc.append(path) + if options.print: + # print the chosen hgrc paths and you're done + print '\n'.join(hgrc) + parser.exit() if __name__ == '__main__': main()