Upload fail when moving a file to a newly created folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Triaged
|
Medium
|
Unassigned | ||
bzr Upload plugin |
Confirmed
|
High
|
Unassigned |
Bug Description
Incremental upload fail when in some commit we moved a file to a newly created folder. Example to reproduce the issue:
$ bzr init myrepo
Created a standalone tree (format: 2a)
$ cd myrepo
$ echo "Test" > test.txt
$ bzr add
adding test.txt
$ bzr commit -m 'message1'
Committing to: /tmp/20111025-
added test.txt
Committed revision 1.
$ bzr upload sftp://
No uploaded revision id found, switching to full upload
Uploading test.txt
$ bzr mkdir folder
added folder
$ bzr mv test.txt folder
test.txt => folder/test.txt
$ bzr commit -m 'message2'
Committing to: /tmp/20111025-
added folder
renamed test.txt => folder/test.txt
Committed revision 2.
$ bzr upload
Using saved location: sftp://
Renaming test.txt to folder/test.txt
bzr: ERROR: No such file: '.tmp.131955975
I thing the issue is that folder "folder" don't exists when it try to upload the "test.txt" file.
$ ls -la /tmp/upload_test
total 16
drwxrwxr-x 2 pierref pierref 4096 2011-10-25 18:22 .
drwxrwxrwt 18 root root 4096 2011-10-25 18:21 ..
-rw-rw-r-- 1 pierref pierref 59 2011-10-25 18:21 .bzr-upload.revid
-rw-rw-r-- 1 pierref pierref 5 2011-10-25 18:21 .tmp.1319559751
Known workaround: forcing a full upload (bzr upload --full).
Version information:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
bzr version and bzr plugins -v attached
Changed in bzr-upload: | |
importance: | Undecided → High |
Changed in bzr-upload: | |
status: | New → Confirmed |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: upload |
One missing point: /home/pierref/ .bazaar/ plugins/ upload is a fresh branch of lp:bzr-upload (revno 86).
This bug also append with packaged version of bzr-upload (1.0.0+bzr83-4).