File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
book/09-git-and-other-scms/sections Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ $ hg clone <remote repo URL> /tmp/hg-repo
16
16
----
17
17
18
18
下一步就是创建一个作者映射文件。
19
- Mercurial 对放入到变更集作者字段的内容比 Git 更宽容一些,所以这是一个打扫屋子的好机会 。
20
- 生成映射是 `bash` 终端下的一行命令:
19
+ Mercurial 对放入到变更集作者字段的内容比 Git 更宽容一些,所以这是一个清理的好机会 。
20
+ 只需要用到 `bash` 终端下的一行命令:
21
21
22
22
[source,console]
23
23
----
@@ -59,8 +59,8 @@ $ cd /tmp/converted
59
59
$ /tmp/fast-export/hg-fast-export.sh -r /tmp/hg-repo -A /tmp/authors
60
60
----
61
61
62
- `-r` 标记告诉 hg-fast-export 去哪里寻找我们想要转换的 Mercurial 仓库,`-A` 标记告诉它在哪找到作者映射文件。
63
- 这个脚本分析 Mercurial 变更集然后将它们转换成 Git“fast-import”功能(我们将在之后详细讨论)需要的脚本。
62
+ `-r` 选项告诉 hg-fast-export 去哪里寻找我们想要转换的 Mercurial 仓库,`-A` 标记告诉它在哪找到作者映射文件。
63
+ 这个脚本会分析 Mercurial 变更集然后将它们转换成 Git“fast-import”功能(我们将在之后详细讨论)需要的脚本。
64
64
这会花一点时间(尽管它比通过网格 _更_ 快),输出相当的冗长:
65
65
66
66
[source,console]
You can’t perform that action at this time.
0 commit comments