THG 3.8rc does not start when mq is enabled (with hg-3.8rc)

Issue #4487 invalid
muxator
created an issue

Thg 3.8rc (changeset 5edf8451f4510a4024666d84704453b77dca1597, "merge default into stable (freeze for 3.8)") seems to be incompatible with mq from mercurial 3.8rc

    ** Mercurial version (3.8-rc+38-87d4a6c5567e+20160428).  TortoiseHg version (3.7.3+13-5edf8451f451)
    ** Command: 
    ** CWD: /home/lab5/Desktop/codice/thg
    ** Encoding: UTF-8
    ** Extensions loaded: extdiff, shelve, strip, rebase, hggit, convert, purge, mq
    ** Python version: 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010]
    ** System: Linux lab5 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC 2016 x86_64
    ** Qt-4.8.6 PyQt-4.11.4 QScintilla-2.9
    Traceback (most recent call last):
      File "/home/lab5/Desktop/codice/thg/tortoisehg/hgqt/run.py", line 49, in dispatch
        return _runcatch(u, args)
      File "/home/lab5/Desktop/codice/thg/tortoisehg/hgqt/run.py", line 243, in _runcatch
        return runcommand(ui, args)
      File "/home/lab5/Desktop/codice/thg/tortoisehg/hgqt/run.py", line 312, in runcommand
        extensions.loadall(lui)
      File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 159, in loadall
        extsetup(ui)
      File "/usr/local/lib/python2.7/dist-packages/hgext/mq.py", line 3560, in extsetup
        nowrap = set(commands.norepo.split(" "))
    AttributeError: 'module' object has no attribute 'norepo'

When disabling mq, thg starts correctly.

Mercurial freshly built on ubuntu with make deb

Comments (2)

  1. Yuya Nishihara

    Looks like you are using the mq of Mercurial <= 3.7 with Mercurial 3.8.

    /usr/lib/python2.7/dist-packages/mercurial/extensions.py /usr/local/lib/python2.7/dist-packages/hgext/mq.py

    Try removing either the system Mercurial or local installation.

    (closed as environment issue)

  2. muxator reporter

    Your diagnosis was correct, Yuya, thank you.

    To solve it, I manually removed every reference to mercurial from the file system and then reinstalled the deb package.

  3. Log in to comment