[Pkg-bazaar-maint] Bug#939297: breezy: Please provide git-remote-bzr program

Sven Joachim svenjoac at gmx.de
Wed Oct 23 17:41:11 BST 2019


On 2019-09-03 03:01 +0200, Guillem Jover wrote:

> Source: breezy
> Source-Version: 3.0.1-3
> Severity: wishlist
>
> I see upstream contains a git-remote-bzr program, but it's not
> currently being installed(?). With the removal of the git-remote-bzr
> binary package, and the transition away from bazaar (and the dummy
> bzr-git which has stopped providing its own git-remote-bzr) it would
> be really nice if breeze could ship its variant somewhere. My
> preference would be to takeover the git-remote-bzr binary package
> name so that we get a smooth transition (which AFAIR might cause no
> trip via NEW processing?), and a less confusing package name than
> the previous bzr-git.

The patch below creates such a git-remote-bzr package:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: git-remote-bzr.diff
Type: text/x-diff
Size: 1288 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-bazaar-maint/attachments/20191023/94ccf6d9/attachment.diff>
-------------- next part --------------

Unfortunately, at least with breezy 3.0.1 it does not actually work. :-(
Here is what I got trying to clone a random repository:

,----
| $ git clone bzr::https://code.launchpad.net/~clint-fewbar/pipemeter/packaging
| Cloning into 'packaging'...
| warning: this remote helper should implement refspec capability
| Traceback (most recent call last):
|   File "/usr/lib/python3/dist-packages/breezy/git/git_remote_helper.py", line 117, in cmd_list
|     repo = self.remote_dir.find_repository()
|   File "/usr/lib/python3/dist-packages/breezy/bzr/bzrdir.py", line 589, in find_repository
|     raise errors.NoRepositoryPresent(self)
| breezy.errors.NoRepositoryPresent: No repository present: "https://code.launchpad.net/~clint-fewbar/pipemeter/packaging/"
|
| During handling of the above exception, another exception occurred:
|
| Traceback (most recent call last):
|   File "/usr/bin/git-remote-bzr", line 52, in <module>
|     helper.process(sys.stdin.buffer, sys.stdout.buffer)
|   File "/usr/lib/python3/dist-packages/breezy/git/git_remote_helper.py", line 171, in process
|     self.process_line(line, outf)
|   File "/usr/lib/python3/dist-packages/breezy/git/git_remote_helper.py", line 189, in process_line
|     self.commands[argv[0].decode()](self, outf, argv)
|   File "/usr/lib/python3/dist-packages/breezy/git/git_remote_helper.py", line 119, in cmd_list
|     repo = self.remote_dir.create_repository()
|   File "/usr/lib/python3/dist-packages/breezy/bzr/bzrdir.py", line 912, in create_repository
|     return self._format.repository_format.initialize(self, shared)
|   File "/usr/lib/python3/dist-packages/breezy/bzr/pack_repo.py", line 1909, in initialize
|     a_controldir, dirs, files, utf8_files, shared)
|   File "/usr/lib/python3/dist-packages/breezy/bzr/repository.py", line 135, in _upload_blank_content
|     control_files = self._create_control_files(a_bzrdir)
|   File "/usr/lib/python3/dist-packages/breezy/bzr/repository.py", line 127, in _create_control_files
|     repository_transport = a_bzrdir.get_repository_transport(self)
|   File "/usr/lib/python3/dist-packages/breezy/bzr/bzrdir.py", line 1017, in get_repository_transport
|     self.transport.mkdir('repository', mode=self._get_mkdir_mode())
|   File "/usr/lib/python3/dist-packages/breezy/transport/http/__init__.py", line 456, in mkdir
|     raise errors.TransportNotPossible('http does not support mkdir()')
| breezy.errors.TransportNotPossible: Transport operation not possible: http does not support mkdir()
`----

Maybe it would be better to try and revive the original git-remote-bzr
package?  Paul Wise has attempted to port it to Python3[1], but I don't
know how far he got.

Cheers,
       Sven


1. https://github.com/pabs3/git-remote-bzr/tree/python3


More information about the Pkg-bazaar-maint mailing list