contrib/phabricator.py
changeset 38342 bb7e3c6ef592
parent 38075 5a7cf42ba6ef
child 38398 81a4be7099fa
--- a/contrib/phabricator.py	Sat Jun 16 19:31:07 2018 +0900
+++ b/contrib/phabricator.py	Thu Jun 14 12:35:04 2018 -0400
@@ -579,7 +579,11 @@
                     new = context.metadataonlyctx(
                         repo, old, parents=parents, text=newdesc,
                         user=old.user(), date=old.date(), extra=old.extra())
-                    newnode = new.commit()
+
+                    overrides = {('phases', 'new-commit'): old.phase()}
+                    with ui.configoverride(overrides, 'phabsend'):
+                        newnode = new.commit()
+
                     mapping[old.node()] = [newnode]
                     # Update diff property
                     writediffproperties(unfi[newnode], diffmap[old.node()])