Enable after installation

Bug #1787160 reported by anatoly techtonik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hg-git (Ubuntu)
New
Undecided
Unassigned

Bug Description

Plugin does not work after installation:

    # apt install mercurial-git

    $ hg clone https://github.com/techtonik/notfar.git
    abort: HTTP Error 406: Not Acceptable

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: mercurial-git 0.8.11-1
ProcVersionSignature: Ubuntu 4.15.0-31.33-generic 4.15.18
Uname: Linux 4.15.0-31-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.3
Architecture: amd64
CurrentDesktop: i3
Date: Wed Aug 15 13:08:40 2018
PackageArchitecture: all
SourcePackage: hg-git
UpgradeStatus: Upgraded to bionic on 2018-08-05 (9 days ago)

Revision history for this message
anatoly techtonik (techtonik) wrote :
Revision history for this message
anatoly techtonik (techtonik) wrote :

It should be possible to provide `hgrc.d` file for enabling the extension.

https://www.selenic.com/mercurial/hgrc.5.html

Revision history for this message
anatoly techtonik (techtonik) wrote :

Can not enable it even manually.

    [extensions]
    hg-git =

    $ hg clone git+https://github.com/techtonik/notfar.git
    *** failed to import extension hg-git: No module named hg-git

The same with hggit.

    *** failed to import extension hggit: No module named hggit

So how to install it? I am using official instructions from https://bitbucket.org/durin42/hg-git/src/default/

Revision history for this message
anatoly techtonik (techtonik) wrote :

I could install it by casting my Python-fu over https://packages.ubuntu.com/bionic/all/mercurial-git/filelist and not everybody possess such great skills as me. I wonder how many people could not install the extension because of missing instructions.

Anyway, the answer is:

    [extensions]
    git =

But for /etc/mercurial/hgrc.d/hggit.rc the correct line would be:

    [extensions]
    hggit = /usr/lib/python2.7/dist-packages/hgext/git

This way people can trace back to original package source.

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.