在 Windows 上使用 hgsubversion

发布于 2024-12-23 01:45:17 字数 1022 浏览 6 评论 0原文

我正在尝试使用 Windows 中的 Mercurial 的 hgsubversion 插件。从 SVN 存储库拉取适用于 Windows。但是当我尝试推送到存储库时,我收到以下消息:

pushing to svn+ssh://[email protected]/home/user/.repo/test.svn/
abort: command unavailable for Subversion repositories

似乎发生这种情况是因为 hgsubversion 使用 SWIG 绑定而不是 subvertpy(在 Linux 上,使用 subvertpy 一切正常)

D:\test\>hg version --svn
hgsubversion: 88f3cda47def
Subversion: 1.6.13
bindings: SWIG

但我没有找到任何简单的方法安装它(现在我正在尝试自己编译它,但存在一些问题)。也许我错过了什么。 Bzr正在使用subvertpy,也许可以提取它?有什么建议吗?

有人在 Windows 上使用 hgsubversion 吗?

PS 要编译库,我尝试了以下提示: https://bitbucket.org/tortoisehg/thg-winbuild/issue/14/request-add-subvertpy-to-the-default


UPD:解决了推送失败的初始问题。 Largefiles(随 Mercurial >= 2.0 一起分发)扩展破坏了 hgsubversion。只是禁用它并让 hgsubversion 工作。

I'm trying to use hgsubversion plugin for mercurial from Windows. Pull from SVN repositpry works on Windows. But when I'm trying to push to the repository, I get the following message:

pushing to svn+ssh://[email protected]/home/user/.repo/test.svn/
abort: command unavailable for Subversion repositories

It seems this happens because hgsubversion is using SWIG bindings instead of subvertpy( on Linux everything works fine with subvertpy)

D:\test\>hg version --svn
hgsubversion: 88f3cda47def
Subversion: 1.6.13
bindings: SWIG

But I didn't find any easy way to install it(now I'm trying to compile it myself, but there are some problems). Maybe I missed something. Bzr is using subvertpy, maybe it is possible to extract it? Any suggestions?

Does anyone using hgsubversion from Windows?

P.S To compile the library i tried this hint: https://bitbucket.org/tortoisehg/thg-winbuild/issue/14/request-add-subvertpy-to-the-default


UPD: solved initial problem with fail on push. The largefiles(which is distributed with mercurial >= 2.0) extension breaks hgsubversion. Just disabled it and got hgsubversion working.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

执手闯天涯 2024-12-30 01:45:17

结果略有不同

hgsubversion: 6c4d15d8cfbd
Subversion: 1.6.13
bindings: SWIG

嗯,我的 test-repo 与 commit-auth 的

测试 1,在 TortoiseHG 内

  1. 从根克隆 http://mayorat.ursinecorner.ru:8088/svn/Hello/
  2. 提示是来自主干的修订,编辑文件,提交确定
  3. 在推送上我等了很长时间(真的很长< /em>) 在“搜索更改”阶段(没有来自服务器的任何请求)
  4. “停止操作”显示错误消息“服务器拒绝基本身份验证”

测试 2,CLI 模式

仅克隆主干http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/

>hg push --stupid
pushing to http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/
searching for changes
Auth realm: <http://mayorat.ursinecorner.ru:8088> VisualSVN Server
Password for Badger:
Auth realm: <http://mayorat.ursinecorner.ru:8088> VisualSVN Server
Username: lazybadger
Password for lazybadger:
[r32] lazybadger: Cleanups
pulled 1 revisions
saved backup bundle to ...

关于第一个密码请求什么也不能说,第二个和第三个是明显且正确的。 32 个修订版存在并且对每个人都可见

旁注:我的更改并没有打破 SVN 的线性历史

Well, I had slightly different results

hgsubversion: 6c4d15d8cfbd
Subversion: 1.6.13
bindings: SWIG

on my test-repo with commit-auth

Test 1, inside TortoiseHG

  1. Cloned from root http://mayorat.ursinecorner.ru:8088/svn/Hello/
  2. Tip is revision from trunk, edit file, commit OK
  3. On push I got long waiting (really long) on "Searching for changes" stage (without any requests from server)
  4. "Stop operation" show me error message "Basic authentification rejected by server"

Test 2, CLI-mode

Cloned only trunk http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/

>hg push --stupid
pushing to http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/
searching for changes
Auth realm: <http://mayorat.ursinecorner.ru:8088> VisualSVN Server
Password for Badger:
Auth realm: <http://mayorat.ursinecorner.ru:8088> VisualSVN Server
Username: lazybadger
Password for lazybadger:
[r32] lazybadger: Cleanups
pulled 1 revisions
saved backup bundle to ...

Can say nothing about first password request, second and third are obvious and correct. 32 revision exist and visible to everybody

Sidenote: my changes doesn't broke linear history of SVN

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文