Issue #252 resolved
zdm @softvisio
created an issue

I get an error, when run any command with hg 4.7

*** failed to import extension hggit: 'module' object has no attribute 'ignore'

Comments (20)

  1. Richard PALO

    seems 4.7 updated hgdemandimport

    the following seems to work for me:

    --- /tmp/__init__.py    2018-08-05 18:27:42.918491280 +0200
    +++ /usr/lib/python2.7/site-packages/hggit/__init__.py  2018-08-05 18:28:12.472749925 +0200
    @@ -73,9 +73,9 @@
         # baseset was added in hg 3.0
         pass
    
    -demandimport.ignore.extend([
    +demandimport.IGNORES.add(
         'collections',
    -])
    +)
    
     __version__ = '0.8.11'
    
  2. Luke Mergner

    Updating demandimport seems to allow mercurial import hggit, but when I try to convert a repo I get another error.

    ** Unknown exception encountered with possibly-broken third-party extension hggit
    ** which supports versions 4.5 of Mercurial.
    [...]
    TypeError: __init__() got an unexpected keyword argument 'intents'
    
  3. Augie Fackler repo owner

    No, because I'm not the maintainer of hg-git. I have had nothing to do with hg-git for years, and I'm not going to start again now. I don't use hg-git, I have no interest in it. Please contact the current maintainer via the ML.

  4. muxator

    @Augie Fackler, I volunteer (temporarily) for small bookkeeping activities on this project while the maintainer (reading here I think he is Kevin Bullock) prepares for taking over.

    Unfortunately I am not competent enough for significantly contributing to the development, but I have been using hg-git long enough to be interested in its good shape.

    I think the url for allowing write access should be: https://bitbucket.org/durin42/hg-git/admin/access.

    Tell me if this is ok for you, and thank for your time.

  5. Tuomo Valkonen

    The supposed workaround pip2 install -U https://bitbucket.org/bashell-com/hg-git/get/tip.tar.gz above gives me:

    ** Unknown exception encountered with possibly-broken third-party extension hggit
    ** which supports versions 4.5 of Mercurial.
    ** Please disable hggit and try your action again.
    ** If that fixes the bug please report it to https://bitbucket.org/durin42/hg-git/issues
    ** Python 2.7.15 (default, Jan 12 2019, 21:07:57) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]
    ** Mercurial Distributed SCM (version 4.8.2)
    ** Extensions loaded: rebase, shelve, strip, extdiff, histedit, hggit
    Traceback (most recent call last):
      File "/usr/local/bin/hg", line 43, in <module>
        dispatch.run()
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 96, in run
        status = dispatch(req)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 220, in dispatch
        ret = _runcatch(req) or 0
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 363, in _runcatch
        return _callcatch(ui, _runcatchfunc)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 371, in _callcatch
        return scmutil.callcatch(ui, func)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/scmutil.py", line 166, in callcatch
        return func()
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 354, in _runcatchfunc
        return _dispatch(req)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 994, in _dispatch
        cmdpats, cmdoptions)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 737, in runcommand
        ret = _runcommand(ui, options, cmd, d)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 1003, in _runcommand
        return cmdfunc()
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/dispatch.py", line 991, in <lambda>
        d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/util.py", line 1644, in check
        return func(*args, **kwargs)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/util.py", line 1644, in check
        return func(*args, **kwargs)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/hgext/rebase.py", line 1861, in pullrebase
        ret = orig(ui, repo, *args, **opts)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/util.py", line 1644, in check
        return func(*args, **kwargs)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/commands.py", line 4362, in pull
        other = hg.peer(repo, opts, source)
      File "/usr/local/lib/python3.7/site-packages/hggit/__init__.py", line 358, in peer
        newpeer = orig(uiorrepo, *args, **opts)
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/hg.py", line 200, in peer
        createopts=createopts).peer()
      File "/usr/local/Cellar/mercurial/4.8.2/lib/python2.7/site-packages/mercurial/hg.py", line 161, in _peerorrepo
        createopts=createopts)
    TypeError: __init__() got an unexpected keyword argument 'createopts'
    

    Versions 4.5????

  6. Log in to comment