The noobs trigger all the bugs :-) This happend during my first efforts to use Bazaar...
I have a repository on a remote server and a local branch. I accidentially added a file which should stay out of the repository; I uncommited the unwanted modification, but during the next push, I realized that I had already pushed the operation to the server. Naturally, after a merge, the file reappeared. Since I didn't want it there, I deleted it (with bzr del). After that, the "push" still failed, and a "merge" resulted in the following error:
Traceback (most recent call last):
File "//usr/lib/python2.5/site-packages/bzrlib/commands.py", line 896, in run_bzr_catch_errors
return run_bzr(argv)
File "//usr/lib/python2.5/site-packages/bzrlib/commands.py", line 842, in run_bzr
ret = run(*run_argv)
File "//usr/lib/python2.5/site-packages/bzrlib/commands.py", line 542, in run_argv_aliases
return self.run(**all_cmd_args)
File "//usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 3335, in run
verified)
File "//usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 3353, in _do_merge
conflict_count = merger.do_merge()
File "//usr/lib/python2.5/site-packages/bzrlib/merge.py", line 491, in do_merge
self._do_merge_to(merge)
File "//usr/lib/python2.5/site-packages/bzrlib/merge.py", line 463, in _do_merge_to
merge.do_merge()
File "//usr/lib/python2.5/site-packages/bzrlib/merge.py", line 602, in do_merge
self._compute_transform()
File "//usr/lib/python2.5/site-packages/bzrlib/merge.py", line 645, in _compute_transform
file_status = self.merge_contents(file_id)
File "//usr/lib/python2.5/site-packages/bzrlib/merge.py", line 1147, in merge_contents
self.other_tree, file_id)
File "//usr/lib/python2.5/site-packages/bzrlib/transform.py", line 2291, in create_from_tree
raise AssertionError('Unknown kind %r' % kind)
AssertionError: Unknown kind 'absent'
The noobs trigger all the bugs :-) This happend during my first efforts to use Bazaar...
I have a repository on a remote server and a local branch. I accidentially added a file which should stay out of the repository; I uncommited the unwanted modification, but during the next push, I realized that I had already pushed the operation to the server. Naturally, after a merge, the file reappeared. Since I didn't want it there, I deleted it (with bzr del). After that, the "push" still failed, and a "merge" resulted in the following error:
bzr: ERROR: exceptions. AssertionError: Unknown kind 'absent'
Traceback (most recent call last): lib/python2. 5/site- packages/ bzrlib/ commands. py", line 896, in run_bzr_ catch_errors lib/python2. 5/site- packages/ bzrlib/ commands. py", line 842, in run_bzr lib/python2. 5/site- packages/ bzrlib/ commands. py", line 542, in run_argv_aliases **all_cmd_ args) lib/python2. 5/site- packages/ bzrlib/ builtins. py", line 3335, in run lib/python2. 5/site- packages/ bzrlib/ builtins. py", line 3353, in _do_merge lib/python2. 5/site- packages/ bzrlib/ merge.py" , line 491, in do_merge _do_merge_ to(merge) lib/python2. 5/site- packages/ bzrlib/ merge.py" , line 463, in _do_merge_to do_merge( ) lib/python2. 5/site- packages/ bzrlib/ merge.py" , line 602, in do_merge _compute_ transform( ) lib/python2. 5/site- packages/ bzrlib/ merge.py" , line 645, in _compute_transform contents( file_id) lib/python2. 5/site- packages/ bzrlib/ merge.py" , line 1147, in merge_contents other_tree, file_id) lib/python2. 5/site- packages/ bzrlib/ transform. py", line 2291, in create_from_tree 'Unknown kind %r' % kind)
File "//usr/
return run_bzr(argv)
File "//usr/
ret = run(*run_argv)
File "//usr/
return self.run(
File "//usr/
verified)
File "//usr/
conflict_count = merger.do_merge()
File "//usr/
self.
File "//usr/
merge.
File "//usr/
self.
File "//usr/
file_status = self.merge_
File "//usr/
self.
File "//usr/
raise AssertionError(
AssertionError: Unknown kind 'absent'
bzr 1.12 on python 2.5.2 (linux2) .bazaar/ plugins/ bzr_difftools [unknown] python2. 5/site- packages/ bzrlib/ plugins/ bzrtools [1.9.1] .bazaar/ plugins/ dbus [0.1dev] .bazaar/ plugins/ gtk [0.95.0.final.1] python2. 5/site- packages/ bzrlib/ plugins/ launchpad [unknown] credential_ store /usr/lib/ python2. 5/site- packages/ bzrlib/ plugins/ netrc_credentia l_store [unknown] .bazaar/ plugins/ search [1.7dev] .bazaar/ plugins/ xmloutput [0.8.2]
arguments: ['/usr/bin/bzr', 'merge', '../a']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
bzr_difftools /home/sts/
bzrtools /usr/lib/
dbus /home/sts/
gtk /home/sts/
launchpad /usr/lib/
netrc_
search /home/sts/
xmloutput /home/sts/
At first, I have been working with bazaar 1.9; after encountering the bug, I upgraded to 1.12 - the bug still seems to be there.
The encloded shell script reproduces the bug.