dotencode property through mercurial-server issue
Just want to notice: this issue is only about sharing mercurial using mercurial-server
Steps to reproduce:
- create 开发者_运维问答new repository with
hg init
try to clone it through mercurial-server:
hg clone ssh://hg@192.168.132.72/test2 . remote: abort: There is no Mercurial repository here (.hg not found)! прервано: no suitable response from remote hg!
edit
.hg/requires
file, removedotencode
propertyrepeat step 2:
hg clone ssh://hg@192.168.132.72/test2 . изменений не найдено updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Any ideas why it is happening and how I could fix it?
ps: it is mercurial 1.9 installed, and the command is performed from the same machine.
That happened because:
I had mercurial site-packages installed in both
/usr
(new, from 1.9) and/usr/local
(old, from 1.6). Andhg-ssh
had taken the old ones.hg-ssh
needs to be patched a littledispatch.dispatch(['init', repo])
should be replaced with
dispatch.dispatch(dispatch.request(['init', repo]))
and
dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
with
dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
accordingly
The most recent release of mercurial-server, version 1.2, fixes this problem.
精彩评论