bzr losing track of file in aborted commit of rename
Bug #282402 reported by
Arjen Lentz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Robert Collins |
Bug Description
# in bzr 1.7 reproduce as follows:
mkdir test
cd test
bzr init
touch foo
bzr add foo
bzr commit
mv foo bar
# abort the following commit, because we realise we should've done the rename through bzr
bzr commit
mv bar foo
# the following will now come up with "bzr: ERROR: Could not rename foo => bar: foo is not versioned."
bzr mv foo bar
Related branches
lp:~lifeless/bzr/bug-282402
- John A Meinel: Approve
- Diff: 77 lines
Changed in bzr: | |
status: | Invalid → New |
Changed in bzr: | |
assignee: | nobody → Robert Collins (lifeless) |
status: | Triaged → Fix Committed |
Changed in bzr: | |
milestone: | none → 1.18 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
What's happened here is that the original commit, after the file was moved away with plain 'mv', is that bzr implicity unversioned the file. So when you later move it back, as bzr says it's unversioned. If you realize the original commit is wrong, it's better to uncommit it and fix it up.