使用Mercurial与Cygwin? [英] Using Mercurial with Cygwin?

查看:150
本文介绍了使用Mercurial与Cygwin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直试图使用Mercurial with Cygwin(在Windows上),但会遇到错误,因为Cygwin使用正斜杠,而Mercurial似乎需要反斜杠。是否有解决方法?

We've been trying to use Mercurial with Cygwin (on Windows) but run into an error as Cygwin uses forward slashes and Mercurial seems to require backslashes. Is there a workaround?

问题示例:

hg status 
M src\myfile.java

hg ci src\myfile.java   <-- Error: abort: srcmyfile.java: The system cannot find the file specified

推荐答案

我没有这样的问题,因为我使用两个Mercurial:

I don't have such a problem because I use two Mercurials:


  • mercurial与 TortoiseHG 捆绑在一起,用于Windows cmd shell(通常为I不要直接使用它,但它是由TortoiseHG GUI工具使用。

  • cygwin的mercurial,我可以在cygwin中使用。

  • mercurial bundled with TortoiseHG for use in windows cmd shell (usually I don't use it directly but it's used by TortoiseHG GUI tools).
  • cygwin's mercurial which I can use in cygwin.

您可以安全地使用它们,因为两个版本都将版本历史记录存储在同一个 .hg 文件夹中。 Mercurial存储有关 .hg 文件夹中的路径信息是一些与操作系统无关的方式。

You can safely use both of them because both versions store version history in the same .hg folder. Mercurial stores info about paths in .hg folder is some OS-independent way.

版本的Mercurials。

To be safe use the same version for both Mercurials.

这篇关于使用Mercurial与Cygwin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