`bzr commit` in git tree fails with traceback NoSuchRevision

Bug #1014519 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
New
Undecided
Unassigned

Bug Description

C:\Temp\3>bzr init --git
Created a standalone tree (format: git)

C:\Temp\3>echo>foo

C:\Temp\3>bzr add foo
adding foo

C:\Temp\3>bzr st
added:
  foo

C:\Temp\3>bzr ci -m test
Committing to: C:/Temp/3/
added foo
bzr: ERROR: bzrlib.errors.NoSuchRevision: LocalGitRepository('file:///C:/Temp/3/') has no revision <email address hidden>
-wzo3735ieifu5vib

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 920, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1131, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 695, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 3678, in run
  File "bzrlib\decorators.pyo", line 218, in write_locked
  File "bzrlib\mutabletree.pyo", line 211, in commit
  File "bzrlib\commit.pyo", line 290, in commit
  File "bzrlib\cleanup.pyo", line 132, in run
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\commit.pyo", line 455, in _commit
  File "bzrlib\commit.pyo", line 494, in _update_branches
  File "C:/Program Files/Bazaar/plugins\git\branch.py", line 570, in set_last_revision_info
  File "C:/Program Files/Bazaar/plugins\git\branch.py", line 579, in set_last_revision
  File "C:/Program Files/Bazaar/plugins\git\repository.py", line 479, in lookup_bzr_revision_id
NoSuchRevision: LocalGitRepository('file:///C:/Temp/3/') has no revision <email address hidden>

bzr 2.5.1 on python 2.6.6 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'ci', '-m', 'test']
plugins: acad[0.8.0], bzrtools[2.5.0], colo[0.3.1dev], explorer[1.3.0dev],
    fastimport[0.14.0dev], find_branches[unknown], format1[unknown],
    git[0.6.8], launchpad[2.5.1], punchcard[unknown], qbzr[0.23.0dev],
    rewrite[0.6.4dev], scmproj[0.6.2], tiplog[0.0.5dev], undelete[0.2.0],
    x_bit[1.0.0]
encoding: 'cp1251', 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.

Revision history for this message
Alexander Belchenko (bialix) wrote :

After fixing https://bugs.launchpad.net/bzr/+bug/967060 I can go further :-)

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.