# HG changeset patch # User Matt Harbison # Date 2020-02-16 22:47:20 # Node ID f10055b099b36bfc951daa7f2935bf3592c3f7c3 # Parent 9bae1d1a0f4cf15930910e117118b9676b67bac7 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 diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -127,6 +127,9 @@ eh.configitem( 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 @@ def phabimport(ui, repo, spec, **opts): 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()