openSUSE / osc

The Command Line Interface to work with an Open Build Service

Home Page:http://openbuildservice.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moving a file twice causes osc to loose track of it

dcermak opened this issue · comments

Describe the bug
When you move a file once, then osc marks the original file as deleted and adds the new file. But if you move the file with the new name again, then osc looses track of it.

Versions

  • Operating system: Fedora Linux 39 (Thirty Nine)
  • Packages: osc-1.7.0-408.1.1.fc39.noarch

To Reproduce
Steps to reproduce the behavior:

$ osc mv SLCC:dynamic-developer.spec.in SLCC:dynamic-developer.spec
A    SLCC:dynamic-developer.spec

$ osc st
A    SLCC:dynamic-developer.spec
D    SLCC:dynamic-developer.spec.in

$ osc mv SLCC:dynamic-developer.spec SLCC-dynamic-developer.spec.in
A    SLCC-dynamic-developer.spec.in

$ osc st
?    SLCC-dynamic-developer.spec.in
D    SLCC:dynamic-developer.spec.in

Expected behavior

The last command should output:

$ osc st
A    SLCC-dynamic-developer.spec.in
D    SLCC:dynamic-developer.spec.in

You can run osc addremove to fix it, but it would be better if you wouldn't have to.