无法分解多副本变更集以生成差异

问题描述 投票:0回答:1

尝试在diff上找到master时出现以下错误。

未能分解多副本变更集以生成差异。

以下是异常详细信息

[2020-03-26 12:06:37] EXCEPTION: (Exception) Failed to decompose multicopy changeset in order to generate diff. at [<arcanist>/src/parser/ArcanistBundle.php:375]
arcanist(head=master, ref.master=605119b9319b), phutil(head=master, ref.master=9f2c1e1412e2)
  #0 ArcanistBundle::toGitPatch() called at [<arcanist>/src/workflow/ArcanistLandWorkflow.php:1057]
  #1 ArcanistLandWorkflow::normalizeDiff(string) called at [<arcanist>/src/workflow/ArcanistLandWorkflow.php:985]
  #2 ArcanistLandWorkflow::findRevision() called at [<arcanist>/src/workflow/ArcanistLandWorkflow.php:1889]
  #3 ArcanistLandWorkflow::buildEngineMessage(ArcanistGitLandEngine) called at [<arcanist>/src/land/ArcanistGitLandEngine.php:92]
  #4 ArcanistGitLandEngine::identifyRevision() called at [<arcanist>/src/land/ArcanistGitLandEngine.php:28]
  #5 ArcanistGitLandEngine::execute() called at [<arcanist>/src/workflow/ArcanistLandWorkflow.php:370]
  #6 ArcanistLandWorkflow::run() called at [<arcanist>/scripts/arcanist.php:394]

有人可以帮忙吗?

github phabricator arcanist
1个回答
0
投票

enter image description here

在图像中,我们可以看到文件src / components / organization / 生成 / CreateOrganization.js被拆分为多个文件。基本上,将其内容复制到两个不同的文件中,然后将其删除。这可能会触发多副本分解。

检查https://gitlab.collabora.com/phabricator/arcanist/-/blob/d2b38cdf94441146daf5f5ae68169689dc0c24d7/src/parser/ArcanistBundle.php#L356

基于代码,弧试图将多副本分解为一个MOVE和多个COPY。并且在上述情况下它无法分解。可能是因为源文件被删除了。放回CreateOrganization.js文件,然后更新已完成的差异。

© www.soinside.com 2019 - 2024. All rights reserved.