diff output misleading when a file is deleted and becomes the target of a rename
Bug #268989 reported by
Vincent Ladeuil
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned | ||
Breezy |
Triaged
|
Low
|
Unassigned |
Bug Description
As show be the attached script, diff output is misleading.
bzr rm foo
bzr mv bar foo
bzr diff
gives:
=== renamed file 'bar' => 'foo'
=== removed file 'foo'
--- foo 2008-09-11 13:14:15 +0000
+++ foo 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
-foo content
which looks like 'foo' has been renamed and *then* deleted.
Changed in bzr: | |
importance: | Medium → High |
Changed in bzr: | |
status: | Triaged → Confirmed |
tags: | added: diff |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
Changed in brz: | |
importance: | Undecided → Low |
status: | New → Triaged |
To post a comment you must log in.
While the example is simple this may seem innocuous but when it occurs multiple times during a merge it becomes really puzzling.
Using bzr status --show-ids helps to understand the issue but the diff output should be human-readable.
See also bug #40472.