checking out previously via bzr-svn checked in subversion branch does not work always

Bug #229908 reported by Martin Steigerwald
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

Checking out a path from a subversion repository works on my laptop:
ms@shambala> bzr checkout svn+https://some.url/some.path

As well as just branching it does:
ms@shambala> bzr branch svn+https://some.url/some.path
Branched 59 revision(s).

(I did not think much about the difference between checkout and branch.
But on checkout bazaar seems to record where it got the branch from,
whereas on branch I have to do a bzr bind to get that effect...)

While on my workstation neither does work:

ms@mango> bzr branch svn+https://some.url/some.path
bzr: ERROR: The branch svn+https://some.url/some.path

ms@mango> bzr checkout svn+https://some.url/some.path
bzr: ERROR: bzrlib.errors.NoSuchRevision: SvnRepository('svn+https://some.url/some.path') has no revision ms@mango-20070702135606-0a002760e076e2f7

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1012, in run
    accelerator_tree, hardlink)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/branch.py", line 193, in create_checkout
    return self._create_heavyweight_checkout(to_location, revision_id, hardlink=hardlink)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/branch.py", line 146, in _create_heavyweight_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 1714, in pull
    run_hooks=run_hooks)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 1513, in pull
    self.update_revisions(source, stop_revision, overwrite=overwrite)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 1465, in update_revisions
    self.fetch(other, stop_revision)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 266, in fetch
    pb=nested_pb)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 949, in fetch
    return inter.fetch(revision_id=revision_id, pb=pb, find_ghosts=find_ghosts)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 704, in fetch
    self._fetch_switch(needed, pb, lhs_parent)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 661, in _fetch_switch
    reporter.finish_report(pool)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/errors.py", line 117, in convert
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/transport.py", line 280, in finish_report
    self._baton, pool)
  File "/var/lib/python-support/python2.4/libsvn/ra.py", line 738, in svn_ra_reporter2_invoke_finish_report
    return apply(_ra.svn_ra_reporter2_invoke_finish_report, args)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 400, in close_edit
    self._finish_commit()
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 457, in _finish_commit
    (rev, signature) = self._get_revision(self.revid)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 127, in _get_revision
    rev = Revision(revision_id=revid, parent_ids=self._get_parent_ids())
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 118, in _get_parent_ids
    return self.source.revision_parents(self.revid, self._branch_fileprops)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/repository.py", line 479, in revision_parents
    mainline_parent = self.lhs_revision_parent(branch, revnum, mapping)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/repository.py", line 416, in lhs_revision_parent
    self.generate_revision_id(revnum, path, mapping))
NoSuchRevision: SvnRepository('svn+https://some.url/some.path') has no revision ms@mango-20070702135606-0a002760e076e2f7

bzr 1.3 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'checkout', 'svn+https://some.url/some.path']
encoding: 'ISO-8859-15', fsenc: 'ISO-8859-15', lang: 'de_DE@euro'
plugins:
  bzrtools /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.4/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.4/site-packages/bzrlib/plugins/svn [0.4.9]
*** 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.

On my laptop I have:

ms@shambala> apt-show-versions | egrep "(svn|subversion|bzr).*/" ~
bzr/lenny uptodate 1.3.1-1
bzr-builddeb/lenny uptodate 0.92
bzr-rebase/lenny uptodate 0.3-1
bzr-svn/lenny uptodate 0.4.9-1
bzrtools/lenny uptodate 1.3.0-2
esvn/etch uptodate 0.6.11+1-2
kdesvn/lenny uptodate 0.14.3-1
kdesvn-kio-plugins/lenny uptodate 0.14.3-1
libsvn1/etch uptodate 1.4.2dfsg1-2
libsvnqt4/lenny uptodate 0.14.3-1
libzrtpcpp-0.9.2deb0/lenny uptodate 0.9.2-3+b1
python-subversion/lenny uptodate 1.4.6dfsg1-3
subversion/etch uptodate 1.4.2dfsg1-2

On my workstation I have:

ms@mango> apt-show-versions | egrep "(svn|subversion|bzr).*/" ~
kdesvn-kio-plugins/etch uptodate 0.11.0-1
esvn-doc/etch uptodate 0.6.11+1-2
bzr-rebase/unknown uptodate 0.3-1
bzr/etch uptodate 1.3-1~bpo40+1
libsvnqt3/etch uptodate 0.11.0-1
bzr-svn/unknown uptodate 0.4.9-1
kdesvn/etch uptodate 0.11.0-1
subversion/etch uptodate 1.4.2dfsg1-2
esvn/etch uptodate 0.6.11+1-2
subversion-tools/etch uptodate 1.4.2dfsg1-2
libsvn1/etch uptodate 1.4.2dfsg1-2
libsvncpp0c2a/etch uptodate 0.9.4-1
rapidsvn/etch uptodate 0.9.4-1
python-subversion/etch uptodate 1.4.2dfsg1-2
bzrtools/unknown uptodate 1.3.0-2

bzr is from backports.org, unknown stuff is from lenny.

I will ping Adeodato Simó for a backport for bzr 1.3.1-1 (from lenny)...
If that helps I will close the bug report.

For bzr 1.4 I would have to do the backport myself until its in stable.
I could do that if need be.

Revision history for this message
Martin Steigerwald (ms-proact) wrote :

I forgot to mention (except in the subject) that this relates to a directory that was created from checking in a Bazaar only branch to a subversion repository before.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 229908] [NEW] checking out previously via bzr-svn checked in subversion branch does not work always

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please post the contents of ~/.bazaar/subversion.conf for both.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSCtAEgy0JeEGD2blAQLfZwP/S38NDnbDsGYKDJWqkaQ7gcJVVKokHv7M
WXEsKxOlW3Kss/M56tTWRBW68WEVQd8Mthv6wH/F9TQPdwV9wwLYfsUroF9xpBL3
SaTpaN+Zewfj4FCR2e2qGT0NITw1at3AOKTvA6Z30Vo+CFdZa+YBLtDbSflAKWwV
UDyBL/7Gl3k=
=5f1Y
-----END PGP SIGNATURE-----

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  status incomplete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSCtARQy0JeEGD2blAQJ+OwP8Dwg1N1r9nEd1lGd3j1NaFM9kKai5pEib
Axy5uyIWJZTnFc8Egj3ur5iHn1VkdPuJx6ESnqRSqCUk7D1WNejAXXmLGvKG+i96
SVOuY1Q2VYuKNe3OcPhtxWQhj5FjnmRDV/W+32wmMmT9GVS/dDdoB8D+zNJYeEcX
rQMLur7Ta6Y=
=KIo6
-----END PGP SIGNATURE-----

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

I think this has been resolved.

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

I'm sure this has been resolved.

Changed in bzr-svn:
assignee: nobody → jelmer
milestone: none → 0.5.0
status: Incomplete → Fix Released
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.