bzr unshelve crashes losing all changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Robert Collins |
Bug Description
In a bzr working directory that is up to date
Modify 2 files
Delete one of them
do bzr shelve
do bzr unshelve
observe bzr unshelve crashes with error:
bzr: ERROR: No such file: None
At this point all your shelved changes are lost (or I have not figured out how to get them back)
Traceback:
Wed 2009-01-21 14:20:19 -0800
0.017 bzr arguments: [u'unshelve']
0.024 looking for plugins in /home/xamine/
0.025 looking for plugins in /usr/lib/
0.088 encoding stdout as sys.stdout encoding 'UTF-8'
0.145 opening working tree '/wm/recycle_
[31073] 2009-01-21 14:20:19.480 INFO: Unshelving changes with id "1".
3.924 Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
Unshelver.
File "/usr/lib/
merger.
File "/usr/lib/
self.
File "/usr/lib/
merge.
File "/usr/lib/
self.
File "/usr/lib/
file_status = self.merge_
File "/usr/lib/
other_pair = contents_
File "/usr/lib/
kind = tree.kind(file_id)
File "/usr/lib/
return self._transform
File "/usr/lib/
raise NoSuchFile(None)
NoSuchFile: No such file: None
3.928 return code 3
I can confirm this bug with the latest bzr.dev.
One note is that immediately after the crash, the shelf data still seems to be in .bzr/checkout/ shelf/shelf- 1, so if you really need to recover data you may be able to extract it out of there manually.