Skip to content
Snippets Groups Projects
Commit f10055b0 authored by Matt Harbison's avatar Matt Harbison
Browse files

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
parent 9bae1d1a
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment