The branch FOO has no revision None.

Bug #233964 reported by John Carr
12
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
High
Jelmer Vernooij

Bug Description

bzr branch http://svn.gnome.org/svn/tracker/tags/tracker_0_5_2

results in

bzr: ERROR: The branch http://svn.gnome.org/svn/tracker/tags/tracker_0_5_2 has no revision None.

There is also an error when i use svn-import on tracker:

69.383 creating branch <bzrlib.branch.BzrBranchFormat6 object at 0xb6bee54c> in file:///home/x469yq/gnome/tracker/tags/tracker_0_5_2/.bzr/
69.601 Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 841, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 807, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/john/.bazaar/plugins/svn/__init__.py", line 234, in run
    not standalone, trees, all, filter_branch=filter_branch)
  File "/home/john/.bazaar/plugins/svn/convert.py", line 172, in convert_repository
    target_branch.pull(source_branch)
  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 1766, 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 1569, 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 1507, in update_revisions
    other_last_revno, other_last_revision = other.last_revision_info()
  File "/home/john/.bazaar/plugins/svn/branch.py", line 234, in last_revision_info
    return self.revision_id_to_revno(last_revid), last_revid
  File "/home/john/.bazaar/plugins/svn/branch.py", line 244, in revision_id_to_revno
    raise NoSuchRevision(self, revision_id)
NoSuchRevision: SvnBranch('svn+file:///home/x469yq/gnomesvn/tracker/tags/tracker_0_5_2') has no revision svn-v3-trunk0:13f93fa3-e725-0410-a08d-a391da2ecc01:tags%2Ftracker_0_5_2:292

(I presume same problem, and seems to give a more useful traceback than the branch case)

Revision history for this message
John Carr (johncarr) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 233964] Re: The branch FOO has no revision None.

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

John Carr wrote:
> Hitting this quite a lot. Here are some more branches.
>
> http://svn.gnome.org/svn/gnopernicus/tags/GNOME_2_6_0
> http://svn.gnome.org/svn/gok/tags/GOK_0_9_3
> http://svn.gnome.org/svn/gthumb/branches/GTHUMB_2_6
> http://svn.gnome.org/svn/gnome-mag/branches/gnome_2_0
> http://svn.gnome.org/svn/gnome-speech/tags/GNOME_SPEECH_0_3_3
   status triaged
   importance high

Cheers,

Jelmer

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

iQCVAwUBSD3rfwy0JeEGD2blAQLwjwQAiUpDszQT3jZW7YEWKvSsp6du+H/60y/E
mJuCHircA8Vc4oxLAfC9+ETnZgo8t9TQZ/6NE5Yg5j8McDLZtsV0anKLaR0oDrgm
az+z1/Pl6Cu6OfXYwoc7I+vA5EpARuFiIGmdA8WYJOzLH8XTcPnFoa/WrlPqvy0E
5bzj+rWTFB4=
=yN0k
-----END PGP SIGNATURE-----

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

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

Found the error. Apparently LIKE in sqlite is case insensitive and
that was causing inconsistencies since we were using the uppercased
name in one case (tags/TRACKER_0_5_2) and the lowercased name
(tags/tracker_0_5_2) in another.

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

iQCVAwUBSD3yrwy0JeEGD2blAQIg4AP/add0g6yucP3VktfJmVSXPM2Xov3xVwDZ
2Aa9X5KMgn+W3jhRfmMEbT1LsIt/Z26h3HYAfECjCyWdnAryHYF+rm7nFwdkBhiG
ey8ptxopALsLawyjcfuIVP9c5CeqnVzeyXwnAZLdwB+Xl10ALzC/1ztyDb1IDTl+
VaDhMi/J7GE=
=6DnY
-----END PGP SIGNATURE-----

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

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

This bug is now fixed in the 0.4 branch.

  status fixcommitted

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

