Issue 3247: Incorrect filename reference when 'git mv' used
Status:  New
Owner: ----
Reported by kev.raym...@gmail.com, Mar 16, 2015

Affected Version:
2.9

What steps will reproduce the problem?
1. Use 'git mv' to rename 2 files.
2. push for review
3. Gerrit think the original file of the second one is the first one.

What is the expected output? What do you see instead?
Original file of the second one should be the second one..

Please provide any additional information below.
I already used this feature and it worked great, therefor I first though about an issue from my part, but looking at logs it all appear correct but the Gerrit view.

More info:

## command used

+ sed -i 's,^SRCREV.*,SRCREV ?= "c228fdd5efa3e32d54693a1a7c989c3f1ec04127",' ./recipes-kizos/frameworks/libbus_1.3.1.bb
+ git mv ./recipes-kizos/frameworks/libbus_1.3.1.bb ./recipes-kizos/frameworks/libbus_1.3.2.bb
+ sed -i 's/PR\s*=.*/PR = "r0"/' ./recipes-kizos/frameworks/libbus_1.3.2.bb
+ git add ./recipes-kizos/frameworks/libbus_1.3.2.bb
+ sed -i 's,^SRCREV.*,SRCREV ?= "5f0c7241b5bb6e1414e87e634baf612050a230ac",' ./recipes-kizos/frameworks/libcore_1.5.1.bb
+ git mv ./recipes-kizos/frameworks/libcore_1.5.1.bb ./recipes-kizos/frameworks/libcore_1.5.2.bb
+ sed -i 's/PR\s*=.*/PR = "r0"/' ./recipes-kizos/frameworks/libcore_1.5.2.bb
+ git add ./recipes-kizos/frameworks/libcore_1.5.2.bb

## git log --name-status
D       recipes-kizos/frameworks/libbus_1.3.1.bb
A       recipes-kizos/frameworks/libbus_1.3.2.bb
D       recipes-kizos/frameworks/libcore_1.5.1.bb
A       recipes-kizos/frameworks/libcore_1.5.2.bb

## git show -U0 shows me the following:
line removed from libbus_1.3.1.bb:
-SRCREV ?= "68c714523850c60ffd0ab378a7b0cb79285dc12f"
line added to libbus_1.3.2.bb:
+SRCREV ?= "c228fdd5efa3e32d54693a1a7c989c3f1ec04127"
line removed from libcore_1.5.1.bb:
-SRCREV ?= "f729574a03e72b08682fd272af7f23de34d5b9c1"
line added to libcore_1.5.2.bb
+SRCREV ?= "5f0c7241b5bb6e1414e87e634baf612050a230ac"

> Which seems perfectly correct, however from Gerrit I can see the following:
http://paste.opensuse.org/45637219 (3 months valid)

And from the Gerrit review diff change of libcore_1.5.2.bb, 
I can see the previous line was:
SRCREV ?= "68c714523850c60ffd0ab378a7b0cb79285dc12f"
whis is wrong, as Git tell me this is only about libbus file, 
new change is :
SRCREV ?= "5f0c7241b5bb6e1414e87e634baf612050a230ac"
which is correct.


## Summary:
From git point of view, there are 2 files rename, everything as expected.
From Gerrit point of view, there are 2 file rename, both with the same origin, and 1 file delete.