【发布时间】:2012-01-30 18:24:51
【问题描述】:
我刚刚在 Windows XP 上克隆了一个 Hg 存储库,hg status 报告了很多(全部?)文件为Modified。可能是什么原因?
E:\myprojects\myproject>hg summary
parent: 206:03856faec803 tip
latest commit message
branch: default
commit: 78 modified
update: (current)
即使在执行hg revert --all --no-backup 之后,hg diff --git 也会报告:
diff --git a/path/to/file1 b/path/to/file1
--- a/path/to/file1
+++ b/path/to/file1
@@ -1,332 +1,332 @@
-line1
-line2
...
-line332
+line1
+line2
...
+line332
diff --git a/path/to/file2 b/path/to/file2
--- a/path/to/file2
+++ b/path/to/file2
@@ -1,231 +1,231 @@
...
line231
\ No newline at end of file
【问题讨论】:
-
你能显示
hg status的结果吗?至少部分输出 -
您能否准确地复制粘贴您的发现(克隆命令、hg 状态命令及其结果...)?
-
真的没有什么花哨的。调用
hg status时,所有文件都直接在克隆 (hg clone ssh://user@server:<port>/repository.hg E:\myproject) 之后显示前导M。