Traceback trying to unshelve in empty branch

Bug #868976 reported by Tristan Seligmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Reproduction transcript:

mithrandi@verdant:~/tmp> bzr --version
Bazaar (bzr) 2.5b1
  Python interpreter: /usr/bin/python 2.7.1
  Python standard library: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
  Platform: Darwin-11.0.1-x86_64-i386-64bit
  bzrlib: /Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib
  Bazaar configuration: /Users/mithrandi/.bazaar
  Bazaar log file: /Users/mithrandi/.bzr.log
[rest of output snipped]
mithrandi@verdant:~/tmp> cd foo
mithrandi@verdant:~/tmp/foo> touch foo
mithrandi@verdant:~/tmp/foo> bzr add foo
adding foo
mithrandi@verdant:~/tmp/foo> bzr shelve --all
Selected changes:
-D foo
Changes shelved with id "1".
mithrandi@verdant:~/tmp/foo> bzr unshelve
Using changes with id "1".
bzr: ERROR: No final name for trans_id 'new-1'
file-id: 'tree_root-20111006082114-4yigkntuflw9molx-1'
root trans-id: None

The full traceback is as follows:

0.162 Traceback (most recent call last):
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/commands.py", line 918, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/commands.py", line 1118, in run_bzr
    ret = run(*run_argv)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/commands.py", line 676, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/commands.py", line 698, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/builtins.py", line 6254, in run
    unshelver.run()
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/shelf_ui.py", line 479, in run
    merger = unshelver.make_merger(None)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/shelf.py", line 332, in make_merger
    target_tree = self.transform.get_preview_tree()
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 1017, in get_preview_tree
    return _PreviewTree(self)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 1994, in __init__
    self._transform.iter_changes())
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 992, in iter_changes
    to_path = final_paths.get_path(to_trans_id)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 2482, in get_path
    self._known_paths[trans_id] = self._determine_path(trans_id)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 2477, in _determine_path
    return pathjoin(self.get_path(parent_id), name)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 2482, in get_path
    self._known_paths[trans_id] = self._determine_path(trans_id)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 2472, in _determine_path
    name = self.transform.final_name(trans_id)
  File "/Users/mithrandi/Library/Python/2.7/lib/python/site-packages/bzrlib/transform.py", line 504, in final_name
    raise NoFinalPath(trans_id, self)
NoFinalPath: No final name for trans_id 'new-1'
file-id: 'tree_root-20111006082114-4yigkntuflw9molx-1'
root trans-id: None

summary: - Cannot unshelve in empty branch
+ Traceback trying to unshelve in empty branch
Revision history for this message
Martin Packman (gz) wrote :

Please see the existing bug, based on this report and the other recent comments I'll bump the priority.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.