HG 克隆 - 中止:HTTP 错误 403:Forbidden/empty 目标路径无效
HG clone - abort : HTTP Error 403: Forbidden/empty destination path not valid
基本上,我正在尝试提供 (hg serve) 我的本地存储库并克隆它。
当我给了"hg clone http://localhost:8000/"(服务的URL),我得到了"abort: HTTP Error 403: Forbidden"
当我执行 "unset http_proxy" 时,再次尝试,中止:空目标路径无效 弹出!
为什么会这样?在克隆之前是否需要在 hgrc 或任何配置文件中完成任何先决条件?
无需预先设置:
(df)Ry4ans-MacBook-Air:www ry4an$ cd /tmp
(df)Ry4ans-MacBook-Air:tmp ry4an$ hg init janani ; cd janani ; hg serve &
[1] 22358
(df)Ry4ans-MacBook-Air:janani ry4an$ listening at http://Ry4ans-MacBook-Air.local:8000/ (bound to *:8000)
(df)Ry4ans-MacBook-Air:janani ry4an$ cd ..
(df)Ry4ans-MacBook-Air:tmp ry4an$ hg clone http://localhost:8000/ janani-clone
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=capabilities HTTP/1.1" 200 -
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D
no changes found
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
会不会是您已经有一个不同的服务器在端口 8000 上侦听,所以您的 hg serve
没有连接?
hg clone http://localhost:8000/ .
指定目的地viz.current工作目录(.)解决了。
基本上,我正在尝试提供 (hg serve) 我的本地存储库并克隆它。
当我给了"hg clone http://localhost:8000/"(服务的URL),我得到了"abort: HTTP Error 403: Forbidden"
当我执行 "unset http_proxy" 时,再次尝试,中止:空目标路径无效 弹出!
为什么会这样?在克隆之前是否需要在 hgrc 或任何配置文件中完成任何先决条件?
无需预先设置:
(df)Ry4ans-MacBook-Air:www ry4an$ cd /tmp
(df)Ry4ans-MacBook-Air:tmp ry4an$ hg init janani ; cd janani ; hg serve &
[1] 22358
(df)Ry4ans-MacBook-Air:janani ry4an$ listening at http://Ry4ans-MacBook-Air.local:8000/ (bound to *:8000)
(df)Ry4ans-MacBook-Air:janani ry4an$ cd ..
(df)Ry4ans-MacBook-Air:tmp ry4an$ hg clone http://localhost:8000/ janani-clone
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=capabilities HTTP/1.1" 200 -
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D
no changes found
127.0.0.1 - - [24/Feb/2015 14:24:39] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
会不会是您已经有一个不同的服务器在端口 8000 上侦听,所以您的 hg serve
没有连接?
hg clone http://localhost:8000/ .
指定目的地viz.current工作目录(.)解决了。