Mercurial 中未添加文件夹
我查看了这个问题: ignoringfolders in Mercurial 提到了如何忽略文件夹,但那就是不是我需要的。
我正在使用 TortoiseHG,在“添加”所有文件夹后,它们仍然显示为“?”而不是“+”。其中的文件显示“+”,但文件夹本身仅显示“?”。这是 Windows XP 上 Mercurial 的问题吗?或者,是我的键盘和椅子之间有问题吗?
I looked at this question: ignoring folders in mercurial that mentions how to ignore a folder, but that's not what I need.
I'm using TortoiseHG and after I "add" all my folders, they show still as "?" instead of "+". The files within them show "+", but the folders themselves just show "?". Is this a problem with Mercurial on Windows XP? Or, is it a problem between my keyboard and my chair?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Mercurial 仅添加文件,并从实际文件名推断文件夹。如果您下拉到命令行并执行
hg status
,您将看到文件夹根本没有列出。您添加的文件夹中的文件将使用A
标记列出,但实际文件夹不会在 hg status 命令中列出。Mercurial adds only files in, and infers the folders from the actual file names. If you drop down to a command line and do
hg status
, you will see that folders are not listed at all. The files within the folder you added will be listed with theA
tag, but the actual folders don't list in a hg status command.您不需要单独添加文件夹(事实上,Mercurial 根本不处理普通文件夹/目录)。只要您的文件在那里,就可以了。
You don't need to add the folders separately (in fact, Mercurial doesn't handle plain folders/directories at all). As long as your files are there, you're fine.