From patchwork Sat Mar 14 00:38:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D8138: phabricator: add a config knob to create obsolete markers when importing From: phabricator X-Patchwork-Id: 45781 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Sat, 14 Mar 2020 00:38:11 +0000 Closed by commit rHGf10055b099b3: phabricator: add a config knob to create obsolete markers when importing (authored by mharbison72). This revision was automatically updated to reflect the committed changes. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D8138?vs=20556&id=20787 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D8138/new/ REVISION DETAIL https://phab.mercurial-scm.org/D8138 AFFECTED FILES hgext/phabricator.py CHANGE DETAILS To: mharbison72, #hg-reviewers, durin42 Cc: durin42, Kwan, mercurial-devel diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -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()