# HG changeset patch # User Jeff Hammel # Date 1376186659 25200 # Node ID 949ca4b2f2d1bcb5c8911b3bc6c05158e1ef4974 # Parent 764535e1f9911b8cccd4d471031bd6544e9e3273 python/hgrc.py diff -r 764535e1f991 -r 949ca4b2f2d1 python/hgrc.py --- a/python/hgrc.py Sat Aug 10 18:54:29 2013 -0700 +++ b/python/hgrc.py Sat Aug 10 19:04:19 2013 -0700 @@ -108,13 +108,20 @@ config[path].read(path) # print the chosen hgrc paths - if options.list_hgrc: + if actions.pop('list_hgrc', None): print '\n'.join(hgrc) + # map of actions -> functions; + # XXX this is pretty improv; to be improved + action_map = {'default_push_ssh': set_default_push_to_ssh + 'default_push': set_default_push + } + # alter .hgrc files - for path, ini in config.items(): + while actions: - import pdb; pdb.set_trace() + for path, ini in config.items(): + import pdb; pdb.set_trace() if __name__ == '__main__': main()