iQCVAwUBSD3z3Ay0JeEGD2blAQLDfwP/agrpq9T1V7llJ4l10fs13SnCVj8O2+WX
+TYm0a//GmBx4uxyLuUrb+23ht63CKlzJwaW/xyz7sOgogEijiEkfsYQOH21aRgm
UGcULvfcpatkw+jKWuOeMvo/GAt5xPVsJuqYH2qh+230y176TxUeL93yrMh+zJ+Y
gHaMDCJMJa8=
=f3Lj
-----END PGP SIGNATURE-----

Changed in bzr-svn:
status: Triaged → Fix Committed
Revision history for this message
ChriS (christophe-troestler) wrote :

I have the very same error when I do

bzr branch https://pa-do.svn.sourceforge.net/svnroot/pa-do/trunk/

(development versions of bzr and bzr-svn).

.bzr.log:

0.068 encoding stdout as sys.stdout encoding 'ISO-8859-1'
0.068 bzr arguments: [u'branch', u'https://pa-do.svn.sourceforge.net/svnroot/pa-do/trunk/']
0.068 looking for plugins in /home/trch/.bazaar.dev/plugins
0.079 bzr-svn: using Subversion 1.4.6 ()
0.093 looking for plugins in /home/devel/bzr/bzr.dev/bzrlib/plugins
0.094 Plugin name __init__ already loaded
0.094 Plugin name __init__ already loaded
0.094 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.094 Plugin name __init__ already loaded
0.094 Plugin name bzrtools already loaded
0.094 Plugin name __init__ already loaded
0.094 Plugin name launchpad already loaded
0.098 encoding stdout as sys.stdout encoding 'ISO-8859-1'
0.142 failed to import pycurl: No module named pycurl
0.142 failed to instantiate transport <bzrlib.registry._LazyObjectGetter object at ecceb0, module='bzrlib.transport.http._pycurl' attribute='PyCurlTransport'> for 'https://pa-do.svn.sourceforge.net/svnroot/pa-do/trunk/': DependencyNotPresent()
2.689 opening SVN RA connection to 'https://pa-do.svn.sourceforge.net/svnroot/pa-do/trunk'
[20395] 2008-07-10 17:51:20.931 WARNING: using experimental bzr-svn mappings; output may change between revisions
8.122 opening SVN RA connection to 'file:///tmp/A'
8.125 Unable to open <bzrlib.transport.local.LocalTransport url=file:///tmp/A/> with Subversion: Unable to open an ra_local session to URL
8.127 opening SVN RA connection to 'file:///tmp'
8.130 Unable to open <bzrlib.transport.local.LocalTransport url=file:///tmp/> with Subversion: Unable to open an ra_local session to URL
8.131 opening SVN RA connection to 'file:'
8.135 Unable to open <bzrlib.transport.local.LocalTransport url=file:///> with Subversion: Unable to open an ra_local session to URL
8.135 creating repository in file:///tmp/A/trunk/.bzr/.
17.692 expand branches: [], ['trunk']
17.692 expand branches: ['trunk'], []
20.005 expand branches: [], ['branches', '*']
20.005 expand branches: ['branches'], ['*']
21.032 expand branches: [], ['tags', '*']
21.032 expand branches: ['tags'], ['*']
22.045 Traceback (most recent call last):
  File "/home/devel/bzr/bzr.dev/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/devel/bzr/bzr.dev/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/home/devel/bzr/bzr.dev/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/devel/bzr/bzr.dev/bzrlib/builtins.py", line 947, in run
    raise errors.BzrCommandError(msg)
BzrCommandError: The branch https://pa-do.svn.sourceforge.net/svnroot/pa-do/trunk/ has no revision None.

22.046 return code 3

Revision history for this message
ChriS (christophe-troestler) wrote :

I have again this error with the current development versions.

Changed in bzr-svn:
status: Fix Committed → New
Revision history for this message
ChriS (christophe-troestler) wrote :

Cool, it does not happen anymore with today developpement versions.

Changed in bzr-svn:
status: New → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
milestone: none → 0.4.11
assignee: nobody → jelmer
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.