Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 22419:fdfc9faca273
ui: move samplehgrcs from config
config is generic code that doesn't know about Mercurial usage, so
this was at the wrong layer
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 11 Sep 2014 12:26:12 -0500 |
parents | ca854cd4a26a |
children | edf07a804ac4 |
comparison
equal
deleted
inserted
replaced
22418:192c798aabee | 22419:fdfc9faca273 |
---|---|
1520 | 1520 |
1521 for f in paths: | 1521 for f in paths: |
1522 if os.path.exists(f): | 1522 if os.path.exists(f): |
1523 break | 1523 break |
1524 else: | 1524 else: |
1525 from config import samplehgrcs | 1525 from ui import samplehgrcs |
1526 | 1526 |
1527 if opts.get('global'): | 1527 if opts.get('global'): |
1528 samplehgrc = samplehgrcs['global'] | 1528 samplehgrc = samplehgrcs['global'] |
1529 elif opts.get('local'): | 1529 elif opts.get('local'): |
1530 samplehgrc = samplehgrcs['local'] | 1530 samplehgrc = samplehgrcs['local'] |