Update fails if branch is empty

Bug #803796 reported by André Bachmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I'm using bzr 2.3.3-3 and Win7 32 Bit.

I did the following:

1) run "bzr branch trunk neu -r 0" to create a new branch with no content
2) cd neu
3) bzr update

The result:

================================================
bzr: ERROR: exceptions.ValueError: WorkingTree.set_root_id with fileid=None

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 926, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1126, in run_bzr
  File "bzrlib\commands.pyo", line 691, in run_argv_aliases
  File "bzrlib\commands.pyo", line 713, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1433, in run
  File "bzrlib\workingtree.pyo", line 2312, in update
  File "bzrlib\mutabletree.pyo", line 50, in tree_write_locked
  File "bzrlib\workingtree.pyo", line 2369, in _update_tree
  File "bzrlib\mutabletree.pyo", line 50, in tree_write_locked
  File "bzrlib\workingtree.pyo", line 2225, in set_root_id
ValueError: WorkingTree.set_root_id with fileid=None

bzr 2.3.3 on python 2.6.6 (Windows-7-6.1.7601-SP1)
arguments: ['bzr', 'update']
plugins: bzrtools[2.3.1], colo[0.2.1], explorer[1.1.3], fastimport[0.10.0],
    launchpad[2.3.3], loom[2.2.1dev], netrc_credential_store[2.3.3],
    news_merge[2.3.3], pipeline[1.1.0], qbzr[0.20.1], rewrite[0.6.2dev],
    svn[1.0.5dev], upload[1.0.0], xmloutput[0.8.7.dev]
encoding: 'cp1252', fsenc: 'mbcs', lang: None

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
================================================

And this is in my .bzr.log:

================================================
Thu 2011-06-30 10:37:22 +0200
0.089 bazaar version: 2.3.3
0.089 bzr arguments: [u'update']
0.130 looking for plugins in C:/Users/abachmann/AppData/Roaming/bazaar/2.0/plugins
0.131 looking for plugins in C:/Program Files/Bazaar/plugins
0.375 encoding stdout as sys.stdout encoding 'cp850'
0.435 opening working tree 'E:/Project/neu'
0.473 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.474 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 926, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1126, in run_bzr
  File "bzrlib\commands.pyo", line 691, in run_argv_aliases
  File "bzrlib\commands.pyo", line 713, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1433, in run
  File "bzrlib\workingtree.pyo", line 2312, in update
  File "bzrlib\mutabletree.pyo", line 50, in tree_write_locked
  File "bzrlib\workingtree.pyo", line 2369, in _update_tree
  File "bzrlib\mutabletree.pyo", line 50, in tree_write_locked
  File "bzrlib\workingtree.pyo", line 2225, in set_root_id
ValueError: WorkingTree.set_root_id with fileid=None

0.477 couldn't find apport bug-reporting library: No module named apport
0.518 Traceback (most recent call last):
  File "bzrlib\plugin.pyo", line 553, in _get__version__
  File "bzrlib\__init__.pyo", line 101, in _format_version_tuple
IndexError: tuple index out of range

0.524 return code 4
================================================

I'm not quite sure if this is the same error from bug #785377, because I did not use merge before, but branch.

Revision history for this message
Martin Packman (gz) wrote :

Yes, it's the same error, branch is using the same code underneath. If you like, try the same thing in the latest beta, you should get a clear error message rather than a traceback because bug 242175 has landed.

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.