Mercurial > hg-stable
changeset 44562:f10055b099b3
phabricator: add a config knob to create obsolete markers when importing
This too can get a tristate switch if desired. But if so, that needs to happen
by having evolve add the option.
Differential Revision: https://phab.mercurial-scm.org/D8138
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 16 Feb 2020 17:47:20 -0500 |
parents | 9bae1d1a0f4c |
children | dc25de8117e4 |
files | hgext/phabricator.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/phabricator.py Sun Feb 16 17:17:41 2020 -0500 +++ b/hgext/phabricator.py Sun Feb 16 17:47:20 2020 -0500 @@ -127,6 +127,9 @@ eh.configitem( b'phabimport', b'secret', default=False, ) +eh.configitem( + b'phabimport', b'obsolete', default=False, +) colortable = { b'phabricator.action.created': b'green', @@ -1734,6 +1737,8 @@ if ui.configbool(b'phabimport', b'secret'): opts[b'secret'] = True + if ui.configbool(b'phabimport', b'obsolete'): + opts[b'obsolete'] = True # Handled by evolve wrapping tryimportone() def _write(patches): parents = repo[None].parents()