Skip to content

getInfo returns changes getAvailableToMigrate for the ones which already migrated #108

@pavelmigolinets

Description

@pavelmigolinets

Hi,

we are using copybara as embedded one.
our use case next:

  1. we are using .getInfo for getting list of changes that available for migration
  2. if there are some changes -> notify user about it
  3. user triggering migration process
  4. our service creating branch
  5. migrating code to this branch
  6. opening PR
  7. merge with rebase if passing checks

problem that .getInfo provides list of changes available to migrate even when they already migrated. we are using lastRevision as starting point, but no updating it after migration.
I know that we are doing something wrong which not allowed to get info correctly.

migration for this case throwing expected exception Iterative workflow produced no changes in the destination for resolved ref:

I know that it's not trivial use case of copybara, but I would really appreciate if you will advice something.

Thanks!!!

Cheers,
Pavel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions