premature_deletes not empty

Bug #294784 reported by Russel Winder
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

I just tried branching, using HTTPS, a Subversion repository that works fine using Suversion over HTTPS and Bazaar over SSH. Everythign appears to start find but eventually I get:

bzr: ERROR: exceptions.AssertionError:

Traceback (most recent call last):
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/builtins.py", line 980, in run
    force_new_repo=standalone)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/remote.py", line 64, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/bzrdir.py", line 1113, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/repository.py", line 989, in fetch
    find_ghosts=find_ghosts)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 822, in fetch
    self._fetch_switch(self.source.transport.get_svn_repos_root(), needed, pb)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 767, in _fetch_switch
    report_inventory_contents(reporter, parent_inv, parent_revnum, start_empty)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 591, in report_inventory_contents
    reporter.finish()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 108, in close
    self._close()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 236, in _close
    self.editor._finish_commit()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 415, in _finish_commit
    assert len(self._premature_deletes) == 0
AssertionError

bzr 1.10dev on python 2.5.2 (linux2)
arguments: ['/home/users/russel/bin/bzr', 'branch', 'svn+https://svn.concertant.com/ConcertantLLP']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  bookmarks /home/users/russel/.bazaar/plugins/bookmarks [unknown]
  builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [0.92dev]
  bzrtools /home/users/russel/.bazaar/plugins/bzrtools [1.10]
  gtk /home/users/russel/.bazaar/plugins/gtk [0.96.0.dev.1]
  launchpad /home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/plugins/launchpad [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0dev]
  qbzr /home/users/russel/.bazaar/plugins/qbzr [0.9.6dev]
  rebase /home/users/russel/.bazaar/plugins/rebase [0.4.1]
  svn /home/users/russel/.bazaar/plugins_Linux_ix86/svn [0.4.15dev]
  xmloutput /home/users/russel/.bazaar/plugins/xmloutput [0.9dev]
*** 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.

Other stuff from the .bzr.log is:

111.259 no copyfrom path set, assuming 'Corporate/Courses/Course Outline.xls'
111.308 Traceback (most recent call last):
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/builtins.py", line 980, in run
    force_new_repo=standalone)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/remote.py", line 64, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/bzrdir.py", line 1113, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/repository.py", line 989, in fetch
    find_ghosts=find_ghosts)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 822, in fetch
    self._fetch_switch(self.source.transport.get_svn_repos_root(), needed, pb)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 767, in _fetch_switch
    report_inventory_contents(reporter, parent_inv, parent_revnum, start_empty)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 591, in report_inventory_contents
    reporter.finish()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 108, in close
    self._close()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 236, in _close
    self.editor._finish_commit()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 415, in _finish_commit
    assert len(self._premature_deletes) == 0
AssertionError

111.313 Traceback (most recent call last):
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/plugin.py", line 476, in _get__version__
    version_string = _format_version_tuple(version_info)
  File "/home/Checkouts/Bazaar/Bazaar_Mainline/bzrlib/__init__.py", line 102, in _format_version_tuple
    raise ValueError("version_info %r not valid" % (version_info,))
ValueError: version_info (0, 96, 0, 'dev', 1) not valid

111.316 return code 4

Revision history for this message
Russel Winder (russel) wrote :

I just tried branching this using snv+ssh: protocol with the same result so the problem is not the protocol it is the branching afresh. NB I have a Bazaar branch of this repository already and that continues to work fine. So it is the act of taking a new branch that is the problem.

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

Please try again with the 0.4 branch, the error should be a bit more verbose now.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Russel Winder (russel) wrote :
Download full text (3.4 KiB)

I pulled the branch to r1754 and made the plugin. The problem happens at around 310 or 500+ revisions to pull from the Subversion repository.

|> bzr branch svn+ssh://XXXX/YYYYY/ZZZZZZZZZZ
bzr: ERROR: exceptions.AssertionError: Remaining deletes in <email address hidden>: set([u'Corporate/Courses/Course Outline.xls'])

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 980, in run
    force_new_repo=standalone)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/remote.py", line 64, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1113, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 989, in fetch
    find_ghosts=find_ghosts)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 833, in fetch
    self._fetch_switch(self.source.transport.get_svn_repos_root(), needed, pb)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 778, in _fetch_switch
    report_inventory_contents(reporter, parent_inv, parent_revnum, start_empty)
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 602, in report_inventory_contents
    reporter.finish()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 108, in close
    self._close()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 234, in _close
    self.editor._finish_commit()
  File "/home/users/russel/.bazaar/plugins_Linux_ix86/svn/fetch.py", line 419, in _finish_commit
    raise AssertionError("Remaining deletes in %s: %r" % (self.revid, self._premature_deletes))
AssertionError: Remaining deletes in <email address hidden>: set([u'Corporate/Courses/Course Outline.xls'])

bzr 1.9 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+ssh://svn+ssh://XXXX/YYYYY/ZZZZZZZZZZ']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  bookmarks /home/users/russel/.bazaar/plugins/bookmarks [unknown]
  builddeb /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [0.92.0dev0]
  bzrtools /home/users/russel/.bazaar/plugins/bzrtools [1.9.1]
  gtk /home/users/russel/.bazaar/plugins/gtk [0.96.0dev1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0.0dev0]
  qbzr /home/users/russel/.bazaar/plugins/qbzr [0.9.6dev0]
  rebase /home/users/russel/.bazaar/plugins/rebase [0.4.1]
  svn /home/users/russel/.bazaar/plugins_...

Read more...

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

Any chance you can paste the "svn log -v" from this revision as well as "bzr log -v" ?

Revision history for this message
Russel Winder (russel) wrote :

When trying to branch afresh things go awry with 310/526 showing, which implies that the problem is with r311. This is bourne out by the fact that 'Corporate/Courses/Course Outline.xls' is involved -- this file is not mentioned in 309, 310, 312, 313 as reported by branch I created long ago which continues to behave fine.

|> bzr log -r 311 -v
------------------------------------------------------------
revno: 311
committer: Russel Winder <email address hidden>
branch nick: ConcertantLLP
timestamp: Wed 2008-06-11 11:52:19 +0100
message:
  Collect all the course related material in one place.
removed:
  Corporate/Courses/
renamed:
  Corporate/Courses/Course Outline.xls => Courses/petersOutline.xls
  courses => Courses

Bizarrely (or should that be Bazaarly :-) the Subversion revision nubmer is one less:

------------------------------------------------------------------------
r310 | russel | 2008-06-12 18:19:30 +0100 (Thu, 12 Jun 2008) | 1 line
Changed paths:
   M /
   D /Corporate/Courses
   A /Courses (from /courses:309)
   A /Courses/petersOutline.xls (from /Corporate/Courses/Course Outline.xls:309)
   D /courses

Collect all the course related material in one place.
------------------------------------------------------------------------

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

This is most likely fixed in the 0.5 branch. Any chance you can try an import with that?

Revision history for this message
Russel Winder (russel) wrote :

Is there anyway of having 0.5 and 0.4 installed concurrently?

Gant is currently hosted in Subversion 1.4 using bzr-svn 0.4 Bazaar branches pushed to a Subversion repository. If I switch to 0.5 will this all break?

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

0.5 has the ability to work push 0.4-compatible metadata. See the UPGRADING file in the source tarball for details.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 294784] Re: Cannot branch a Subversion repository

Hi Russel,

On Wed, 2008-12-17 at 08:58 +0000, Russel Winder wrote:
> Is there anyway of having 0.5 and 0.4 installed concurrently?
>
> Gant is currently hosted in Subversion 1.4 using bzr-svn 0.4 Bazaar
> branches pushed to a Subversion repository. If I switch to 0.5 will
> this all break?
The new 0.5.0 RC2 that is now out will be able to deal with the existing
0.4 metadata.

Any chance you can try to reproduce this bug with 0.5 ? Just fetching
with 0.5 shouldn't affect your ability to fetch with 0.4 later.

Cheers,

Jelmer

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Russel Winder (russel) wrote :

Jelmer,

Apologies for not replying to this more quickly.

On Fri, 2009-01-30 at 20:18 +0100, Jelmer Vernooij wrote:
> Hi Russel,
>
> On Wed, 2008-12-17 at 08:58 +0000, Russel Winder wrote:
> > Is there anyway of having 0.5 and 0.4 installed concurrently?
> >
> > Gant is currently hosted in Subversion 1.4 using bzr-svn 0.4 Bazaar
> > branches pushed to a Subversion repository. If I switch to 0.5 will
> > this all break?
> The new 0.5.0 RC2 that is now out will be able to deal with the existing
> 0.4 metadata.
>
> Any chance you can try to reproduce this bug with 0.5 ? Just fetching
> with 0.5 shouldn't affect your ability to fetch with 0.4 later.

I am now building new Bazaar branches using 0.5.0 so there is no issue
about using 0.4.x for me.

--
Russel.
====================================================
Dr Russel Winder Partner

Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road, f: +44 8700 516 084
London SW11 1EN, UK. m: +44 7770 465 077

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

Hi Russel,

Are you still able to reproduce this now that you are running 0.5 ?

Cheers,

Jelmer

Revision history for this message
Russel Winder (russel) wrote :
Download full text (3.7 KiB)

I just upgraded my svn plugin branch to the latest revision and tried again the original command:

|> bzr branch svn+https://svn.concertant.com/ConcertantLLP
The svn+ syntax is deprecated, use https://svn.concertant.com/ConcertantLLP instead.
bzr: ERROR: exceptions.AssertionError:

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 1045, in run
    source_branch=br_from)
  File "/home/users/russel/.bazaar/plugins/svn/remote.py", line 74, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1116, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1118, in fetch
    find_ghosts=find_ghosts)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 1074, in fetch
    mapping, find_ghosts, pb=nested_pb)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 922, in find_until
    self.find_mainline(foreign_revid, mapping, project, find_ghosts=find_ghosts, pb=pb)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 905, in find_mainline
    foreign_revid, rhs_mapping = self.source.lookup_revision_id(p, project=project)
  File "/home/users/russel/.bazaar/plugins/svn/repository.py", line 832, in lookup_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/home/users/russel/.bazaar/plugins/svn/revids.py", line 204, in get_branch_revnum
    for entry_revid, branch, revnum, mapping in self.actual.discover_revprop_revids(layout, last_revnum, last_checked, pb=pb):
  File "/home/users/russel/.bazaar/plugins/svn/revids.py", line 75, in discover_revprop_revids
    assert mapping is not None
AssertionError

bzr 1.12 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+https://svn.concertant.com/ConcertantLLP']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  bookmarks /home/users/russel/.bazaar/plugins/bookmarks [unknown]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.12]
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  gtk /home/users/russel/.bazaar/plugins/gtk [0.96.0.dev.1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0dev]
  qbzr /home/users/russel/.bazaar/plugins/qbzr [0.9.9dev]
  rebase /home/users...

Read more...

Revision history for this message
Russel Winder (russel) wrote :
Download full text (3.6 KiB)

I just tried using the SSH connection, and (where the URL has been a little bit anonymized just in case):

|> bzr branch svn+ssh://svn.concertant.com/XXXXX/YYYYY/ZZZZZ
bzr: ERROR: exceptions.AssertionError:

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 1045, in run
    source_branch=br_from)
  File "/home/users/russel/.bazaar/plugins/svn/remote.py", line 74, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1116, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1118, in fetch
    find_ghosts=find_ghosts)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 1074, in fetch
    mapping, find_ghosts, pb=nested_pb)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 922, in find_until
    self.find_mainline(foreign_revid, mapping, project, find_ghosts=find_ghosts, pb=pb)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 905, in find_mainline
    foreign_revid, rhs_mapping = self.source.lookup_revision_id(p, project=project)
  File "/home/users/russel/.bazaar/plugins/svn/repository.py", line 832, in lookup_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/home/users/russel/.bazaar/plugins/svn/revids.py", line 204, in get_branch_revnum
    for entry_revid, branch, revnum, mapping in self.actual.discover_revprop_revids(layout, last_revnum, last_checked, pb=pb):
  File "/home/users/russel/.bazaar/plugins/svn/revids.py", line 75, in discover_revprop_revids
    assert mapping is not None
AssertionError

bzr 1.12 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+ssh://svn.concertant.com/XXXXX/YYYYY/ZZZZZ']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  bookmarks /home/users/russel/.bazaar/plugins/bookmarks [unknown]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.12]
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  gtk /home/users/russel/.bazaar/plugins/gtk [0.96.0.dev.1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0dev]
  qbzr /home/users/russel/.bazaar/plugins/qbzr [0.9.9dev]
  rebase /home/users/russel/.bazaar/plugins/rebase [0.4.4dev]
  stats /usr/lib/...

Read more...

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

I've improved the error message a bit, so it should be a bit easier to debug. Any chance you can try again with the current 0.5 tip?

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

please run "bzr check <url>" where url is the url of the branch with bzr-svn from the 0.5 branch.

Revision history for this message
Russel Winder (russel) wrote :
Download full text (5.7 KiB)

Using the https protocol I get:

|> bzr check svn+https://svn.concertant.com/ConcertantLLP
The svn+ syntax is deprecated, use https://svn.concertant.com/ConcertantLLP instead.
No working tree found at specified location.
Checking repository at 'svn+https://svn.concertant.com/ConcertantLLP'.
checked repository <bzrlib.plugins.svn.transport.SvnRaTransport url=svn+https://svn.concertant.com/ConcertantLLP> format <SvnRepositoryFormat>
   999 revisions
    88 revisions originating in bzr
   105 files were not changed but had their revision/fileid changed
Checking branch at 'svn+https://svn.concertant.com/ConcertantLLP'.
checked branch svn+https://svn.concertant.com/ConcertantLLP format Subversion Smart Server

but

|> bzr branch svn+https://svn.concertant.com/ConcertantLLP
The svn+ syntax is deprecated, use https://svn.concertant.com/ConcertantLLP instead.
bzr: ERROR: exceptions.AssertionError: bzr revision does not have mapping set! revprops: {}, fileprops: {'bzr:revision-id': '<email address hidden>', 'bzr:repository-uuid': 'da49491e-102d-0410-a4ea-de05d97b1203', 'bzr:timestamp': '2009-02-13 13:13:09.094000101 +0000', 'bzr:root': 'Website/trunk', 'bzr:committer': 'Russel Winder <email address hidden>', 'svn:date': '2009-02-13T13:20:44.482621Z', 'svn:log': 'Add an ignore file for Bazaar.', 'bzr:revprop:branch-nick': 'Trunk', 'bzr:user-agent': 'bzr1.11+bzr-svn0.5.0', 'bzr:base-revision': 'svn-v4:da49491e-102d-0410-a4ea-de05d97b1203:Website/trunk:863', 'bzr:revno': '26', 'bzr:mapping-version': 'v4', 'svn:author': 'russel'}

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 1045, in run
    source_branch=br_from)
  File "/home/users/russel/.bazaar/plugins/svn/remote.py", line 74, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1116, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1118, in fetch
    find_ghosts=find_ghosts)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 1148, in fetch
    mapping, find_ghosts, pb=nested_pb)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 968, in find_until
    self.needed.extend(self.find_mainline(foreign_revid, mapping, project, find_ghosts=find_ghosts, pb=pb))
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 950, in find_mainline
    foreign_revid, rhs_mapping = self.source.lookup_revision_id(p, project=project)
  File "/home/users/russel/.bazaar/plugins/svn/repository.py", line 874, in lookup_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/home/users/russel/.bazaar/plugins/svn/revids...

Read more...

Revision history for this message
Russel Winder (russel) wrote :
Download full text (5.6 KiB)

Using the SSH protocol

|> bzr check svn+ssh://svn.concertant.com/XXX/YYY/ZZZ
No working tree found at specified location.
Checking repository at 'svn+ssh://svn.concertant.com/XXX/YYY/ZZZ'.
checked repository <bzrlib.plugins.svn.transport.SvnRaTransport url=svn+ssh://svn.concertant.com/XXX/YYY/ZZZ> format <SvnRepositoryFormat>
   999 revisions
    88 revisions originating in bzr
   105 files were not changed but had their revision/fileid changed
Checking branch at 'svn+ssh://svn.concertant.com/XXX/YYY/ZZZ'.
checked branch svn+ssh://svn.concertant.com/XXX/YYY/ZZZ format Subversion Smart Server

but

|> bzr branch svn+ssh://svn.concertant.com/XXX/YYY/ZZZ
bzr: ERROR: exceptions.AssertionError: bzr revision does not have mapping set! revprops: {}, fileprops: {'bzr:revision-id': '<email address hidden>', 'bzr:repository-uuid': 'da49491e-102d-0410-a4ea-de05d97b1203', 'bzr:timestamp': '2009-02-13 13:13:09.094000101 +0000', 'bzr:root': 'Website/trunk', 'bzr:committer': 'Russel Winder <email address hidden>', 'svn:date': '2009-02-13T13:20:44.482621Z', 'svn:log': 'Add an ignore file for Bazaar.', 'bzr:revprop:branch-nick': 'Trunk', 'bzr:user-agent': 'bzr1.11+bzr-svn0.5.0', 'bzr:base-revision': 'svn-v4:da49491e-102d-0410-a4ea-de05d97b1203:Website/trunk:863', 'bzr:revno': '26', 'bzr:mapping-version': 'v4', 'svn:author': 'russel'}

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 1045, in run
    source_branch=br_from)
  File "/home/users/russel/.bazaar/plugins/svn/remote.py", line 74, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1116, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1118, in fetch
    find_ghosts=find_ghosts)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 1148, in fetch
    mapping, find_ghosts, pb=nested_pb)
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 968, in find_until
    self.needed.extend(self.find_mainline(foreign_revid, mapping, project, find_ghosts=find_ghosts, pb=pb))
  File "/home/users/russel/.bazaar/plugins/svn/fetch.py", line 950, in find_mainline
    foreign_revid, rhs_mapping = self.source.lookup_revision_id(p, project=project)
  File "/home/users/russel/.bazaar/plugins/svn/repository.py", line 874, in lookup_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/home/users/russel/.bazaar/plugins/svn/revids.py", line 205, in get_branch_revnum
    for entry_revid, branch, revnum, mapping in self.actual.discover_revprop_revids(layout, last_revnum, last_checked, pb=pb):
  File "/home/users/russel/.bazaar/plugins/svn/revids.py...

Read more...

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

thanks, should be fixed now

Changed in bzr-svn:
assignee: nobody → jelmer
milestone: none → 0.5.3
status: Incomplete → Fix Released
Revision history for this message
Russel Winder (russel) wrote :

Revision 2654 certainly does allow this Subversion repository to be branched by Bazaar using either HTTPS or SSH :-)

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.