Skip to main content Skip to complementary content

Resolving conflicts in compare editors

About this task

Depending on the nature of a conflicted project item, Talend Studio provides one of the following types of compare editors for you to compare changes on the project item between both branches graphically:
  • Job Compare editor, if the conflicted project item is a Job, a Joblet, a Route, a Routelet, or a test case.

  • EMF Compare (Eclipse Modeling Framework) editor, if the conflicted item is a context group, a database connection, an item in project settings, or an analysis if your Talend Studio supports Data Profiling.

  • Text Compare editor, if the conflicted item is a general text file, a routine, a bean, a Job script, or a SQL script.

To open a compare editor, right-click a conflicted project item in the Conflicts Navigator tree view and select Resolve in editor from the contextual menu.

After fixing conflicts in an editor, mark the conflicts as resolved and close the editor to continue your previous branch operation.

Job Compare editor

The upper part of the Job Compare editor displays a tree view that shows all the design and parameter items of the Job on which conflicts have occurred. A dark red conflict indicator is seen on the icon of each conflicted item.

In this tree view, you can expand each node and select the conflicted items to explore the details of the conflicts.

The lower part displays a comparison view that shows the details of the different versions of the selected item. In this comparison view:

  • When a design item, such as a component or a connection, is selected in the upper tree view, the item is highlighted graphically.
  • When a parameter item, such as the schema of a component, is selected in the upper tree view, a yellow warning sign indicates each conflicted parameter, such as a schema column, of that item.
Job Compare editor.

In the Job Compare editor, you can resolve conflicts on the entire Job, all the design items, or all the parameter items in one go, or resolve conflicts on individual items, parameters, or parameter properties separately.

When fixing conflicts on the entire Job:

  • To accept the version of the working branch, either right-click Job Designs Unit in the upper tree view and select Accept mine from the contextual menu, or select Job Designs Unit in the upper tree view and click Accept mine in the comparison view.
  • To accept the version of the other branch, either right-click Job Designs Unit in the upper tree view and select Accept theirs from the contextual menu, or select Job Designs Unit in the upper tree view and click Accept theirs in the comparison view.

When fixing conflicts on all the items under a node:

  • To accept the version of the working branch, either right-click the node in the upper tree view and select Accept mine from the contextual menu, or select the node in the upper tree view and click Accept mine in the comparison view.
  • To accept the version of the other branch, either right-click the node in the upper tree view and select Accept theirs from the contextual menu, or select the node in the upper tree view and click Accept theirs in the comparison view.

When fixing conflicts on an item:

  • To accept the version of the working branch, either right-click the conflicted item in the upper tree view and select Accept mine from the contextual menu, or select the item in the upper tree view and then click Accept mine in the comparison view.
  • To accept the version of the other branch, either right-click the conflicted item in the upper tree view and select Accept theirs from the contextual menu, or select the item in the upper tree view and then click Accept theirs in the comparison view.
Information noteNote:

When you try to accept the version of a connection from the other branch:

  • If both the input and output components across the connection differ between the working branch and the other branch, you will be prompted to accept the whole Job design from the other branch.

    This, however, is not mandatory - you can try to accept the components and the connection parameters individually first.

  • If the input or output component of the connection cannot be redirected to the new input or output component on the working branch, you will be prompted to accept the whole Job design from the other branch.

    This, however, is not mandatory - you can try to accept the component and the connection parameters individually first.

  • If the input or output component of the connection does not exist on the working branch, you will be prompted to accept the component first.

When fixing conflicts on a parameter or parameter property:

  • To accept the version of the working branch, click Accept my parameter for that parameter or parameter property in the comparison view.
  • To accept the version of the other branch, click Accept their parameter for that parameter or parameter property in the comparison view.

You can edit parameters and parameter properties manually for the working branch in the comparison view. To do so:

Procedure

  1. Select the concerned parameter item in the upper tree view to show the parameters under that item in the comparison view.
  2. To edit a parameter, click the in the comparison view so that a ... button appears next to it.
    To edit a property of a parameter, expand the parameter and click the property you want to edit to show a ... button next to it.
  3. Click the ... button to open a dialog box.
  4. Make your changes and then click OK to close the dialog box.

Results

With the conflicts on an item fixed, the conflict indicator on the icon of the conflicted item in the upper view and the conflict signs in the comparison view become green.

Information noteWarning:

After fixing conflicts in a conflicted editor, be sure to save your changes.

Note that if a centralized Repository item - a context group or a file or database connection defined in the Repository for example - is called in a Job, fixing conflicts for the Job in the Job Compare editor does not automatically update the corresponding Repository item. When you open the Job in the Integration perspective, you will be asked whether to update your Job.

EMF Compare editor

About this task

The upper part of the EMF Compare editor gives an overview of the differences detected between the two branches. The lower part is a comparison view that shows the different versions of the selected item between both branches.

EMF Compare editor.
To view and fix conflicts:
  • Click Browse down or Browse up to navigate through the detected differences. The details about the selected item are shown in the comparison view.
  • Click Accept selected to accept the single, currently selected change, or Reject selected to reject the single, currently selected change.
  • Click Accept all to accept all non conflicting changes at once, or Reject all to reject all non conflicting changes at once.
  • For a text feature, click the Copy all button on the top of the comparison view to copy all the shown changes, or the Copy selected button to copy the selected change, from right to left.

Accepted changes are presented by a Accepted change icon, and rejected changes are presented by a Rejected change icon.

Information noteWarning: After fixing conflicts in a conflicted editor, be sure to save your changes.

Note that if a centralized Repository item - a context group or a file or database connection defined in the Repository for example - is called in a Job, fixing conflicts for the Repository item in the EMF Compare editor does not automatically update the corresponding Job. When you open the Job in the Integration perspective, you will be asked whether to update your Job.

Text Compare editor

About this task

The Text Compare editor is a two-pane comparison view that displays the different versions of a text-based project item between both branches.

Text Compare editor.
To view and fix conflicts:
  • Click Show ancestry to show the ancestry pane, which shows the ancestry version of the compared versions if detected. This button is operable only for three-way comparison.
  • Click Toggle comparison mode to toggle between two-way (ignoring the ancestor version) and three-way comparison.
  • Click the Copy all button to copy all the shown changes, or the Copy selected button to copy the selected change, from right to left.
  • Click Browse down or Browse up to navigate through the differences.
  • Click Browse down or Browse up to navigate through the changes.
  • You can also edit text directly in the left pane to make changes to the version of the current branch.
Information noteWarning: After fixing conflicts in a conflicted editor, save your changes.

Note that if a centralized Repository item - a routine, a bean, a Job script, or a SQL script defined in the Repository for example - is called in a Job, fixing conflicts for the Repository item in the Text Compare editor does not automatically update the corresponding Job. When you open the Job in the Integration perspective, you will be asked whether to update your Job.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!