polyspace-project -diff, polyspace-project -merge
R2026b(System Command) Compare and merge Polyspace Platform projects, workspaces, configurations and tests before submission to source control
Since R2023b
Syntax
Description
The polyspace-project -diff, polyspace-project -merge system
command allows you to compare and merge Polyspace® Platform projects, workspaces, native external configurations or tests in a
diff/merge tool (or automatically merge them at the command line).
Compare Polyspace Artifacts
polyspace-project -diff opens a diff/merge tool for comparing two versions of a Polyspace artifact, latestVersion myVersionlatestVersion and myVersion. The structure of the artifact latestVersion appears on the left and that of myVersion appears on the right.
Merge Polyspace Artifacts
polyspace-project -merge opens a diff/merge tool for comparing and merging two versions of a Polyspace artifact, latestVersion myVersion [-target mergedVersion]latestVersion and myVersion. The structure of the artifact latestVersion appears on the left and that of myVersion appears on the right.
polyspace-project -merge opens a diff/merge tool for comparing and merging two versions of a Polyspace artifact, baseVersion latestVersion myVersion [-target mergedVersion] [-auto]latestVersion and myVersion, taking into account a common ancestor version of the artifact, baseVersion (three-way merge). The structure of the artifact latestVersion appears on the left with baseVersion in the middle and myVersion on the right. The option -auto initializes the merged version with the result of an
automatic merge (otherwise, the merged version is initialized with myVersion).
Automatically Merge Polyspace Artifacts
polyspace-project -auto-merge attempts to automatically merge two versions of a Polyspace artifact, baseVersion latestVersion myVersion [-target mergedVersion]latestVersion and myVersion, taking into account a common ancestor version of the artifact, baseVersion.
Examples
Input Arguments
Limitations
The polyspace-project -diff and polyspace-project
-merge commands do not support TOML external configuration files
(.toml.pscfg). To compare and merge external configuration files saved in
the human-readable TOML format, use any text-based diff or merge tool.
Version History
Introduced in R2023b