git에서 추출할 때 "인덱스: 모듈 인덱스 범위 초과"가 나타납니다

6346 단어 hg-git

묘사

이 잘못이 어떻든 간에 끌어당기는 것은 성공한 것 같다.
% hg pull git
pulling from git+ssh://localhost/Users/nicholas/[...]
importing Hg objects into Git
Counting objects: 298, done.
Compressing objects: 100% (297/297), done.
Total 298 (delta 101), reused 0 (delta 0)
importing Git objects into Hg
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 34, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 132, in _runcatch
    elif hasattr(inst, "args") and inst.args[0] == errno.EPIPE:
IndexError: tuple index out of range

토론 #1

는 사실상 작용하지 않는다.지난번 제출은git에서 제출한 것이 아닙니다. 현재 전송을 시도할 때 다음과 같은 결과를 얻었습니다.
% hg push git
pushing to git+ssh://localhost/Users/nicholas/[...]
importing Hg objects into Git
creating and sending data
abort: refs/heads/master changed on the server, please pull and merge before pushing
fatal: The remote end hung up unexpectedly
% hg book -f hg
% hg push -r hg git
pushing to git+ssh://localhost/Users/nicholas/[...]
importing Hg objects into Git
creating and sending data
    git::refs/heads/master => GIT:10f71fd7
    git::refs/heads/hg => GIT:156a5eb8
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or [email protected]
** Python 2.6.1 (r261:67515, Feb 11 2010, 15:47:53) [GCC 4.2.1 (Apple Inc. build 5646)]
** Mercurial Distributed SCM (version 1.5.4+33-1.5.4+154-4a64c9392f5a+8b452fe4bf50+20100623)
** Extensions loaded: bookmarks, color, convert, eol, extdiff, fetch, forest, graphlog, hgk, mq, patchbomb, progress, rebase, record, transplant, hgkeychain, hggit, svn
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 34, in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 54, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 483, in _dispatch
    cmdpats, cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 351, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/extensions.py", line 160, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/hgext/color.py", line 213, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 534, in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 488, in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 481, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/extensions.py", line 116, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/Users/nicholas/src/hgsubversion/hgsubversion/wrappers.py", line 415, in generic
    return orig(ui, repo, *args, **opts)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/extensions.py", line 116, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/hgext/mq.py", line 2785, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/extensions.py", line 116, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/hgext/bookmarks.py", line 423, in push
    result = oldpush(ui, repo, dest, **opts)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 408, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 2834, in push
    newbranch=opts.get('new_branch'))
  File "/Users/nicholas/src/hgsubversion/hgsubversion/svnrepo.py", line 50, in wrapper
    return original(*args, **opts)
  File "/Users/nicholas/src/hg-git/hggit/hgrepo.py", line 20, in push
    git.push(remote.path, revs, force)
  File "/Users/nicholas/src/hg-git/hggit/git_handler.py", line 156, in push
    self.update_remote_branches(remote_name, changed_refs)
  File "/Users/nicholas/src/hg-git/hggit/git_handler.py", line 758, in update_remote_branches
    _set_hg_tag(head, sha)
  File "/Users/nicholas/src/hg-git/hggit/git_handler.py", line 751, in _set_hg_tag
    hgsha = bin(self.map_hg_get(sha))
TypeError: a2b_hex() argument 1 must be string or read-only buffer, not None
문제는 지난번 변경집이 나타나지 않았기 때문에git와 hg는 현재'마스터'에 대해 다른 견해를 가지고 있는 것 같다.
따라서 현재 나의 유일한 선택은 Git 환매 협의를 다시 만들고 마지막 변경 사항을 수동으로 이전하는 것 같다.

토론 #2

...실제로 없습니다. 저는git에서'git merge hg'를 만들 수 있고, 그 다음에'hg pull git'를 만들 수 있습니다.그러나 Mercurial은 여전히 취소되지 않은 약속이 부족하다.나는 내가 이 물건들을 더욱 잘 이해할 수 있기를 바란다.

좋은 웹페이지 즐겨찾기