Connect an Analysis Project to an SVN Repository

Overview

The snapshots that are uploaded to EcoStruxure Machine Advisor Code Analysis do not contain source code. They only contain names of objects, methods, variables, and so on, and information on the relationship between them (call, read, define).

To find the source code modifications between different snapshots, you can link the Machine Advisor Code Analysis to an SVN repository which provides the source code with its history.

Prerequisites

To use the Machine Advisor Code Analysis with an SVN repository, the following software must be installed on the system, Machine Advisor Code Analysis is running on:

  • Tortoise SVN

  • Logic Builder Diff Viewer (part of the Schneider Electric Software Installer).

    The Logic Builder Diff Viewer must be started at least once so that it can be executed by the internet-based EcoStruxure Machine Advisor Code Analysis portal.

Requirements for the Project/Snapshot

To link an analysis project in the Machine Advisor Code Analysis to an SVN repository, the snapshots that should be uploaded to Machine Advisor Code Analysis must provide additional data.

This data is automatically added to the snapshots, if the Machine Advisor Code Analysis the snapshots are created with, has the SVN plugin activated and the analyzed project is checked out from the SVN repository.

Data Automatically Added to the Snapshot

If the requirements are met, the Machine Advisor Code Analysis automatically adds data to the created snapshot:

  • The base URI (Version Control Base URI) where the project source code can be found in general (refer to ADMINISTRATION > ALL COMPANY PROJECTS > <Analysis Project > Details window).

  • A subpath (Branch in Source Control), not mandatory, that describes the path, for example to the trunk or the feature branch (refer to ADMINISTRATION > <PROJECT> > <SNAPSHOT> > Edit Snapshot > Snapshot Details window).

  • The revision id (Revision in Source Control) of the project that the uploaded snapshot represents (refer to ADMINISTRATION > <PROJECT> > <SNAPSHOT> > Edit Snapshot > Snapshot Details window).

Additional Buttons

Based on the automatically added data, the Machine Advisor Code Analysis displays additional buttons (SVN-CHANGELOG button, magnifier button) on the Snapshot Overview window (refer to PROJECT SNAPSHOTS > <PROJECT> > OVERVIEW window).

With help of these buttons, the Tortoise SVN or the Logic Builder Diff Viewer are started with the appropriate information to find the differences between the revisions of an analyzed project.