这是indexloc提供的服务,不要输入任何密码
Skip to content

Cannot use mercurial #22

@yajo

Description

@yajo

I keep on getting amazed by this app. I'm trying to use mercurial, I installed it by:

apt install python2 python2-dev gcc
pip2 install mercurial

It works! But then:

$ hg help
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/bin/hg", line 41, in <module>
    mercurial.util.setbinary(fp)
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 130, in __getattribute__
    self._load()
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 96, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 53, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/util.py", line 33, in <module>
    cachestat = platform.cachestat
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 130, in __getattribute__
    self._load()
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 96, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 53, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/mercurial/posix.py", line 32, in <module>
    oslink = os.link
AttributeError: 'module' object has no attribute 'link'

I'm not sure if I did something wrong, if it is Termux bug, Mercurial's, or if the fix would be a Mercurial package. Any help please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions