breaks on gerrit refs

Bug #666443 reported by Marc Dietrich
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

bzr git-import something fails with e.g.:

bzr: ERROR: exceptions.ValueError: unable to map ref refs/changes/65/9265/1 back to branch name

While
   bzr git-import git://anongit.freedesktop.org/git/mesa/drm
works well,
   bzr git-import git://android.git.kernel.org/platform/external/freetype.git

fails.

This is ubuntu with maverik and the 0.5.3dev version.

Full output:

bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: exceptions.ValueError: unable to map ref refs/changes/65/9265/1 back to branch name

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/marc/.bazaar/plugins/git/commands.py", line 107, in run
    name, None, tags)
  File "/home/marc/.bazaar/plugins/git/branch.py", line 177, in __init__
    self.name = ref_to_branch_name(ref)
  File "/home/marc/.bazaar/plugins/git/refs.py", line 82, in ref_to_branch_name
    raise ValueError("unable to map ref %s back to branch name" % ref)
ValueError: unable to map ref refs/changes/65/9265/1 back to branch name

bzr 2.2.0 on python 2.6.6 (Linux-2.6.36+-x86_64-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'git-import', 'git://android.git.kernel.org/platform/external/freetype.git']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.0]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  fastimport /usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.9.0dev]
  git /home/marc/.bazaar/plugins/git [0.5.3dev]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.0]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.0]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.0]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Tags: verified

Related branches

Jelmer Vernooij (jelmer)
summary: - git-import fails on some repositories
+ breaks on gerrit refs
Changed in bzr-git:
status: New → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: Triaged → Fix Committed
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Marc Dietrich (marvin24) wrote :

works, thanks!

Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: Fix Committed → Fix Released
milestone: none → 0.5.3
Jelmer Vernooij (jelmer)
tags: added: verified
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.