Show More
@@ -124,6 +124,9 b' eh.configitem(' | |||||
124 | eh.configitem( |
|
124 | eh.configitem( | |
125 | b'phabsend', b'confirm', default=False, |
|
125 | b'phabsend', b'confirm', default=False, | |
126 | ) |
|
126 | ) | |
|
127 | eh.configitem( | |||
|
128 | b'phabimport', b'secret', default=False, | |||
|
129 | ) | |||
127 |
|
130 | |||
128 | colortable = { |
|
131 | colortable = { | |
129 | b'phabricator.action.created': b'green', |
|
132 | b'phabricator.action.created': b'green', | |
@@ -1729,6 +1732,9 b' def phabimport(ui, repo, spec, **opts):' | |||||
1729 | # Evolve 9.3.0 assumes this key is present in cmdutil.tryimportone() |
|
1732 | # Evolve 9.3.0 assumes this key is present in cmdutil.tryimportone() | |
1730 | opts[b'obsolete'] = False |
|
1733 | opts[b'obsolete'] = False | |
1731 |
|
1734 | |||
|
1735 | if ui.configbool(b'phabimport', b'secret'): | |||
|
1736 | opts[b'secret'] = True | |||
|
1737 | ||||
1732 | def _write(patches): |
|
1738 | def _write(patches): | |
1733 | parents = repo[None].parents() |
|
1739 | parents = repo[None].parents() | |
1734 |
|
1740 |
@@ -345,5 +345,39 b' Phabimport works with a stack' | |||||
345 | o 0 c44b38f24a45 1970-01-01 00:00 +0000 test |
|
345 | o 0 c44b38f24a45 1970-01-01 00:00 +0000 test | |
346 | create alpha for phabricator test \x80 (esc) |
|
346 | create alpha for phabricator test \x80 (esc) | |
347 |
|
347 | |||
|
348 | Phabimport can create secret commits | |||
|
349 | ||||
|
350 | $ hg rollback --config ui.rollback=True | |||
|
351 | repository tip rolled back to revision 1 (undo phabimport) | |||
|
352 | $ hg phabimport --stack 'D7918' --test-vcr "$VCR/phabimport-stack.json" \ | |||
|
353 | > --config phabimport.secret=True | |||
|
354 | applying patch from D7917 | |||
|
355 | applying patch from D7918 | |||
|
356 | $ hg log -T phases | |||
|
357 | changeset: 3:aaef04066140 | |||
|
358 | tag: tip | |||
|
359 | phase: secret | |||
|
360 | user: test | |||
|
361 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
362 | summary: create draft change for phabricator testing | |||
|
363 | ||||
|
364 | changeset: 2:8de3712202d1 | |||
|
365 | phase: secret | |||
|
366 | user: test | |||
|
367 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
368 | summary: create public change for phabricator testing | |||
|
369 | ||||
|
370 | changeset: 1:a692622e6937 | |||
|
371 | phase: public | |||
|
372 | user: test | |||
|
373 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
374 | summary: create beta for phabricator test | |||
|
375 | ||||
|
376 | changeset: 0:c44b38f24a45 | |||
|
377 | phase: public | |||
|
378 | user: test | |||
|
379 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
380 | summary: create alpha for phabricator test \x80 (esc) | |||
|
381 | ||||
348 |
|
382 | |||
349 | $ cd .. |
|
383 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now