Portál AbcLinuxu, 10. května 2025 08:16
[extensions]
hgext.bookmarks =
hgext.hg-git = /home/filo/src/hg-git
ovšem pokud se pokusím pomocí hg clone git://github.com/OiNutter/FileHandler.git
ovšem vypíše to následující hlášky:
*** failed to import extension hgext.bookmarks: No module named bookmarks
*** failed to import extension hgext.hg-git from /home/filo/src/hg-git: No module named dulwich.errors
abort: repository git://github.com/OiNutter/FileHandler.git not found!
Nevíte někdo jak to opravit? Díky Řešení dotazu:
hgrc
mel vypadat takto:
[extensions] hgext.bookmarks = git = /home/filo/src/hg-gitPS: delsi kod davej do <pre> misto <code>.
** unknown exception encountered, details follow ** report bug details to http://mercurial.selenic.com/bts/ ** or mercurial@selenic.com ** Mercurial Distributed SCM (version 1.3.1) ** Extensions loaded: children, churn, convert, fetch, gpg, graphlog, mq, patchbomb, purge, record, transplant, bookmarks, hg-git Traceback (most recent call last): File "/usr/bin/hg", line 5, in < module > pkg_resources.run_script('mercurial==1.3.1', 'hg') File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 448, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1166, in run_script execfile(script_filename, namespace, namespace) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/EGG-INFO/scripts/hg", line 27, in < module > mercurial.dispatch.run() File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 27, in dispatch return _runcatch(u, args) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 43, in _runcatch return _dispatch(ui, args) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 449, in _dispatch return runcommand(lui, repo, cmd, fullargs, ui, options, d) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 317, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 501, in _runcommand return checkargs() File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 454, in checkargs return cmdfunc() File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py", line 448, in < lambda > d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/util.py", line 402, in check return func(*args, **kwargs) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/commands.py", line 636, in clone update=not opts.get('noupdate')) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/hg.py", line 183, in clone src_repo = repository(ui, source) File "/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/hg.py", line 63, in repository repo = _lookup(path).instance(ui, path, create) File "/home/filo/src/hg-git/gitrepo.py", line 17, in __init__ git.fetch('origin') File "/home/filo/src/hg-git/git_handler.py", line 107, in fetch self.import_git_objects(remote_name, refs) File "/home/filo/src/hg-git/git_handler.py", line 644, in import_git_objects self.import_git_commit(commit) File "/home/filo/src/hg-git/git_handler.py", line 801, in import_git_commit node = self.repo.commit_import_ctx(ctx, pa, force_files) File "/home/filo/src/hg-git/hgrepo.py", line 57, in commit_import_ctx new[f] = self.filecommit(fctx, m1, m2, linkrev, trp, changed) AttributeError: 'bookmark_repo' object has no attribute 'filecommit'HG-GIT staženo z http://bitbucket.org/Scotty/hg-git/overview/ mercurial nainstalováno pomocí easy_install -U mercurial (dříve bylo pomocí apt-get install mercurial, ale zkoušel jsem, zda chyba není ve verzi mercurial, ale nejspíše ne, jelikož ani verze nainstalovaná pomocí easy_install nefunguje).
http://bitbucket.org/abderrahim/hg-git/
, jak je v navodu napsano? Tuto extenzi neznam, ale nebylo by lepsi napsat primo autorum uvedenych v README.md
? Hned na prvnim radku pisou *Warning: This plugin is not yet stabilized. Use to help me identify bugs, but it will be a few weeks before its fully stable.*
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.