Skip to content

Running migration a 2nd time on an already migrated repository starts from scratch #44

@WtfJoke

Description

@WtfJoke

The situation was as follows:

  1. Complete migration of a stream worked flawlessly
  2. Couple days later, we wanted to keep up with the stream changes and ran the migration again
  3. For some reason, the migration didnt continue and started from 0/the beginning instead

Analysis
We figured out, that the workspace was reset to the oldest state.

Cause
The reason was that the only baseline on this stream didnt contain anything (Initial Baseline).
This means, setting the components to the baseline durnig the migration will reset the whole workspace, therefore resetting the migrated workspace.

The 2nd run of the migration triggered a reset of the components to the baseline.

Solution
Luckily we can detect this situation. If the part until the baseline creation is already migrated, we dont have any changesets to get accepted.

Therefore if we have 0 changesets to accept until the branchpoint, we just dont do anything there and continue with the comparing from the workspace with the stream

@romixch : You can link your commit/fix to this issue
@romixch @ohumbel : I created this issue for documentation purpose

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions