Mercurial > hg
comparison mercurial/commands.py @ 31201:50d76bae15cf
config: set blockedtag when invoking configuration edit
author | Simon Farnsworth <simonfar@fb.com> |
---|---|
date | Mon, 06 Mar 2017 03:27:24 -0800 |
parents | 426b3d1e82d0 |
children | f59b6cf663a9 |
comparison
equal
deleted
inserted
replaced
31200:426b3d1e82d0 | 31201:50d76bae15cf |
---|---|
1794 fp.write(samplehgrc) | 1794 fp.write(samplehgrc) |
1795 fp.close() | 1795 fp.close() |
1796 | 1796 |
1797 editor = ui.geteditor() | 1797 editor = ui.geteditor() |
1798 ui.system("%s \"%s\"" % (editor, f), | 1798 ui.system("%s \"%s\"" % (editor, f), |
1799 onerr=error.Abort, errprefix=_("edit failed")) | 1799 onerr=error.Abort, errprefix=_("edit failed"), |
1800 blockedtag='config_edit') | |
1800 return | 1801 return |
1801 ui.pager('config') | 1802 ui.pager('config') |
1802 fm = ui.formatter('config', opts) | 1803 fm = ui.formatter('config', opts) |
1803 for f in scmutil.rcpath(): | 1804 for f in scmutil.rcpath(): |
1804 ui.debug('read config from: %s\n' % f) | 1805 ui.debug('read config from: %s\n' % f) |