Patchwork D8138: phabricator: add a config knob to create obsolete markers when importing

login
register
mail settings
Submitter phabricator
Date March 4, 2020, 2:57 p.m.
Message ID <712d9924cc16bba6d149abc01293226c@localhost.localdomain>
Download mbox | patch
Permalink /patch/45455/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2020, 2:57 p.m.
mharbison72 updated this revision to Diff 20452.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8138?vs=20428&id=20452

BRANCH
  default

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
Cc: Kwan, mercurial-devel

Patch

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',
@@ -1717,6 +1720,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()