bzr merge with svn repository (no common ancestors) failed

Bug #304615 reported by
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned
Bazaar Subversion Plugin
Invalid
Undecided
Unassigned

Bug Description

I worked on a piece of code over an extended period of time offline. I thought this was a good time to start using bzr so I could also do local commits. Then using the svn plugin, i wanted to my my newly written code (no common ancestor in svn repository) with an empty directory within a svn repository so that I can push my code (including its history) to my colleagues who are not yet using bzr. Since I'm still very new to bzr, it is clearly possible that I simply didn't use the right arguments. However, since the output suggested I file a bug report, I hereby do so in the hope that if there is a real bug, it can be resolved. If it is not a bug but a usage error, a slightly more helpful error message would be great.

$ bzr merge -r0..1 svn+ssh://some_server/some_repository/directory_in_repository/
bzr: ERROR: exceptions.AssertionError: Unknown kind 'absent'

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/builtins.py", line 3068, in run
    verified)
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/builtins.py", line 3086, in _do_merge
    conflict_count = merger.do_merge()
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/merge.py", line 489, in do_merge
    self._do_merge_to(merge)
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/merge.py", line 461, in _do_merge_to
    merge.do_merge()
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/merge.py", line 600, in do_merge
    self._compute_transform()
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/merge.py", line 643, in _compute_transform
    file_status = self.merge_contents(file_id)
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/merge.py", line 1140, in merge_contents
    self.other_tree, file_id)
  File "/Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/transform.py", line 2189, in create_from_tree
    raise AssertionError('Unknown kind %r' % kind)
AssertionError: Unknown kind 'absent'

bzr 1.9 on python 2.5.1 (darwin)
arguments: ['/Users/XXX/bin/bzr', 'merge', '-r0..1', 'svn+ssh://some_server/some_repository/directory_in_repository/']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/plugins/launchpad [unknown]
  rebase /Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/plugins/rebase [0.4.2]
  svn /Library/Python/2.5/site-packages/bzr-1.9-py2.5-macosx-10.5-i386.egg/bzrlib/plugins/svn [0.4.15dev0]
  xmloutput /Library/Python/2.5/site-packages/bzrlib/plugins/xmloutput [0.8.1]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Jó (jo-bitsch) wrote :

The way I was able to push my code to the server in the end was:

in a rich-root shared repository
mkdir try
cd try
bzr checkout svn+ssh://some_server/some_repository/directory_in_repository/
bzr merge -r0..9 ../branch #9 revisions in the other branch
bzr nick other-test
bzr commit

as I figured, i couldn't see the history of my code from within svn(more reason for my colleagues to also use bzr) but nevertheless my colleagues now have access to my work which I was doing while I was offline... I hope that description clarifies my usage scenario and helps other people who try the same.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

only the merge commit has been pushed into svn, see the bzr-svn FAQ for details.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This looks more like an issue with dirstate and merge ("absent").

Changed in bzr-svn:
status: New → Incomplete
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Incomplete → Invalid
Revision history for this message
James Westby (james-w) wrote :

Is this bug 336618?

Thanks,

James

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I suspect so, but not entirely sure.

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.