git-remote-bzr cannot clone the emacs repository

Bug #1012420 reported by BT Templeton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Triaged
Medium
Unassigned
Breezy
Incomplete
Undecided
Unassigned
Debian
Confirmed
Unknown

Bug Description

Package: bzr-git
Version: 0.6.8-1
Severity: normal

Dear Maintainer,

git-remote-bzr cannot be used to clone the Emacs bzr repository. Here's
a traceback, where ~/src/emacs/trunk is a branch of
<bzr://bzr.savannah.gnu.org/emacs/trunk>:

--8<---------------cut here---------------start------------->8---
olor:~/src/emacs% git clone bzr::$PWD/trunk git1
Cloning into 'git1'...
Traceback (most recent call last):
  File "/usr/bin/git-remote-bzr", line 49, in <module>
    helper.process(sys.stdin, sys.stdout)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 170, in process
    self.process_line(l, outf)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 186, in process_line
    self.commands[argv[0]](self, outf, argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 120, in cmd_list
    for ref, git_sha1 in refs.as_dict().iteritems():
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 202, in as_dict
    ret[key] = self[("%s/%s" % (base, key)).strip("/")]
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 273, in __getitem__
    _, sha = self._follow(name)
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 255, in _follow
    contents = self.read_ref(refname)
  File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 231, in read_ref
    contents = self.read_loose_ref(refname)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/refs.py", line 136, in read_loose_ref
    return self.object_store._lookup_revision_sha1(revid)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/object_store.py", line 580, in _lookup_revision_sha1
    self._update_sha_map(revid)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/object_store.py", line 384, in _update_sha_map
    self._update_sha_map_revision(revid)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/object_store.py", line 487, in _update_sha_map_revision
    ie = { "testament3-sha1": testament3.as_sha1() }
  File "/usr/lib/python2.7/dist-packages/bzrlib/testament.py", line 214, in as_sha1
    return sha_strings(self.as_text_lines())
  File "/usr/lib/python2.7/dist-packages/bzrlib/testament.py", line 154, in as_text_lines
    a(self._entry_to_line(path, ie))
  File "/usr/lib/python2.7/dist-packages/bzrlib/testament.py", line 224, in _entry_to_line
    l = Testament._entry_to_line(self, path, ie)[:-1]
  File "/usr/lib/python2.7/dist-packages/bzrlib/testament.py", line 185, in _entry_to_line
    l = u' %s %s %s%s%s\n' % (ie.kind, self._escape_path(path),
  File "/usr/lib/python2.7/dist-packages/bzrlib/testament.py", line 242, in _escape_path
    raise ValueError(path)
ValueError: admin/ab
zsh: exit 128 git clone bzr::$PWD/trunk git1
--8<---------------cut here---------------end--------------->8---

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr-git depends on:
ii bzr 2.6.0~bzr6522-1
ii python 2.7.2-10
ii python-dulwich 0.8.5-2
ii python2.6 2.6.7-4
ii python2.7 2.7.3~rc2-2.1

Versions of packages bzr-git recommends:
ii python-tdb 1.2.10-1

Versions of packages bzr-git suggests:
ii bzr-fastimport 0.13.0-1

-- no debconf information

Changed in debian:
status: Unknown → New
Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: New → Triaged
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
no longer affects: bzr
Changed in debian:
status: New → Confirmed
Jelmer Vernooij (jelmer)
affects: brz-git → brz
tags: added: git
tags: added: git-remote-helper
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Incomplete
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.