提交 hgsub 时第一个字符被截断
我正在尝试创建一个包含子存储库的水银存储库。我的 .hgsub 文件中有以下条目:
subrepo1 = http://hgserver.domain.com/subrepo1
但是,在提交时,我收到以下消息:
B:\>hg commit
committing subrepository ubrepo1
为什么第一个字符被删除?
I'm trying to create a mercurial repository containing subrepositores. I have the following entry in my .hgsub file:
subrepo1 = http://hgserver.domain.com/subrepo1
However, when committing, I get the following message:
B:\>hg commit
committing subrepository ubrepo1
Why is the first character removed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这显然是一个错误。
但 StackOverflow 并不是 Mercurial bugtracker,您最多能指望的是一种解决方法。相反,您应该向 Mercurial BTS 报告该问题,开发人员实际阅读过该问题,这可能会导致有人真正修复该错误:
https://www.mercurial-scm.org/wiki/BugTracker
但今天是你的幸运日:Mercurial 项目负责人碰巧点击了 Stack Overflow 的链接,得到了令人恼火的是,人们在一个永远不会发送到他的收件箱的地方报告错误,并且没有立即被重定向到正确的位置,因此他提交了一份正确的错误报告,然后修复了该错误:
https://www.mercurial-scm.org/bts/issue3033
原来是这样特定的错误是由一种非常不寻常的模式引起的,即在带有子存储库的 Windows 计算机上的驱动器根目录下提交存储库。它是无害的,修复程序将在 11 月 1 日的下一个版本中发布。
This is clearly a bug.
But StackOverflow is not the Mercurial bugtracker, and the best you can hope for here is a workaround. You should instead report the issue to the Mercurial BTS, which the developers actually read, and which may result in someone actually fixing the bug:
https://www.mercurial-scm.org/wiki/BugTracker
But today is your lucky day: the Mercurial project leader happened to follow a link to Stack Overflow, got annoyed that people were reporting bugs in a place that doesn't ever make it to his inbox and weren't promptly getting redirected to the right place, so he filed a proper bug report, then fixed the bug:
https://www.mercurial-scm.org/bts/issue3033
Turns out this particular bug is caused by the highly unusual pattern of committing to a repo at the root of the drive on a Windows machine with a subrepo. It's harmless and the fix will be in the next release on Nov 1.