annotate po/zh.po @ 766:3b33dd6aba87

Merge with http://hg.serpentine.com/mercurial/book
author Dongsheng Song <songdongsheng@live.cn>
date Thu, 02 Apr 2009 09:24:36 +0800
parents 53f179393f5c
children 55e2953f82d6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2 # Simplified Chinese translation for hgbook
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3 # This file is distributed under the same license as the hgbook.
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5 # Authors:
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6 # Dongsheng Song <dongsheng.song@gmail.com>, 2009
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8 # Check translation:
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9 # msgfmt --statistics -c -o zh.mo zh.po
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11 # Please format your translation before commit:
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12 # msgcat --sort-by-file --width=80 -o zh_new.po zh.po
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13 # mv -f zh_new.po zh.po
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15 # Dictionary:
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16 # blame 追溯
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
17 # branch 分支
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
18 # changes 修改
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
19 # changeset 修改集
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
20 # checkout 检出
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
21 # remove 移除(从版本库删除)
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
22 # delete 删除(只从文件系统删除)
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
23 # filelog 文件日志
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
24 # patchset 补丁集
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
25 # pushing to 推到
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
26 # pulling from 拉自,抓取
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
27 # rename 改名
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
28 # repository 版本库
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
29 # revert 恢复
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
30 # revision 版本
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
31 # revlog 版本日志
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
32 # tag 标签
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
33 # tip 顶点
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
34 # undo 撤销
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
35 # unversioned 未版本控制
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
36 # updated 更新到,同步到(适用于旧版本)
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
37 # versioned 受版本控制
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
38 # working copy 工作副本
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
39 # ...
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
40 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
41 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
42 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
43 "Project-Id-Version: hgbook 1.2\n"
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
44 "POT-Creation-Date: 2009-04-02 09:21+0800\n"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
45 "PO-Revision-Date: 2009-03-31 10:12+0800\n"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
46 "Last-Translator: \n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
47 "Language-Team: Simplified Chinese <i18n-zh@googlegroups.com >\n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
48 "MIME-Version: 1.0\n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
49 "Content-Type: text/plain; charset=UTF-8\n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
50 "Content-Transfer-Encoding: 8bit\n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
51 "X-Poedit-Language: Chinese\n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
52 "X-Poedit-Country: CHINA\n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
53 "X-Poedit-SourceCharset: utf-8\n"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
54
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
55 #. type: Content of: <book><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
56 #: ../en/00book.xml:41
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
57 msgid "Mercurial: The Definitive Guide"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
58 msgstr "Mercurial 权威指南"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
59
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
60 #. type: Content of: <book><subtitle>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
61 #: ../en/00book.xml:46
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
62 msgid "Compiled from $rev_id$"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
63 msgstr "编译自 $rev_id$"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
64
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
65 #. type: Content of: <book><bookinfo>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
66 #: ../en/00book.xml:48
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
67 msgid "<edition>1</edition> <isbn>9780596800673</isbn>"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
68 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
69
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
70 #. type: Content of: <book><bookinfo><authorgroup><author><firstname>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
71 #: ../en/00book.xml:52
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
72 msgid "Bryan"
742
61ac4138e086 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 741
diff changeset
73 msgstr "Bryan"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
74
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
75 #. type: Content of: <book><bookinfo><authorgroup><author><surname>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
76 #: ../en/00book.xml:53
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
77 msgid "O'Sullivan"
742
61ac4138e086 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 741
diff changeset
78 msgstr "O'Sullivan"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
79
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
80 #. type: Content of: <book><bookinfo>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
81 #: ../en/00book.xml:57
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
82 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
83 "<editor> <firstname>Mike</firstname> <surname>Loukides</surname> </editor> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
84 "<copyright> <year>2006</year> <year>2007</year> <year>2008</year> <year>2009</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
85 "year> <holder>Bryan O'Sullivan</holder> </copyright>"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
86 msgstr ""
742
61ac4138e086 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 741
diff changeset
87 "<editor> <firstname>Mike</firstname> <surname>Loukides</surname> </editor> "
61ac4138e086 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 741
diff changeset
88 "<copyright> <year>2006</year> <year>2007</year> <year>2008</year> <year>2009</"
61ac4138e086 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 741
diff changeset
89 "year> <holder>Bryan O'Sullivan</holder> </copyright>"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
90
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
91 #. type: Content of: <book><appendix><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
92 #: ../en/appA-cmdref.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
93 msgid "Command reference"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
94 msgstr "命令参考"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
95
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
96 #. type: Content of: <book><appendix><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
97 #: ../en/appA-cmdref.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
98 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
99 "\\cmdref{add}{add files at the next commit} \\optref{add}{I}{include} \\optref"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
100 "{add}{X}{exclude} \\optref{add}{n}{dry-run}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
101 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
102
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
103 #. type: Content of: <book><appendix><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
104 #: ../en/appA-cmdref.xml:12
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
105 msgid "\\cmdref{diff}{print changes in history or working directory}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
106 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
107
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
108 #. type: Content of: <book><appendix><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
109 #: ../en/appA-cmdref.xml:14
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
110 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
111 "Show differences between revisions for the specified files or directories, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
112 "using the unified diff format. For a description of the unified diff format, "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
113 "see <xref linkend=\"sec:mq:patch\"/>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
114 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
115
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
116 #. type: Content of: <book><appendix><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
117 #: ../en/appA-cmdref.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
118 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
119 "By default, this command does not print diffs for files that Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
120 "considers to contain binary data. To control this behaviour, see the <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
121 "role=\"hg-opt-diff\">-a</option> and <option role=\"hg-opt-diff\">--git</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
122 "option> options."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
123 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
124
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
125 #. type: Content of: <book><appendix><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
126 #: ../en/appA-cmdref.xml:23
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
127 msgid "Options"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
128 msgstr "选项"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
129
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
130 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
131 #: ../en/appA-cmdref.xml:25
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
132 msgid "\\loptref{diff}{nodates}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
133 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
134
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
135 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
136 #: ../en/appA-cmdref.xml:27
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
137 msgid "Omit date and time information when printing diff headers."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
138 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
139
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
140 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
141 #: ../en/appA-cmdref.xml:29
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
142 msgid "\\optref{diff}{B}{ignore-blank-lines}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
143 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
144
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
145 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
146 #: ../en/appA-cmdref.xml:31
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
147 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
148 "Do not print changes that only insert or delete blank lines. A line that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
149 "contains only whitespace is not considered blank."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
150 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
151
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
152 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
153 #: ../en/appA-cmdref.xml:35
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
154 msgid "\\optref{diff}{I}{include}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
155 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
156
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
157 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
158 #: ../en/appA-cmdref.xml:38
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
159 msgid "Include files and directories whose names match the given patterns."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
160 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
161
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
162 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
163 #: ../en/appA-cmdref.xml:41
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
164 msgid "\\optref{diff}{X}{exclude}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
165 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
166
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
167 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
168 #: ../en/appA-cmdref.xml:44
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
169 msgid "Exclude files and directories whose names match the given patterns."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
170 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
171
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
172 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
173 #: ../en/appA-cmdref.xml:47
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
174 msgid "\\optref{diff}{a}{text}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
175 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
176
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
177 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
178 #: ../en/appA-cmdref.xml:50
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
179 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
180 "If this option is not specified, <command role=\"hg-cmd\">hg diff</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
181 "will refuse to print diffs for files that it detects as binary. Specifying "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
182 "<option role=\"hg-opt-diff\">-a</option> forces <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
183 "diff</command> to treat all files as text, and generate diffs for all of them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
184 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
185
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
186 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
187 #: ../en/appA-cmdref.xml:56
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
188 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
189 "This option is useful for files that are <quote>mostly text</quote> but have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
190 "a few embedded NUL characters. If you use it on files that contain a lot of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
191 "binary data, its output will be incomprehensible."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
192 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
193
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
194 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
195 #: ../en/appA-cmdref.xml:61
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
196 msgid "\\optref{diff}{b}{ignore-space-change}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
197 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
198
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
199 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
200 #: ../en/appA-cmdref.xml:64
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
201 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
202 "Do not print a line if the only change to that line is in the amount of white "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
203 "space it contains."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
204 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
205
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
206 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
207 #: ../en/appA-cmdref.xml:68
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
208 msgid "\\optref{diff}{g}{git}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
209 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
210
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
211 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
212 #: ../en/appA-cmdref.xml:71
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
213 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
214 "Print <command>git</command>-compatible diffs. XXX reference a format "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
215 "description."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
216 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
217
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
218 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
219 #: ../en/appA-cmdref.xml:75
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
220 msgid "\\optref{diff}{p}{show-function}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
221 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
222
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
223 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
224 #: ../en/appA-cmdref.xml:78
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
225 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
226 "Display the name of the enclosing function in a hunk header, using a simple "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
227 "heuristic. This functionality is enabled by default, so the <option role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
228 "\"hg-opt-diff\">-p</option> option has no effect unless you change the value "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
229 "of the <envar role=\"rc-item-diff\">showfunc</envar> config item, as in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
230 "following example."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
231 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
232
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
233 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
234 #: ../en/appA-cmdref.xml:85
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
235 msgid "\\optref{diff}{r}{rev}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
236 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
237
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
238 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
239 #: ../en/appA-cmdref.xml:88
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
240 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
241 "Specify one or more revisions to compare. The <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
242 "diff</command> command accepts up to two <option role=\"hg-opt-diff\">-r</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
243 "option> options to specify the revisions to compare."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
244 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
245
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
246 #. type: Content of: <book><appendix><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
247 #: ../en/appA-cmdref.xml:94
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
248 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
249 "Display the differences between the parent revision of the working directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
250 "and the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
251 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
252
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
253 #. type: Content of: <book><appendix><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
254 #: ../en/appA-cmdref.xml:98
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
255 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
256 "Display the differences between the specified changeset and the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
257 "directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
258 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
259
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
260 #. type: Content of: <book><appendix><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
261 #: ../en/appA-cmdref.xml:102
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
262 msgid "Display the differences between the two specified changesets."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
263 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
264
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
265 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
266 #: ../en/appA-cmdref.xml:106
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
267 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
268 "You can specify two revisions using either two <option role=\"hg-opt-diff\">-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
269 "r</option> options or revision range notation. For example, the two revision "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
270 "specifications below are equivalent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
271 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
272
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
273 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
274 #: ../en/appA-cmdref.xml:113
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
275 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
276 "When you provide two revisions, Mercurial treats the order of those revisions "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
277 "as significant. Thus, <command role=\"hg-cmd\">hg diff -r10:20</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
278 "will produce a diff that will transform files from their contents as of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
279 "revision 10 to their contents as of revision 20, while <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
280 "\">hg diff -r20:10</command> means the opposite: the diff that will transform "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
281 "files from their revision 20 contents to their revision 10 contents. You "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
282 "cannot reverse the ordering in this way if you are diffing against the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
283 "working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
284 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
285
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
286 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
287 #: ../en/appA-cmdref.xml:123
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
288 msgid "\\optref{diff}{w}{ignore-all-space}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
289 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
290
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
291 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
292 #: ../en/appA-cmdref.xml:126
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
293 msgid "\\cmdref{version}{print version and copyright information}"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
294 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
295
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
296 #. type: Content of: <book><appendix><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
297 #: ../en/appA-cmdref.xml:129
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
298 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
299 "This command displays the version of Mercurial you are running, and its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
300 "copyright license. There are four kinds of version string that you may see."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
301 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
302
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
303 #. type: Content of: <book><appendix><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
304 #: ../en/appA-cmdref.xml:134
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
305 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
306 "The string <quote><literal>unknown</literal></quote>. This version of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
307 "Mercurial was not built in a Mercurial repository, and cannot determine its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
308 "own version."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
309 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
310
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
311 #. type: Content of: <book><appendix><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
312 #: ../en/appA-cmdref.xml:139
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
313 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
314 "A short numeric string, such as <quote><literal>1.1</literal></quote>. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
315 "is a build of a revision of Mercurial that was identified by a specific tag "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
316 "in the repository where it was built. (This doesn't necessarily mean that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
317 "you're running an official release; someone else could have added that tag to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
318 "any revision in the repository where they built Mercurial.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
319 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
320
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
321 #. type: Content of: <book><appendix><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
322 #: ../en/appA-cmdref.xml:147
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
323 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
324 "A hexadecimal string, such as <quote><literal>875489e31abe</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
325 "quote>. This is a build of the given revision of Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
326 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
327
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
328 #. type: Content of: <book><appendix><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
329 #: ../en/appA-cmdref.xml:151
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
330 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
331 "A hexadecimal string followed by a date, such as <quote><literal>875489e31abe"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
332 "+20070205</literal></quote>. This is a build of the given revision of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
333 "Mercurial, where the build repository contained some local changes that had "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
334 "not been committed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
335 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
336
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
337 #. type: Content of: <book><appendix><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
338 #: ../en/appA-cmdref.xml:160
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
339 msgid "Tips and tricks"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
340 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
341
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
342 #. type: Content of: <book><appendix><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
343 #: ../en/appA-cmdref.xml:163
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
344 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
345 "Why do the results of <command role=\"hg-cmd\">hg diff</command> and <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
346 "role=\"hg-cmd\">hg status</command> differ?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
347 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
348 "为什么 <command role=\"hg-cmd\">hg diff</command> 与 <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
349 "\">hg status</command> 的结果不同 ?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
350
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
351 #. type: Content of: <book><appendix><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
352 #: ../en/appA-cmdref.xml:165
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
353 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
354 "When you run the <command role=\"hg-cmd\">hg status</command> command, you'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
355 "see a list of files that Mercurial will record changes for the next time you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
356 "perform a commit. If you run the <command role=\"hg-cmd\">hg diff</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
357 "command, you may notice that it prints diffs for only a <emphasis>subset</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
358 "emphasis> of the files that <command role=\"hg-cmd\">hg status</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
359 "listed. There are two possible reasons for this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
360 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
361
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
362 #. type: Content of: <book><appendix><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
363 #: ../en/appA-cmdref.xml:172
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
364 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
365 "The first is that <command role=\"hg-cmd\">hg status</command> prints some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
366 "kinds of modifications that <command role=\"hg-cmd\">hg diff</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
367 "doesn't normally display. The <command role=\"hg-cmd\">hg diff</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
368 "command normally outputs unified diffs, which don't have the ability to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
369 "represent some changes that Mercurial can track. Most notably, traditional "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
370 "diffs can't represent a change in whether or not a file is executable, but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
371 "Mercurial records this information."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
372 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
373
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
374 #. type: Content of: <book><appendix><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
375 #: ../en/appA-cmdref.xml:180
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
376 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
377 "If you use the <option role=\"hg-opt-diff\">--git</option> option to <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
378 "role=\"hg-cmd\">hg diff</command>, it will display <command>git</command>-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
379 "compatible diffs that <emphasis>can</emphasis> display this extra information."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
380 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
381
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
382 #. type: Content of: <book><appendix><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
383 #: ../en/appA-cmdref.xml:185
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
384 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
385 "The second possible reason that <command role=\"hg-cmd\">hg diff</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
386 "might be printing diffs for a subset of the files displayed by <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
387 "\"hg-cmd\">hg status</command> is that if you invoke it without any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
388 "arguments, <command role=\"hg-cmd\">hg diff</command> prints diffs against "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
389 "the first parent of the working directory. If you have run <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
390 "\"hg-cmd\">hg merge</command> to merge two changesets, but you haven't yet "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
391 "committed the results of the merge, your working directory has two parents "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
392 "(use <command role=\"hg-cmd\">hg parents</command> to see them). While "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
393 "<command role=\"hg-cmd\">hg status</command> prints modifications relative to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
394 "<emphasis>both</emphasis> parents after an uncommitted merge, <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
395 "\"hg-cmd\">hg diff</command> still operates relative only to the first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
396 "parent. You can get it to print diffs relative to the second parent by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
397 "specifying that parent with the <option role=\"hg-opt-diff\">-r</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
398 "option. There is no way to print diffs relative to both parents."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
399 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
400
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
401 #. type: Content of: <book><appendix><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
402 #: ../en/appA-cmdref.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
403 msgid "Generating safe binary diffs"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
404 msgstr "生成安全的二进制差异"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
405
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
406 #. type: Content of: <book><appendix><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
407 #: ../en/appA-cmdref.xml:203
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
408 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
409 "If you use the <option role=\"hg-opt-diff\">-a</option> option to force "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
410 "Mercurial to print diffs of files that are either <quote>mostly text</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
411 "or contain lots of binary data, those diffs cannot subsequently be applied by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
412 "either Mercurial's <command role=\"hg-cmd\">hg import</command> command or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
413 "the system's <command>patch</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
414 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
415
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
416 #. type: Content of: <book><appendix><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
417 #: ../en/appA-cmdref.xml:210
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
418 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
419 "If you want to generate a diff of a binary file that is safe to use as input "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
420 "for <command role=\"hg-cmd\">hg import</command>, use the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
421 "cmd\">hg diff</command>{--git} option when you generate the patch. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
422 "system <command>patch</command> command cannot handle binary patches at all."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
423 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
424
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
425 #. type: Content of: <book><appendix><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
426 #: ../en/appB-mq-ref.xml:5
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
427 msgid "Mercurial Queues reference"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
428 msgstr "Mercurial 队列参考"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
429
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
430 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
431 #: ../en/appB-mq-ref.xml:8
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
432 msgid "MQ command reference"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
433 msgstr "MQ 命令参考"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
434
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
435 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
436 #: ../en/appB-mq-ref.xml:10
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
437 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
438 "For an overview of the commands provided by MQ, use the command <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
439 "\"hg-cmd\">hg help mq</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
440 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
441
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
442 #. type: Content of: <book><appendix><sect1><sect2><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
443 #: ../en/appB-mq-ref.xml:14
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
444 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
445 msgid "<command role=\"hg-ext-mq\">qapplied</command>—print applied patches"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
446 msgstr "<command role=\"hg-ext-mq\">qapplied</command>—显示已应用的补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
447
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
448 #. type: Content of: <book><appendix><sect1><sect2><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
449 #: ../en/appB-mq-ref.xml:17
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
450 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
451 "The <command role=\"hg-ext-mq\">qapplied</command> command prints the current "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
452 "stack of applied patches. Patches are printed in oldest-to-newest order, so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
453 "the last patch in the list is the <quote>top</quote> patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
454 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
455
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
456 #. type: Content of: <book><appendix><sect1><sect2><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
457 #: ../en/appB-mq-ref.xml:24
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
458 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
459 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
460 "<command role=\"hg-ext-mq\">qcommit</command>—commit changes in the queue "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
461 "repository"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
462 msgstr "<command role=\"hg-ext-mq\">qcommit</command>—提交队列中的修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
463
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
464 #. type: Content of: <book><appendix><sect1><sect2><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
465 #: ../en/appB-mq-ref.xml:27
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
466 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
467 "The <command role=\"hg-ext-mq\">qcommit</command> command commits any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
468 "outstanding changes in the <filename role=\"special\" class=\"directory\">.hg/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
469 "patches</filename> repository. This command only works if the <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
470 "\"special\" class=\"directory\">.hg/patches</filename> directory is a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
471 "repository, i.e. you created the directory using <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
472 "qinit <option role=\"hg-ext-mq-cmd-qinit-opt\">-c</option></command> or ran "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
473 "<command role=\"hg-cmd\">hg init</command> in the directory after running "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
474 "<command role=\"hg-ext-mq\">qinit</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
475 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
476
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
477 #. type: Content of: <book><appendix><sect1><sect2><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
478 #: ../en/appB-mq-ref.xml:39
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
479 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
480 "This command is shorthand for <command role=\"hg-cmd\">hg commit --cwd .hg/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
481 "patches</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
482 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
483
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
484 #. type: Content of: <book><appendix><sect1><sect2><title>
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
485 #: ../en/appB-mq-ref.xml:43
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
486 #, fuzzy
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
487 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
488 "<command role=\"hg-ext-mq\">qdelete</command>—delete a patch from the "
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
489 "<filename role=\"special\">series</filename> file"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
490 msgstr ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
491 "<command role=\"hg-ext-mq\">qdelete</command>—从文件 <filename role=\"special"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
492 "\">series</filename> 中删除补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
493
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
494 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
495 #: ../en/appB-mq-ref.xml:48
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
496 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
497 "The <command role=\"hg-ext-mq\">qdelete</command> command removes the entry "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
498 "for a patch from the <filename role=\"special\">series</filename> file in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
499 "<filename role=\"special\" class=\"directory\">.hg/patches</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
500 "directory. It does not pop the patch if the patch is already applied. By "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
501 "default, it does not delete the patch file; use the <option role=\"hg-ext-mq-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
502 "cmd-qdel-opt\">-f</option> option to do that."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
503 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
504
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
505 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
506 #: ../en/appB-mq-ref.xml:57 ../en/appB-mq-ref.xml:99 ../en/appB-mq-ref.xml:157
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
507 #: ../en/appB-mq-ref.xml:197 ../en/appB-mq-ref.xml:264
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
508 #: ../en/appB-mq-ref.xml:335 ../en/appB-mq-ref.xml:404
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
509 #: ../en/appB-mq-ref.xml:497
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
510 msgid "Options:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
511 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
512
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
513 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
514 #: ../en/appB-mq-ref.xml:59
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
515 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
516 "<option role=\"hg-ext-mq-cmd-qdel-opt\">-f</option>: Delete the patch file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
517 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
518
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
519 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
520 #: ../en/appB-mq-ref.xml:66
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
521 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
522 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
523 "<command role=\"hg-ext-mq\">qdiff</command>—print a diff of the topmost "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
524 "applied patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
525 msgstr "<command role=\"hg-ext-mq\">qdiff</command>—显示最新应用补丁的差异"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
526
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
527 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
528 #: ../en/appB-mq-ref.xml:69
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
529 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
530 "The <command role=\"hg-ext-mq\">qdiff</command> command prints a diff of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
531 "topmost applied patch. It is equivalent to <command role=\"hg-cmd\">hg diff -"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
532 "r-2:-1</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
533 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
534
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
535 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
536 #: ../en/appB-mq-ref.xml:75
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
537 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
538 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
539 "<command role=\"hg-ext-mq\">qfold</command>—merge (<quote>fold</quote>) "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
540 "several patches into one"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
541 msgstr ""
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
542 "<command role=\"hg-ext-mq\">qfold</command>—将多个补丁合并(<quote>折叠</"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
543 "quote>)成一个"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
544
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
545 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
546 #: ../en/appB-mq-ref.xml:78
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
547 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
548 "The <command role=\"hg-ext-mq\">qfold</command> command merges multiple "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
549 "patches into the topmost applied patch, so that the topmost applied patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
550 "makes the union of all of the changes in the patches in question."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
551 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
552
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
553 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
554 #: ../en/appB-mq-ref.xml:83
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
555 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
556 "The patches to fold must not be applied; <command role=\"hg-ext-mq\">qfold</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
557 "command> will exit with an error if any is. The order in which patches are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
558 "folded is significant; <command role=\"hg-cmd\">hg qfold a b</command> means "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
559 "<quote>apply the current topmost patch, followed by <literal>a</literal>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
560 "followed by <literal>b</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
561 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
562
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
563 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
564 #: ../en/appB-mq-ref.xml:91
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
565 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
566 "The comments from the folded patches are appended to the comments of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
567 "destination patch, with each block of comments separated by three asterisk "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
568 "(<quote><literal>*</literal></quote>) characters. Use the <option role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
569 "ext-mq-cmd-qfold-opt\">-e</option> option to edit the commit message for the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
570 "combined patch/changeset after the folding has completed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
571 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
572
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
573 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
574 #: ../en/appB-mq-ref.xml:101
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
575 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
576 "<option role=\"hg-ext-mq-cmd-qfold-opt\">-e</option>: Edit the commit message "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
577 "and patch description for the newly folded patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
578 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
579
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
580 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
581 #: ../en/appB-mq-ref.xml:106
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
582 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
583 "<option role=\"hg-ext-mq-cmd-qfold-opt\">-l</option>: Use the contents of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
584 "given file as the new commit message and patch description for the folded "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
585 "patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
586 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
587
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
588 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
589 #: ../en/appB-mq-ref.xml:111
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
590 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
591 "<option role=\"hg-ext-mq-cmd-qfold-opt\">-m</option>: Use the given text as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
592 "the new commit message and patch description for the folded patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
593 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
594
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
595 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
596 #: ../en/appB-mq-ref.xml:119
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
597 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
598 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
599 "<command role=\"hg-ext-mq\">qheader</command>—display the header/description "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
600 "of a patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
601 msgstr "<command role=\"hg-ext-mq\">qheader</command>—显示补丁头部描述"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
602
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
603 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
604 #: ../en/appB-mq-ref.xml:123
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
605 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
606 "The <command role=\"hg-ext-mq\">qheader</command> command prints the header, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
607 "or description, of a patch. By default, it prints the header of the topmost "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
608 "applied patch. Given an argument, it prints the header of the named patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
609 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
610
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
611 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
612 #: ../en/appB-mq-ref.xml:130
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
613 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
614 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
615 "<command role=\"hg-ext-mq\">qimport</command>—import a third-party patch into "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
616 "the queue"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
617 msgstr "<command role=\"hg-ext-mq\">qimport</command>—将第三方补丁导入队列"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
618
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
619 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
620 #: ../en/appB-mq-ref.xml:133
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
621 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
622 "The <command role=\"hg-ext-mq\">qimport</command> command adds an entry for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
623 "an external patch to the <filename role=\"special\">series</filename> file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
624 "and copies the patch into the <filename role=\"special\" class=\"directory\">."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
625 "hg/patches</filename> directory. It adds the entry immediately after the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
626 "topmost applied patch, but does not push the patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
627 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
628
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
629 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
630 #: ../en/appB-mq-ref.xml:141
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
631 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
632 "If the <filename role=\"special\" class=\"directory\">.hg/patches</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
633 "directory is a repository, <command role=\"hg-ext-mq\">qimport</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
634 "automatically does an <command role=\"hg-cmd\">hg add</command> of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
635 "imported patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
636 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
637
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
638 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
639 #: ../en/appB-mq-ref.xml:149
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
640 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
641 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
642 "<command role=\"hg-ext-mq\">qinit</command>—prepare a repository to work with "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
643 "MQ"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
644 msgstr "<command role=\"hg-ext-mq\">qinit</command>—为使用 MQ 配置版本库"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
645
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
646 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
647 #: ../en/appB-mq-ref.xml:152
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
648 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
649 "The <command role=\"hg-ext-mq\">qinit</command> command prepares a repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
650 "to work with MQ. It creates a directory called <filename role=\"special\" "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
651 "class=\"directory\">.hg/patches</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
652 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
653
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
654 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
655 #: ../en/appB-mq-ref.xml:159
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
656 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
657 "<option role=\"hg-ext-mq-cmd-qinit-opt\">-c</option>: Create <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
658 "\"special\" class=\"directory\">.hg/patches</filename> as a repository in its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
659 "own right. Also creates a <filename role=\"special\">.hgignore</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
660 "file that will ignore the <filename role=\"special\">status</filename> file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
661 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
662
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
663 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
664 #: ../en/appB-mq-ref.xml:169
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
665 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
666 "When the <filename role=\"special\" class=\"directory\">.hg/patches</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
667 "filename> directory is a repository, the <command role=\"hg-ext-mq\">qimport</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
668 "command> and <command role=\"hg-ext-mq\">qnew</command> commands "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
669 "automatically <command role=\"hg-cmd\">hg add</command> new patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
670 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
671
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
672 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
673 #: ../en/appB-mq-ref.xml:178
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
674 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
675 msgid "<command role=\"hg-ext-mq\">qnew</command>—create a new patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
676 msgstr "<command role=\"hg-ext-mq\">qnew</command>—创建新补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
677
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
678 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
679 #: ../en/appB-mq-ref.xml:181
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
680 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
681 "The <command role=\"hg-ext-mq\">qnew</command> command creates a new patch. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
682 "It takes one mandatory argument, the name to use for the patch file. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
683 "newly created patch is created empty by default. It is added to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
684 "<filename role=\"special\">series</filename> file after the current topmost "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
685 "applied patch, and is immediately pushed on top of that patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
686 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
687
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
688 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
689 #: ../en/appB-mq-ref.xml:189
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
690 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
691 "If <command role=\"hg-ext-mq\">qnew</command> finds modified files in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
692 "working directory, it will refuse to create a new patch unless the <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
693 "role=\"hg-ext-mq-cmd-qnew-opt\">-f</option> option is used (see below). This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
694 "behaviour allows you to <command role=\"hg-ext-mq\">qrefresh</command> your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
695 "topmost applied patch before you apply a new patch on top of it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
696 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
697
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
698 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
699 #: ../en/appB-mq-ref.xml:199
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
700 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
701 "<option role=\"hg-ext-mq-cmd-qnew-opt\">-f</option>: Create a new patch if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
702 "the contents of the working directory are modified. Any outstanding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
703 "modifications are added to the newly created patch, so after this command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
704 "completes, the working directory will no longer be modified."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
705 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
706
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
707 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
708 #: ../en/appB-mq-ref.xml:206
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
709 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
710 "<option role=\"hg-ext-mq-cmd-qnew-opt\">-m</option>: Use the given text as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
711 "the commit message. This text will be stored at the beginning of the patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
712 "file, before the patch data."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
713 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
714
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
715 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
716 #: ../en/appB-mq-ref.xml:215
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
717 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
718 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
719 "<command role=\"hg-ext-mq\">qnext</command>—print the name of the next patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
720 msgstr "<command role=\"hg-ext-mq\">qnext</command>—显示下个补丁的名称"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
721
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
722 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
723 #: ../en/appB-mq-ref.xml:218
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
724 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
725 "The <command role=\"hg-ext-mq\">qnext</command> command prints the name name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
726 "of the next patch in the <filename role=\"special\">series</filename> file "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
727 "after the topmost applied patch. This patch will become the topmost applied "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
728 "patch if you run <command role=\"hg-ext-mq\">qpush</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
729 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
730
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
731 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
732 #: ../en/appB-mq-ref.xml:227
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
733 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
734 msgid "<command role=\"hg-ext-mq\">qpop</command>—pop patches off the stack"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
735 msgstr "<command role=\"hg-ext-mq\">qpop</command>—删除堆栈顶部的补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
736
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
737 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
738 #: ../en/appB-mq-ref.xml:230
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
739 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
740 "The <command role=\"hg-ext-mq\">qpop</command> command removes applied "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
741 "patches from the top of the stack of applied patches. By default, it removes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
742 "only one patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
743 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
744
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
745 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
746 #: ../en/appB-mq-ref.xml:234
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
747 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
748 "This command removes the changesets that represent the popped patches from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
749 "the repository, and updates the working directory to undo the effects of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
750 "patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
751 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
752
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
753 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
754 #: ../en/appB-mq-ref.xml:238
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
755 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
756 "This command takes an optional argument, which it uses as the name or index "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
757 "of the patch to pop to. If given a name, it will pop patches until the named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
758 "patch is the topmost applied patch. If given a number, <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
759 "ext-mq\">qpop</command> treats the number as an index into the entries in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
760 "series file, counting from zero (empty lines and lines containing only "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
761 "comments do not count). It pops patches until the patch identified by the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
762 "given index is the topmost applied patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
763 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
764
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
765 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
766 #: ../en/appB-mq-ref.xml:248
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
767 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
768 "The <command role=\"hg-ext-mq\">qpop</command> command does not read or write "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
769 "patches or the <filename role=\"special\">series</filename> file. It is thus "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
770 "safe to <command role=\"hg-ext-mq\">qpop</command> a patch that you have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
771 "removed from the <filename role=\"special\">series</filename> file, or a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
772 "patch that you have renamed or deleted entirely. In the latter two cases, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
773 "use the name of the patch as it was when you applied it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
774 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
775
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
776 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
777 #: ../en/appB-mq-ref.xml:257
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
778 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
779 "By default, the <command role=\"hg-ext-mq\">qpop</command> command will not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
780 "pop any patches if the working directory has been modified. You can override "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
781 "this behaviour using the <option role=\"hg-ext-mq-cmd-qpop-opt\">-f</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
782 "option, which reverts all modifications in the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
783 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
784
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
785 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
786 #: ../en/appB-mq-ref.xml:266
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
787 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
788 "<option role=\"hg-ext-mq-cmd-qpop-opt\">-a</option>: Pop all applied "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
789 "patches. This returns the repository to its state before you applied any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
790 "patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
791 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
792
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
793 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
794 #: ../en/appB-mq-ref.xml:271
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
795 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
796 "<option role=\"hg-ext-mq-cmd-qpop-opt\">-f</option>: Forcibly revert any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
797 "modifications to the working directory when popping."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
798 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
799
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
800 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
801 #: ../en/appB-mq-ref.xml:276
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
802 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
803 "<option role=\"hg-ext-mq-cmd-qpop-opt\">-n</option>: Pop a patch from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
804 "named queue."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
805 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
806
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
807 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
808 #: ../en/appB-mq-ref.xml:281
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
809 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
810 "The <command role=\"hg-ext-mq\">qpop</command> command removes one line from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
811 "the end of the <filename role=\"special\">status</filename> file for each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
812 "patch that it pops."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
813 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
814
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
815 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
816 #: ../en/appB-mq-ref.xml:288
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
817 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
818 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
819 "<command role=\"hg-ext-mq\">qprev</command>—print the name of the previous "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
820 "patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
821 msgstr "<command role=\"hg-ext-mq\">qprev</command>—显示上个补丁的名称"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
822
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
823 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
824 #: ../en/appB-mq-ref.xml:291
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
825 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
826 "The <command role=\"hg-ext-mq\">qprev</command> command prints the name of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
827 "the patch in the <filename role=\"special\">series</filename> file that comes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
828 "before the topmost applied patch. This will become the topmost applied patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
829 "if you run <command role=\"hg-ext-mq\">qpop</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
830 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
831
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
832 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
833 #: ../en/appB-mq-ref.xml:300
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
834 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
835 msgid "<command role=\"hg-ext-mq\">qpush</command>—push patches onto the stack"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
836 msgstr "<command role=\"hg-ext-mq\">qpush</command>—增加补丁到堆栈"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
837
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
838 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
839 #: ../en/appB-mq-ref.xml:303
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
840 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
841 "The <command role=\"hg-ext-mq\">qpush</command> command adds patches onto the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
842 "applied stack. By default, it adds only one patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
843 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
844
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
845 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
846 #: ../en/appB-mq-ref.xml:307
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
847 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
848 "This command creates a new changeset to represent each applied patch, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
849 "updates the working directory to apply the effects of the patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
850 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
851
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
852 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
853 #: ../en/appB-mq-ref.xml:311
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
854 msgid "The default data used when creating a changeset are as follows:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
855 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
856
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
857 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
858 #: ../en/appB-mq-ref.xml:314
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
859 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
860 "The commit date and time zone are the current date and time zone. Because "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
861 "these data are used to compute the identity of a changeset, this means that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
862 "if you <command role=\"hg-ext-mq\">qpop</command> a patch and <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
863 "\"hg-ext-mq\">qpush</command> it again, the changeset that you push will have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
864 "a different identity than the changeset you popped."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
865 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
866
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
867 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
868 #: ../en/appB-mq-ref.xml:322
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
869 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
870 "The author is the same as the default used by the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
871 "commit</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
872 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
873
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
874 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
875 #: ../en/appB-mq-ref.xml:326
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
876 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
877 "The commit message is any text from the patch file that comes before the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
878 "first diff header. If there is no such text, a default commit message is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
879 "used that identifies the name of the patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
880 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
881
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
882 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
883 #: ../en/appB-mq-ref.xml:331
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
884 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
885 "If a patch contains a Mercurial patch header (XXX add link), the information "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
886 "in the patch header overrides these defaults."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
887 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
888
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
889 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
890 #: ../en/appB-mq-ref.xml:337
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
891 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
892 "<option role=\"hg-ext-mq-cmd-qpush-opt\">-a</option>: Push all unapplied "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
893 "patches from the <filename role=\"special\">series</filename> file until "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
894 "there are none left to push."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
895 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
896
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
897 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
898 #: ../en/appB-mq-ref.xml:343
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
899 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
900 "<option role=\"hg-ext-mq-cmd-qpush-opt\">-l</option>: Add the name of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
901 "patch to the end of the commit message."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
902 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
903
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
904 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
905 #: ../en/appB-mq-ref.xml:347
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
906 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
907 "<option role=\"hg-ext-mq-cmd-qpush-opt\">-m</option>: If a patch fails to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
908 "apply cleanly, use the entry for the patch in another saved queue to compute "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
909 "the parameters for a three-way merge, and perform a three-way merge using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
910 "normal Mercurial merge machinery. Use the resolution of the merge as the new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
911 "patch content."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
912 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
913
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
914 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
915 #: ../en/appB-mq-ref.xml:355
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
916 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
917 "<option role=\"hg-ext-mq-cmd-qpush-opt\">-n</option>: Use the named queue if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
918 "merging while pushing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
919 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
920
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
921 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
922 #: ../en/appB-mq-ref.xml:360
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
923 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
924 "The <command role=\"hg-ext-mq\">qpush</command> command reads, but does not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
925 "modify, the <filename role=\"special\">series</filename> file. It appends "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
926 "one line to the <command role=\"hg-cmd\">hg status</command> file for each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
927 "patch that it pushes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
928 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
929
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
930 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
931 #: ../en/appB-mq-ref.xml:368
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
932 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
933 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
934 "<command role=\"hg-ext-mq\">qrefresh</command>—update the topmost applied "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
935 "patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
936 msgstr "<command role=\"hg-ext-mq\">qrefresh</command>—更新最新的补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
937
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
938 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
939 #: ../en/appB-mq-ref.xml:372
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
940 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
941 "The <command role=\"hg-ext-mq\">qrefresh</command> command updates the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
942 "topmost applied patch. It modifies the patch, removes the old changeset that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
943 "represented the patch, and creates a new changeset to represent the modified "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
944 "patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
945 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
946
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
947 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
948 #: ../en/appB-mq-ref.xml:378
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
949 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
950 "The <command role=\"hg-ext-mq\">qrefresh</command> command looks for the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
951 "following modifications:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
952 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
953
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
954 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
955 #: ../en/appB-mq-ref.xml:381
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
956 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
957 "Changes to the commit message, i.e. the text before the first diff header in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
958 "the patch file, are reflected in the new changeset that represents the patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
959 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
960
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
961 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
962 #: ../en/appB-mq-ref.xml:386
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
963 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
964 "Modifications to tracked files in the working directory are added to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
965 "patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
966 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
967
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
968 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
969 #: ../en/appB-mq-ref.xml:389
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
970 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
971 "Changes to the files tracked using <command role=\"hg-cmd\">hg add</command>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
972 "<command role=\"hg-cmd\">hg copy</command>, <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
973 "remove</command>, or <command role=\"hg-cmd\">hg rename</command>. Added "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
974 "files and copy and rename destinations are added to the patch, while removed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
975 "files and rename sources are removed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
976 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
977
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
978 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
979 #: ../en/appB-mq-ref.xml:398
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
980 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
981 "Even if <command role=\"hg-ext-mq\">qrefresh</command> detects no changes, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
982 "still recreates the changeset that represents the patch. This causes the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
983 "identity of the changeset to differ from the previous changeset that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
984 "identified the patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
985 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
986
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
987 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
988 #: ../en/appB-mq-ref.xml:406
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
989 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
990 "<option role=\"hg-ext-mq-cmd-qrefresh-opt\">-e</option>: Modify the commit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
991 "and patch description, using the preferred text editor."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
992 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
993
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
994 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
995 #: ../en/appB-mq-ref.xml:411
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
996 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
997 "<option role=\"hg-ext-mq-cmd-qrefresh-opt\">-m</option>: Modify the commit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
998 "message and patch description, using the given text."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
999 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1000
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1001 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1002 #: ../en/appB-mq-ref.xml:416
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1003 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1004 "<option role=\"hg-ext-mq-cmd-qrefresh-opt\">-l</option>: Modify the commit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1005 "message and patch description, using text from the given file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1006 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1007
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1008 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1009 #: ../en/appB-mq-ref.xml:424
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1010 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1011 msgid "<command role=\"hg-ext-mq\">qrename</command>—rename a patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1012 msgstr "<command role=\"hg-ext-mq\">qrename</command>—改名补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1013
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1014 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1015 #: ../en/appB-mq-ref.xml:427
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1016 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1017 "The <command role=\"hg-ext-mq\">qrename</command> command renames a patch, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1018 "and changes the entry for the patch in the <filename role=\"special\">series</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1019 "filename> file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1020 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1021
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1022 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1023 #: ../en/appB-mq-ref.xml:431
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1024 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1025 "With a single argument, <command role=\"hg-ext-mq\">qrename</command> renames "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1026 "the topmost applied patch. With two arguments, it renames its first argument "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1027 "to its second."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1028 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1029
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1030 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1031 #: ../en/appB-mq-ref.xml:438
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1032 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1033 msgid "<command role=\"hg-ext-mq\">qrestore</command>—restore saved queue state"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1034 msgstr "<command role=\"hg-ext-mq\">qrestore</command>—恢复保存的队列"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1035
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1036 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1037 #: ../en/appB-mq-ref.xml:442
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1038 msgid "XXX No idea what this does."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1039 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1040
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1041 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1042 #: ../en/appB-mq-ref.xml:446
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1043 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1044 msgid "<command role=\"hg-ext-mq\">qsave</command>—save current queue state"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1045 msgstr "<command role=\"hg-ext-mq\">qsave</command>—保存当前的队列状态"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1046
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1047 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1048 #: ../en/appB-mq-ref.xml:449
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1049 msgid "XXX Likewise."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1050 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1051
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1052 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1053 #: ../en/appB-mq-ref.xml:453
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1054 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1055 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1056 "<command role=\"hg-ext-mq\">qseries</command>—print the entire patch series"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1057 msgstr "<command role=\"hg-ext-mq\">qseries</command>—显示补丁序列"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1058
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1059 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1060 #: ../en/appB-mq-ref.xml:456
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1061 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1062 "The <command role=\"hg-ext-mq\">qseries</command> command prints the entire "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1063 "patch series from the <filename role=\"special\">series</filename> file. It "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1064 "prints only patch names, not empty lines or comments. It prints in order "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1065 "from first to be applied to last."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1066 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1067
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1068 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1069 #: ../en/appB-mq-ref.xml:464
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1070 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1071 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1072 "<command role=\"hg-ext-mq\">qtop</command>—print the name of the current patch"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1073 msgstr "<command role=\"hg-ext-mq\">qtop</command>—显示当前补丁的名称"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1074
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1075 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1076 #: ../en/appB-mq-ref.xml:467
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1077 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1078 "The <command role=\"hg-ext-mq\">qtop</command> prints the name of the topmost "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1079 "currently applied patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1080 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1081
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1082 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1083 #: ../en/appB-mq-ref.xml:472
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1084 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1085 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1086 "<command role=\"hg-ext-mq\">qunapplied</command>—print patches not yet applied"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1087 msgstr "<command role=\"hg-ext-mq\">qunapplied</command>—显示尚未应用的补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1088
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1089 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1090 #: ../en/appB-mq-ref.xml:476
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1091 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1092 "The <command role=\"hg-ext-mq\">qunapplied</command> command prints the names "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1093 "of patches from the <filename role=\"special\">series</filename> file that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1094 "are not yet applied. It prints them in order from the next patch that will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1095 "be pushed to the last."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1096 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1097
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1098 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1099 #: ../en/appB-mq-ref.xml:484
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1100 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1101 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1102 "<command role=\"hg-cmd\">hg strip</command>—remove a revision and descendants"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
1103 msgstr "<command role=\"hg-cmd\">hg strip</command>—删除一个版本及其后继"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1104
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1105 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1106 #: ../en/appB-mq-ref.xml:487
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1107 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1108 "The <command role=\"hg-cmd\">hg strip</command> command removes a revision, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1109 "and all of its descendants, from the repository. It undoes the effects of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1110 "the removed revisions from the repository, and updates the working directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1111 "to the first parent of the removed revision."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1112 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1113
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1114 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1115 #: ../en/appB-mq-ref.xml:493
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1116 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1117 "The <command role=\"hg-cmd\">hg strip</command> command saves a backup of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1118 "removed changesets in a bundle, so that they can be reapplied if removed in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1119 "error."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1120 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1121
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1122 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1123 #: ../en/appB-mq-ref.xml:499
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1124 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1125 "<option role=\"hg-opt-strip\">-b</option>: Save unrelated changesets that are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1126 "intermixed with the stripped changesets in the backup bundle."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1127 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1128
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1129 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1130 #: ../en/appB-mq-ref.xml:503
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1131 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1132 "<option role=\"hg-opt-strip\">-f</option>: If a branch has multiple heads, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1133 "remove all heads. XXX This should be renamed, and use <literal>-f</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1134 "to strip revs when there are pending changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1135 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1136
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1137 #. type: Content of: <book><appendix><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1138 #: ../en/appB-mq-ref.xml:508
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1139 msgid "<option role=\"hg-opt-strip\">-n</option>: Do not save a backup bundle."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1140 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1141
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1142 #. type: Content of: <book><appendix><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1143 #: ../en/appB-mq-ref.xml:515
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1144 msgid "MQ file reference"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1145 msgstr "MQ 文件参考"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1146
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1147 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1148 #: ../en/appB-mq-ref.xml:518
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1149 msgid "The <filename role=\"special\">series</filename> file"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1150 msgstr "<filename role=\"special\">序列</filename>文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1151
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1152 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1153 #: ../en/appB-mq-ref.xml:521
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1154 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1155 "The <filename role=\"special\">series</filename> file contains a list of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1156 "names of all patches that MQ can apply. It is represented as a list of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1157 "names, with one name saved per line. Leading and trailing white space in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1158 "each line are ignored."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1159 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1160
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1161 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1162 #: ../en/appB-mq-ref.xml:527
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1163 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1164 "Lines may contain comments. A comment begins with the <quote><literal>#</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1165 "literal></quote> character, and extends to the end of the line. Empty lines, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1166 "and lines that contain only comments, are ignored."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1167 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1168
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1169 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1170 #: ../en/appB-mq-ref.xml:532
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1171 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1172 "You will often need to edit the <filename role=\"special\">series</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1173 "file by hand, hence the support for comments and empty lines noted above. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1174 "For example, you can comment out a patch temporarily, and <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1175 "ext-mq\">qpush</command> will skip over that patch when applying patches. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1176 "You can also change the order in which patches are applied by reordering "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1177 "their entries in the <filename role=\"special\">series</filename> file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1178 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1179
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1180 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1181 #: ../en/appB-mq-ref.xml:541
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1182 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1183 "Placing the <filename role=\"special\">series</filename> file under revision "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1184 "control is also supported; it is a good idea to place all of the patches that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1185 "it refers to under revision control, as well. If you create a patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1186 "directory using the <option role=\"hg-ext-mq-cmd-qinit-opt\">-c</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1187 "option to <command role=\"hg-ext-mq\">qinit</command>, this will be done for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1188 "you automatically."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1189 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1190
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1191 #. type: Content of: <book><appendix><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1192 #: ../en/appB-mq-ref.xml:551
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1193 msgid "The <filename role=\"special\">status</filename> file"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1194 msgstr "<filename role=\"special\">状态</filename>文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1195
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1196 #. type: Content of: <book><appendix><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
1197 #: ../en/appB-mq-ref.xml:554
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1198 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1199 "The <filename role=\"special\">status</filename> file contains the names and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1200 "changeset hashes of all patches that MQ currently has applied. Unlike the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1201 "<filename role=\"special\">series</filename> file, this file is not intended "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1202 "for editing. You should not place this file under revision control, or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1203 "modify it in any way. It is used by MQ strictly for internal book-keeping."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1204 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1205
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1206 #. type: Content of: <book><appendix><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1207 #: ../en/appC-srcinstall.xml:5
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1208 msgid "Installing Mercurial from source"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1209 msgstr "从源代码安装 Mercurial"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1210
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1211 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1212 #: ../en/appC-srcinstall.xml:8
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1213 msgid "On a Unix-like system"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1214 msgstr "类 Unix 系统"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1215
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1216 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1217 #: ../en/appC-srcinstall.xml:10
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1218 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1219 "If you are using a Unix-like system that has a sufficiently recent version of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1220 "Python (2.3 or newer) available, it is easy to install Mercurial from source."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1221 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1222
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1223 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1224 #: ../en/appC-srcinstall.xml:14
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1225 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1226 "Download a recent source tarball from <ulink url=\"http://www.selenic.com/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1227 "mercurial/download\">http://www.selenic.com/mercurial/download</ulink>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1228 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1229
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1230 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1231 #: ../en/appC-srcinstall.xml:17
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1232 msgid "Unpack the tarball:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1233 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1234
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1235 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1236 #: ../en/appC-srcinstall.xml:20
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1237 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1238 "Go into the source directory and run the installer script. This will build "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1239 "Mercurial and install it in your home directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1240 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1241
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1242 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1243 #: ../en/appC-srcinstall.xml:27
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1244 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1245 "Once the install finishes, Mercurial will be in the <literal>bin</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1246 "subdirectory of your home directory. Don't forget to make sure that this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1247 "directory is present in your shell's search path."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1248 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1249
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1250 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1251 #: ../en/appC-srcinstall.xml:32
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1252 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1253 "You will probably need to set the <envar>PYTHONPATH</envar> environment "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1254 "variable so that the Mercurial executable can find the rest of the Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1255 "packages. For example, on my laptop, I have set it to <literal>/home/bos/lib/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1256 "python</literal>. The exact path that you will need to use depends on how "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1257 "Python was built for your system, but should be easy to figure out. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1258 "you're uncertain, look through the output of the installer script above, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1259 "see where the contents of the <literal>mercurial</literal> directory were "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1260 "installed to."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1261 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1262
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1263 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1264 #: ../en/appC-srcinstall.xml:44
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1265 msgid "On Windows"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1266 msgstr "Windows 系统"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1267
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1268 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1269 #: ../en/appC-srcinstall.xml:46
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1270 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1271 "Building and installing Mercurial on Windows requires a variety of tools, a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1272 "fair amount of technical knowledge, and considerable patience. I very much "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1273 "<emphasis>do not recommend</emphasis> this route if you are a <quote>casual "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1274 "user</quote>. Unless you intend to hack on Mercurial, I strongly suggest "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1275 "that you use a binary package instead."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1276 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1277
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1278 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1279 #: ../en/appC-srcinstall.xml:53
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1280 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1281 "If you are intent on building Mercurial from source on Windows, follow the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1282 "<quote>hard way</quote> directions on the Mercurial wiki at <ulink url="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1283 "\"http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall\">http://www."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1284 "selenic.com/mercurial/wiki/index.cgi/WindowsInstall</ulink>, and expect the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1285 "process to involve a lot of fiddly work."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1286 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1287
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1288 #. type: Content of: <book><appendix><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1289 #: ../en/appD-license.xml:5
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1290 msgid "Open Publication License"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1291 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1292
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1293 #. type: Content of: <book><appendix><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1294 #: ../en/appD-license.xml:7
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1295 msgid "Version 1.0, 8 June 1999"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1296 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1297
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1298 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1299 #: ../en/appD-license.xml:10
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1300 msgid "Requirements on both unmodified and modified versions"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1301 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1302
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1303 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1304 #: ../en/appD-license.xml:13
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1305 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1306 "The Open Publication works may be reproduced and distributed in whole or in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1307 "part, in any medium physical or electronic, provided that the terms of this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1308 "license are adhered to, and that this license or an incorporation of it by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1309 "reference (with any options elected by the author(s) and/or publisher) is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1310 "displayed in the reproduction."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1311 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1312
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1313 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1314 #: ../en/appD-license.xml:20
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1315 msgid "Proper form for an incorporation by reference is as follows:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1316 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1317
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1318 #. type: Content of: <book><appendix><sect1><blockquote><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1319 #: ../en/appD-license.xml:24
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1320 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1321 "Copyright (c) <emphasis>year</emphasis> by <emphasis>author's name or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1322 "designee</emphasis>. This material may be distributed only subject to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1323 "terms and conditions set forth in the Open Publication License, v<emphasis>x."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1324 "y</emphasis> or later (the latest version is presently available at <ulink "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1325 "url=\"http://www.opencontent.org/openpub/\">http://www.opencontent.org/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1326 "openpub/</ulink>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1327 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1328
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1329 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1330 #: ../en/appD-license.xml:33
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1331 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1332 "The reference must be immediately followed with any options elected by the "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
1333 "author(s) and/or publisher of the document (see <xref linkend=\"sec:opl:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
1334 "options\"/>)."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1335 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1336
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1337 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1338 #: ../en/appD-license.xml:37
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1339 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1340 "Commercial redistribution of Open Publication-licensed material is permitted."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1341 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1342
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1343 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1344 #: ../en/appD-license.xml:40
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1345 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1346 "Any publication in standard (paper) book form shall require the citation of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1347 "the original publisher and author. The publisher and author's names shall "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1348 "appear on all outer surfaces of the book. On all outer surfaces of the book "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1349 "the original publisher's name shall be as large as the title of the work and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1350 "cited as possessive with respect to the title."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1351 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1352
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1353 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1354 #: ../en/appD-license.xml:49
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1355 msgid "Copyright"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1356 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1357
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1358 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1359 #: ../en/appD-license.xml:51
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1360 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1361 "The copyright to each Open Publication is owned by its author(s) or designee."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1362 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1363
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1364 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1365 #: ../en/appD-license.xml:56
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1366 msgid "Scope of license"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1367 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1368
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1369 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1370 #: ../en/appD-license.xml:58
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1371 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1372 "The following license terms apply to all Open Publication works, unless "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1373 "otherwise explicitly stated in the document."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1374 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1375
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1376 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1377 #: ../en/appD-license.xml:62
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1378 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1379 "Mere aggregation of Open Publication works or a portion of an Open "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1380 "Publication work with other works or programs on the same media shall not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1381 "cause this license to apply to those other works. The aggregate work shall "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1382 "contain a notice specifying the inclusion of the Open Publication material "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1383 "and appropriate copyright notice."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1384 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1385
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1386 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1387 #: ../en/appD-license.xml:69
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1388 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1389 "<emphasis role=\"bold\">Severability</emphasis>. If any part of this license "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1390 "is found to be unenforceable in any jurisdiction, the remaining portions of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1391 "the license remain in force."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1392 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1393
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1394 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1395 #: ../en/appD-license.xml:74
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1396 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1397 "<emphasis role=\"bold\">No warranty</emphasis>. Open Publication works are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1398 "licensed and provided <quote>as is</quote> without warranty of any kind, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1399 "express or implied, including, but not limited to, the implied warranties of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1400 "merchantability and fitness for a particular purpose or a warranty of non-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1401 "infringement."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1402 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1403
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1404 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1405 #: ../en/appD-license.xml:83
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1406 msgid "Requirements on modified works"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1407 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1408
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1409 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1410 #: ../en/appD-license.xml:85
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1411 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1412 "All modified versions of documents covered by this license, including "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1413 "translations, anthologies, compilations and partial documents, must meet the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1414 "following requirements:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1415 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1416
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1417 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1418 #: ../en/appD-license.xml:90
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1419 msgid "The modified version must be labeled as such."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1420 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1421
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1422 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1423 #: ../en/appD-license.xml:93
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1424 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1425 "The person making the modifications must be identified and the modifications "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1426 "dated."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1427 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1428
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1429 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1430 #: ../en/appD-license.xml:96
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1431 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1432 "Acknowledgement of the original author and publisher if applicable must be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1433 "retained according to normal academic citation practices."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1434 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1435
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1436 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1437 #: ../en/appD-license.xml:100
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1438 msgid "The location of the original unmodified document must be identified."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1439 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1440
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1441 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1442 #: ../en/appD-license.xml:103
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1443 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1444 "The original author's (or authors') name(s) may not be used to assert or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1445 "imply endorsement of the resulting document without the original author's (or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1446 "authors') permission."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1447 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1448
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1449 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1450 #: ../en/appD-license.xml:111
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1451 msgid "Good-practice recommendations"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1452 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1453
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1454 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1455 #: ../en/appD-license.xml:113
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1456 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1457 "In addition to the requirements of this license, it is requested from and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1458 "strongly recommended of redistributors that:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1459 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1460
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1461 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1462 #: ../en/appD-license.xml:118
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1463 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1464 "If you are distributing Open Publication works on hardcopy or CD-ROM, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1465 "provide email notification to the authors of your intent to redistribute at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1466 "least thirty days before your manuscript or media freeze, to give the authors "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1467 "time to provide updated documents. This notification should describe "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1468 "modifications, if any, made to the document."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1469 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1470
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1471 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1472 #: ../en/appD-license.xml:125
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1473 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1474 "All substantive modifications (including deletions) be either clearly marked "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1475 "up in the document or else described in an attachment to the document."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1476 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1477
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1478 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1479 #: ../en/appD-license.xml:129
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1480 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1481 "Finally, while it is not mandatory under this license, it is considered good "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1482 "form to offer a free copy of any hardcopy and CD-ROM expression of an Open "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1483 "Publication-licensed work to its author(s)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1484 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1485
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1486 #. type: Content of: <book><appendix><sect1><title>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1487 #: ../en/appD-license.xml:137
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1488 msgid "License options"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1489 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1490
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1491 #. type: Content of: <book><appendix><sect1><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1492 #: ../en/appD-license.xml:139
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1493 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1494 "The author(s) and/or publisher of an Open Publication-licensed document may "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1495 "elect certain options by appending language to the reference to or copy of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1496 "the license. These options are considered part of the license instance and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1497 "must be included with the license (or its incorporation by reference) in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1498 "derived works."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1499 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1500
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1501 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1502 #: ../en/appD-license.xml:147
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1503 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1504 "To prohibit distribution of substantively modified versions without the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1505 "explicit permission of the author(s). <quote>Substantive modification</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1506 "is defined as a change to the semantic content of the document, and excludes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1507 "mere changes in format or typographical corrections."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1508 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1509
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1510 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1511 #: ../en/appD-license.xml:154
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1512 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1513 "To accomplish this, add the phrase <quote>Distribution of substantively "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1514 "modified versions of this document is prohibited without the explicit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1515 "permission of the copyright holder.</quote> to the license reference or copy."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1516 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1517
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1518 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1519 #: ../en/appD-license.xml:160
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1520 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1521 "To prohibit any publication of this work or derivative works in whole or in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1522 "part in standard (paper) book form for commercial purposes is prohibited "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1523 "unless prior permission is obtained from the copyright holder."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1524 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1525
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1526 #. type: Content of: <book><appendix><sect1><orderedlist><listitem><para>
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1527 #: ../en/appD-license.xml:165
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1528 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1529 "To accomplish this, add the phrase <quote>Distribution of the work or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1530 "derivative of the work in any standard (paper) book form is prohibited unless "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1531 "prior permission is obtained from the copyright holder.</quote> to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1532 "license reference or copy."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1533 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
1534
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1535 #. type: Content of: <book><preface><title>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1536 #: ../en/ch00-preface.xml:5
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1537 msgid "Preface"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1538 msgstr "序言"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1539
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1540 #. type: Content of: <book><preface><sect1><title>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1541 #: ../en/ch00-preface.xml:8
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1542 msgid "Why revision control? Why Mercurial?"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1543 msgstr "为什么使用版本控制? 为什么使用 Mercurial?"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1544
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1545 #. type: Content of: <book><preface><sect1><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1546 #: ../en/ch00-preface.xml:10
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1547 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1548 "Revision control is the process of managing multiple versions of a piece of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1549 "information. In its simplest form, this is something that many people do by "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1550 "hand: every time you modify a file, save it under a new name that contains a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1551 "number, each one higher than the number of the preceding version."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1552 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1553
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1554 #. type: Content of: <book><preface><sect1><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1555 #: ../en/ch00-preface.xml:16
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1556 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1557 "Manually managing multiple versions of even a single file is an error-prone "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1558 "task, though, so software tools to help automate this process have long been "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1559 "available. The earliest automated revision control tools were intended to "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1560 "help a single user to manage revisions of a single file. Over the past few "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1561 "decades, the scope of revision control tools has expanded greatly; they now "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1562 "manage multiple files, and help multiple people to work together. The best "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1563 "modern revision control tools have no problem coping with thousands of people "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1564 "working together on projects that consist of hundreds of thousands of files."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1565 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1566
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1567 #. type: Content of: <book><preface><sect1><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1568 #: ../en/ch00-preface.xml:27
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1569 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1570 "The arrival of distributed revision control is relatively recent, and so far "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1571 "this new field has grown due to people's willingness to explore ill-charted "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1572 "territory."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1573 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1574
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1575 #. type: Content of: <book><preface><sect1><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1576 #: ../en/ch00-preface.xml:31
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1577 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1578 "I am writing a book about distributed revision control because I believe that "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1579 "it is an important subject that deserves a field guide. I chose to write "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1580 "about Mercurial because it is the easiest tool to learn the terrain with, and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1581 "yet it scales to the demands of real, challenging environments where many "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1582 "other revision control tools buckle."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1583 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1584
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1585 #. type: Content of: <book><preface><sect1><sect2><title>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1586 #: ../en/ch00-preface.xml:39
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1587 msgid "Why use revision control?"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1588 msgstr "为什么使用版本控制?"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1589
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1590 #. type: Content of: <book><preface><sect1><sect2><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1591 #: ../en/ch00-preface.xml:41
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1592 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1593 "There are a number of reasons why you or your team might want to use an "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1594 "automated revision control tool for a project."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1595 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1596
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1597 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1598 #: ../en/ch00-preface.xml:46
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1599 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1600 "It will track the history and evolution of your project, so you don't have "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1601 "to. For every change, you'll have a log of <emphasis>who</emphasis> made it; "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1602 "<emphasis>why</emphasis> they made it; <emphasis>when</emphasis> they made "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1603 "it; and <emphasis>what</emphasis> the change was."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1604 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1605
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1606 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1607 #: ../en/ch00-preface.xml:53
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1608 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1609 "When you're working with other people, revision control software makes it "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1610 "easier for you to collaborate. For example, when people more or less "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1611 "simultaneously make potentially incompatible changes, the software will help "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1612 "you to identify and resolve those conflicts."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1613 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1614
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1615 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1616 #: ../en/ch00-preface.xml:59
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1617 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1618 "It can help you to recover from mistakes. If you make a change that later "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1619 "turns out to be in error, you can revert to an earlier version of one or more "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1620 "files. In fact, a <emphasis>really</emphasis> good revision control tool "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1621 "will even help you to efficiently figure out exactly when a problem was "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
1622 "introduced (see <xref linkend=\"sec:undo:bisect\"/> for details)."
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1623 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1624
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1625 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1626 #: ../en/ch00-preface.xml:66
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1627 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1628 "It will help you to work simultaneously on, and manage the drift between, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1629 "multiple versions of your project."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1630 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1631
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1632 #. type: Content of: <book><preface><sect1><sect2><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1633 #: ../en/ch00-preface.xml:71
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1634 msgid ""
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1635 "Most of these reasons are equally valid—at least in theory&emdash;whether "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1636 "you're working on a project by yourself, or with a hundred other people."
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1637 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1638
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1639 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1640 #: ../en/ch00-preface.xml:76
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1641 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1642 "A key question about the practicality of revision control at these two "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1643 "different scales (<quote>lone hacker</quote> and <quote>huge team</quote>) is "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1644 "how its <emphasis>benefits</emphasis> compare to its <emphasis>costs</"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1645 "emphasis>. A revision control tool that's difficult to understand or use is "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1646 "going to impose a high cost."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1647 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1648
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1649 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1650 #: ../en/ch00-preface.xml:84
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1651 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1652 "A five-hundred-person project is likely to collapse under its own weight "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1653 "almost immediately without a revision control tool and process. In this case, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1654 "the cost of using revision control might hardly seem worth considering, since "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1655 "<emphasis>without</emphasis> it, failure is almost guaranteed."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1656 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1657
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1658 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1659 #: ../en/ch00-preface.xml:91
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1660 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1661 "On the other hand, a one-person <quote>quick hack</quote> might seem like a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1662 "poor place to use a revision control tool, because surely the cost of using "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1663 "one must be close to the overall cost of the project. Right?"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1664 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1665
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1666 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1667 #: ../en/ch00-preface.xml:96
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1668 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1669 "Mercurial uniquely supports <emphasis>both</emphasis> of these scales of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1670 "development. You can learn the basics in just a few minutes, and due to its "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1671 "low overhead, you can apply revision control to the smallest of projects with "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1672 "ease. Its simplicity means you won't have a lot of abstruse concepts or "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1673 "command sequences competing for mental space with whatever you're "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1674 "<emphasis>really</emphasis> trying to do. At the same time, Mercurial's high "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1675 "performance and peer-to-peer nature let you scale painlessly to handle large "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1676 "projects."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1677 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1678
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1679 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1680 #: ../en/ch00-preface.xml:106
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1681 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1682 "No revision control tool can rescue a poorly run project, but a good choice "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1683 "of tools can make a huge difference to the fluidity with which you can work "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1684 "on a project."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1685 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1686
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1687 #. type: Content of: <book><preface><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1688 #: ../en/ch00-preface.xml:113
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1689 msgid "The many names of revision control"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1690 msgstr "版本控制的别名"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1691
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1692 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1693 #: ../en/ch00-preface.xml:115
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1694 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1695 "Revision control is a diverse field, so much so that it is referred to by "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1696 "many names and acronyms. Here are a few of the more common variations you'll "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1697 "encounter:"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1698 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1699
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1700 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1701 #: ../en/ch00-preface.xml:119
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1702 msgid "Revision control (RCS)"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1703 msgstr "版本控制(RCS)"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1704
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1705 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1706 #: ../en/ch00-preface.xml:120
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1707 msgid "Software configuration management (SCM), or configuration management"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1708 msgstr "软件配置管理(SCM),或配置管理"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1709
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1710 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1711 #: ../en/ch00-preface.xml:122
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1712 msgid "Source code management"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1713 msgstr "源代码管理"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1714
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1715 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1716 #: ../en/ch00-preface.xml:123
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1717 msgid "Source code control, or source control"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1718 msgstr "源代码控制,或源控制"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1719
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1720 #. type: Content of: <book><preface><sect1><sect2><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1721 #: ../en/ch00-preface.xml:125
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1722 msgid "Version control (VCS)"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1723 msgstr "版本控制(VCS)"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1724
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1725 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1726 #: ../en/ch00-preface.xml:127
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1727 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1728 "Some people claim that these terms actually have different meanings, but in "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1729 "practice they overlap so much that there's no agreed or even useful way to "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1730 "tease them apart."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1731 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1732
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1733 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1734 #: ../en/ch00-preface.xml:135
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1735 msgid "This book is a work in progress"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1736 msgstr "本书正在编写中"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1737
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1738 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1739 #: ../en/ch00-preface.xml:137
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1740 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1741 "I am releasing this book while I am still writing it, in the hope that it "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1742 "will prove useful to others. I am writing under an open license in the hope "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1743 "that you, my readers, will contribute feedback and perhaps content of your "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1744 "own."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1745 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1746
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1747 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1748 #: ../en/ch00-preface.xml:144
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1749 msgid "About the examples in this book"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1750 msgstr "本书的例子"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1751
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1752 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1753 #: ../en/ch00-preface.xml:146
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1754 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1755 "This book takes an unusual approach to code samples. Every example is "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1756 "<quote>live</quote>—each one is actually the result of a shell script that "
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1757 "executes the Mercurial commands you see. Every time an image of the book is "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1758 "built from its sources, all the example scripts are automatically run, and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1759 "their current results compared against their expected results."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1760 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1761
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1762 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1763 #: ../en/ch00-preface.xml:153
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1764 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1765 "The advantage of this approach is that the examples are always accurate; they "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1766 "describe <emphasis>exactly</emphasis> the behaviour of the version of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1767 "Mercurial that's mentioned at the front of the book. If I update the version "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1768 "of Mercurial that I'm documenting, and the output of some command changes, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1769 "the build fails."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1770 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1771
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1772 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1773 #: ../en/ch00-preface.xml:160
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1774 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1775 "There is a small disadvantage to this approach, which is that the dates and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1776 "times you'll see in examples tend to be <quote>squashed</quote> together in a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1777 "way that they wouldn't be if the same commands were being typed by a human. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1778 "Where a human can issue no more than one command every few seconds, with any "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1779 "resulting timestamps correspondingly spread out, my automated example scripts "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1780 "run many commands in one second."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1781 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1782
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1783 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1784 #: ../en/ch00-preface.xml:168
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1785 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1786 "As an instance of this, several consecutive commits in an example can show up "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1787 "as having occurred during the same second. You can see this occur in the "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
1788 "<literal role=\"hg-ext\">bisect</literal> example in <xref linkend=\"sec:undo:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
1789 "bisect\"/>, for instance."
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1790 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1791
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1792 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1793 #: ../en/ch00-preface.xml:174
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1794 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1795 "So when you're reading examples, don't place too much weight on the dates or "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1796 "times you see in the output of commands. But <emphasis>do</emphasis> be "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1797 "confident that the behaviour you're seeing is consistent and reproducible."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1798 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1799
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1800 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1801 #: ../en/ch00-preface.xml:182
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1802 msgid "Trends in the field"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1803 msgstr "版本控制的发展趋势"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1804
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1805 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1806 #: ../en/ch00-preface.xml:184
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1807 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1808 "There has been an unmistakable trend in the development and use of revision "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1809 "control tools over the past four decades, as people have become familiar with "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1810 "the capabilities of their tools and constrained by their limitations."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1811 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1812
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1813 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1814 #: ../en/ch00-preface.xml:189
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1815 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1816 "The first generation began by managing single files on individual computers. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1817 "Although these tools represented a huge advance over ad-hoc manual revision "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1818 "control, their locking model and reliance on a single computer limited them "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1819 "to small, tightly-knit teams."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1820 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1821
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1822 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1823 #: ../en/ch00-preface.xml:195
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1824 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1825 "The second generation loosened these constraints by moving to network-"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1826 "centered architectures, and managing entire projects at a time. As projects "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1827 "grew larger, they ran into new problems. With clients needing to talk to "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1828 "servers very frequently, server scaling became an issue for large projects. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1829 "An unreliable network connection could prevent remote users from being able "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1830 "to talk to the server at all. As open source projects started making read-"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1831 "only access available anonymously to anyone, people without commit privileges "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1832 "found that they could not use the tools to interact with a project in a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1833 "natural way, as they could not record their changes."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1834 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1835
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1836 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1837 #: ../en/ch00-preface.xml:207
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1838 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1839 "The current generation of revision control tools is peer-to-peer in nature. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1840 "All of these systems have dropped the dependency on a single central server, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1841 "and allow people to distribute their revision control data to where it's "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1842 "actually needed. Collaboration over the Internet has moved from constrained "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1843 "by technology to a matter of choice and consensus. Modern tools can operate "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1844 "offline indefinitely and autonomously, with a network connection only needed "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1845 "when syncing changes with another repository."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1846 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1847
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1848 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1849 #: ../en/ch00-preface.xml:219
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1850 msgid "A few of the advantages of distributed revision control"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1851 msgstr "分布版本控制的优点"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1852
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1853 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1854 #: ../en/ch00-preface.xml:222
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1855 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1856 "Even though distributed revision control tools have for several years been as "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1857 "robust and usable as their previous-generation counterparts, people using "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1858 "older tools have not yet necessarily woken up to their advantages. There are "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1859 "a number of ways in which distributed tools shine relative to centralised "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1860 "ones."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1861 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1862
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1863 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1864 #: ../en/ch00-preface.xml:229
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1865 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1866 "For an individual developer, distributed tools are almost always much faster "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1867 "than centralised tools. This is for a simple reason: a centralised tool "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1868 "needs to talk over the network for many common operations, because most "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1869 "metadata is stored in a single copy on the central server. A distributed "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1870 "tool stores all of its metadata locally. All else being equal, talking over "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1871 "the network adds overhead to a centralised tool. Don't underestimate the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1872 "value of a snappy, responsive tool: you're going to spend a lot of time "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1873 "interacting with your revision control software."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1874 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1875
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1876 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1877 #: ../en/ch00-preface.xml:240
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1878 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1879 "Distributed tools are indifferent to the vagaries of your server "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1880 "infrastructure, again because they replicate metadata to so many locations. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1881 "If you use a centralised system and your server catches fire, you'd better "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1882 "hope that your backup media are reliable, and that your last backup was "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1883 "recent and actually worked. With a distributed tool, you have many backups "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1884 "available on every contributor's computer."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1885 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1886
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1887 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1888 #: ../en/ch00-preface.xml:248
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1889 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1890 "The reliability of your network will affect distributed tools far less than "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1891 "it will centralised tools. You can't even use a centralised tool without a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1892 "network connection, except for a few highly constrained commands. With a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1893 "distributed tool, if your network connection goes down while you're working, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1894 "you may not even notice. The only thing you won't be able to do is talk to "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1895 "repositories on other computers, something that is relatively rare compared "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1896 "with local operations. If you have a far-flung team of collaborators, this "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1897 "may be significant."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1898 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1899
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1900 #. type: Content of: <book><preface><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1901 #: ../en/ch00-preface.xml:259
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1902 msgid "Advantages for open source projects"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1903 msgstr "开源项目的优点"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1904
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1905 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1906 #: ../en/ch00-preface.xml:261
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1907 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1908 "If you take a shine to an open source project and decide that you would like "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1909 "to start hacking on it, and that project uses a distributed revision control "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1910 "tool, you are at once a peer with the people who consider themselves the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1911 "<quote>core</quote> of that project. If they publish their repositories, you "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1912 "can immediately copy their project history, start making changes, and record "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1913 "your work, using the same tools in the same ways as insiders. By contrast, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1914 "with a centralised tool, you must use the software in a <quote>read only</"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1915 "quote> mode unless someone grants you permission to commit changes to their "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1916 "central server. Until then, you won't be able to record changes, and your "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1917 "local modifications will be at risk of corruption any time you try to update "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1918 "your client's view of the repository."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1919 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1920
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1921 #. type: Content of: <book><preface><sect1><sect2><sect3><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1922 #: ../en/ch00-preface.xml:277
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1923 msgid "The forking non-problem"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
1924 msgstr "分叉不是问题"
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1925
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1926 #. type: Content of: <book><preface><sect1><sect2><sect3><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1927 #: ../en/ch00-preface.xml:279
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1928 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1929 "It has been suggested that distributed revision control tools pose some sort "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1930 "of risk to open source projects because they make it easy to <quote>fork</"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1931 "quote> the development of a project. A fork happens when there are "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1932 "differences in opinion or attitude between groups of developers that cause "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1933 "them to decide that they can't work together any longer. Each side takes a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1934 "more or less complete copy of the project's source code, and goes off in its "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1935 "own direction."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1936 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1937
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1938 #. type: Content of: <book><preface><sect1><sect2><sect3><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1939 #: ../en/ch00-preface.xml:289
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1940 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1941 "Sometimes the camps in a fork decide to reconcile their differences. With a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1942 "centralised revision control system, the <emphasis>technical</emphasis> "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1943 "process of reconciliation is painful, and has to be performed largely by "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1944 "hand. You have to decide whose revision history is going to <quote>win</"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1945 "quote>, and graft the other team's changes into the tree somehow. This "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1946 "usually loses some or all of one side's revision history."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1947 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1948
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1949 #. type: Content of: <book><preface><sect1><sect2><sect3><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1950 #: ../en/ch00-preface.xml:298
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1951 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1952 "What distributed tools do with respect to forking is they make forking the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1953 "<emphasis>only</emphasis> way to develop a project. Every single change that "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1954 "you make is potentially a fork point. The great strength of this approach is "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1955 "that a distributed revision control tool has to be really good at "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1956 "<emphasis>merging</emphasis> forks, because forks are absolutely fundamental: "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1957 "they happen all the time."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1958 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1959
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1960 #. type: Content of: <book><preface><sect1><sect2><sect3><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1961 #: ../en/ch00-preface.xml:307
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1962 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1963 "If every piece of work that everybody does, all the time, is framed in terms "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1964 "of forking and merging, then what the open source world refers to as a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1965 "<quote>fork</quote> becomes <emphasis>purely</emphasis> a social issue. If "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1966 "anything, distributed tools <emphasis>lower</emphasis> the likelihood of a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1967 "fork:"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1968 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1969
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1970 #. type: Content of: <book><preface><sect1><sect2><sect3><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1971 #: ../en/ch00-preface.xml:314
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1972 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1973 "They eliminate the social distinction that centralised tools impose: that "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1974 "between insiders (people with commit access) and outsiders (people without)."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1975 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1976
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1977 #. type: Content of: <book><preface><sect1><sect2><sect3><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1978 #: ../en/ch00-preface.xml:318
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1979 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1980 "They make it easier to reconcile after a social fork, because all that's "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1981 "involved from the perspective of the revision control software is just "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1982 "another merge."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1983 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1984
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1985 #. type: Content of: <book><preface><sect1><sect2><sect3><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1986 #: ../en/ch00-preface.xml:323
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1987 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1988 "Some people resist distributed tools because they want to retain tight "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1989 "control over their projects, and they believe that centralised tools give "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1990 "them this control. However, if you're of this belief, and you publish your "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1991 "CVS or Subversion repositories publicly, there are plenty of tools available "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1992 "that can pull out your entire project's history (albeit slowly) and recreate "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1993 "it somewhere that you don't control. So while your control in this case is "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1994 "illusory, you are forgoing the ability to fluidly collaborate with whatever "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1995 "people feel compelled to mirror and fork your history."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1996 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1997
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
1998 #. type: Content of: <book><preface><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
1999 #: ../en/ch00-preface.xml:338
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2000 msgid "Advantages for commercial projects"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2001 msgstr "商业项目的优点"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2002
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2003 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2004 #: ../en/ch00-preface.xml:340
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2005 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2006 "Many commercial projects are undertaken by teams that are scattered across "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2007 "the globe. Contributors who are far from a central server will see slower "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2008 "command execution and perhaps less reliability. Commercial revision control "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2009 "systems attempt to ameliorate these problems with remote-site replication add-"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2010 "ons that are typically expensive to buy and cantankerous to administer. A "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2011 "distributed system doesn't suffer from these problems in the first place. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2012 "Better yet, you can easily set up multiple authoritative servers, say one per "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2013 "site, so that there's no redundant communication between repositories over "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2014 "expensive long-haul network links."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2015 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2016
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2017 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2018 #: ../en/ch00-preface.xml:352
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2019 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2020 "Centralised revision control systems tend to have relatively low "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2021 "scalability. It's not unusual for an expensive centralised system to fall "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2022 "over under the combined load of just a few dozen concurrent users. Once "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2023 "again, the typical response tends to be an expensive and clunky replication "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2024 "facility. Since the load on a central server—if you have one at all—is many "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2025 "times lower with a distributed tool (because all of the data is replicated "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2026 "everywhere), a single cheap server can handle the needs of a much larger "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2027 "team, and replication to balance load becomes a simple matter of scripting."
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2028 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2029
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2030 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2031 #: ../en/ch00-preface.xml:364
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2032 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2033 "If you have an employee in the field, troubleshooting a problem at a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2034 "customer's site, they'll benefit from distributed revision control. The tool "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2035 "will let them generate custom builds, try different fixes in isolation from "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2036 "each other, and search efficiently through history for the sources of bugs "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2037 "and regressions in the customer's environment, all without needing to connect "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2038 "to your company's network."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2039 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2040
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2041 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2042 #: ../en/ch00-preface.xml:375
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2043 msgid "Why choose Mercurial?"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2044 msgstr "为什么选择 Mercurial?"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2045
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2046 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2047 #: ../en/ch00-preface.xml:377
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2048 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2049 "Mercurial has a unique set of properties that make it a particularly good "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2050 "choice as a revision control system."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2051 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2052
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2053 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2054 #: ../en/ch00-preface.xml:380
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2055 msgid "It is easy to learn and use."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2056 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2057
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2058 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2059 #: ../en/ch00-preface.xml:381
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2060 msgid "It is lightweight."
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2061 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2062
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2063 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2064 #: ../en/ch00-preface.xml:382
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2065 msgid "It scales excellently."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2066 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2067
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2068 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2069 #: ../en/ch00-preface.xml:383
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2070 msgid "It is easy to customise."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2071 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2072
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2073 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2074 #: ../en/ch00-preface.xml:386
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2075 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2076 "If you are at all familiar with revision control systems, you should be able "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2077 "to get up and running with Mercurial in less than five minutes. Even if not, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2078 "it will take no more than a few minutes longer. Mercurial's command and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2079 "feature sets are generally uniform and consistent, so you can keep track of a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2080 "few general rules instead of a host of exceptions."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2081 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2082
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2083 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2084 #: ../en/ch00-preface.xml:393
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2085 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2086 "On a small project, you can start working with Mercurial in moments. Creating "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2087 "new changes and branches; transferring changes around (whether locally or "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2088 "over a network); and history and status operations are all fast. Mercurial "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2089 "attempts to stay nimble and largely out of your way by combining low "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2090 "cognitive overhead with blazingly fast operations."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2091 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2092
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2093 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2094 #: ../en/ch00-preface.xml:400
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2095 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2096 "The usefulness of Mercurial is not limited to small projects: it is used by "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2097 "projects with hundreds to thousands of contributors, each containing tens of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2098 "thousands of files and hundreds of megabytes of source code."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2099 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2100
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2101 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2102 #: ../en/ch00-preface.xml:405
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2103 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2104 "If the core functionality of Mercurial is not enough for you, it's easy to "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2105 "build on. Mercurial is well suited to scripting tasks, and its clean "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2106 "internals and implementation in Python make it easy to add features in the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2107 "form of extensions. There are a number of popular and useful extensions "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2108 "already available, ranging from helping to identify bugs to improving "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2109 "performance."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2110 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2111
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2112 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2113 #: ../en/ch00-preface.xml:415
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2114 msgid "Mercurial compared with other tools"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2115 msgstr "Mercurial 与其它工具的比较"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2116
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2117 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2118 #: ../en/ch00-preface.xml:417
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2119 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2120 "Before you read on, please understand that this section necessarily reflects "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2121 "my own experiences, interests, and (dare I say it) biases. I have used every "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2122 "one of the revision control tools listed below, in most cases for several "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2123 "years at a time."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2124 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2125
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2126 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2127 #: ../en/ch00-preface.xml:425 ../en/ch00-preface.xml:636
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2128 msgid "Subversion"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2129 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2130
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2131 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2132 #: ../en/ch00-preface.xml:427
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2133 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2134 "Subversion is a popular revision control tool, developed to replace CVS. It "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2135 "has a centralised client/server architecture."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2136 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2137
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2138 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2139 #: ../en/ch00-preface.xml:431
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2140 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2141 "Subversion and Mercurial have similarly named commands for performing the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2142 "same operations, so if you're familiar with one, it is easy to learn to use "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2143 "the other. Both tools are portable to all popular operating systems."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2144 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2145
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2146 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2147 #: ../en/ch00-preface.xml:436
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2148 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2149 "Prior to version 1.5, Subversion had no useful support for merges. At the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2150 "time of writing, its merge tracking capability is new, and known to be <ulink "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2151 "url=\"http://svnbook.red-bean.com/nightly/en/svn.branchmerge.advanced."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2152 "html#svn.branchmerge.advanced.finalword\">complicated and buggy</ulink>."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2153 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2154
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2155 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2156 #: ../en/ch00-preface.xml:442
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2157 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2158 "Mercurial has a substantial performance advantage over Subversion on every "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2159 "revision control operation I have benchmarked. I have measured its advantage "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2160 "as ranging from a factor of two to a factor of six when compared with "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2161 "Subversion 1.4.3's <emphasis>ra_local</emphasis> file store, which is the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2162 "fastest access method available. In more realistic deployments involving a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2163 "network-based store, Subversion will be at a substantially larger "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2164 "disadvantage. Because many Subversion commands must talk to the server and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2165 "Subversion does not have useful replication facilities, server capacity and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2166 "network bandwidth become bottlenecks for modestly large projects."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2167 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2168
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2169 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2170 #: ../en/ch00-preface.xml:455
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2171 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2172 "Additionally, Subversion incurs substantial storage overhead to avoid network "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2173 "transactions for a few common operations, such as finding modified files "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2174 "(<literal>status</literal>) and displaying modifications against the current "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2175 "revision (<literal>diff</literal>). As a result, a Subversion working copy "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2176 "is often the same size as, or larger than, a Mercurial repository and working "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2177 "directory, even though the Mercurial repository contains a complete history "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2178 "of the project."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2179 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2180
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2181 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2182 #: ../en/ch00-preface.xml:465
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2183 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2184 "Subversion is widely supported by third party tools. Mercurial currently "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2185 "lags considerably in this area. This gap is closing, however, and indeed "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2186 "some of Mercurial's GUI tools now outshine their Subversion equivalents. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2187 "Like Mercurial, Subversion has an excellent user manual."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2188 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2189
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2190 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2191 #: ../en/ch00-preface.xml:471
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2192 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2193 "Because Subversion doesn't store revision history on the client, it is well "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2194 "suited to managing projects that deal with lots of large, opaque binary "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2195 "files. If you check in fifty revisions to an incompressible 10MB file, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2196 "Subversion's client-side space usage stays constant The space used by any "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2197 "distributed SCM will grow rapidly in proportion to the number of revisions, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2198 "because the differences between each revision are large."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2199 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2200
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2201 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2202 #: ../en/ch00-preface.xml:480
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2203 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2204 "In addition, it's often difficult or, more usually, impossible to merge "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2205 "different versions of a binary file. Subversion's ability to let a user lock "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2206 "a file, so that they temporarily have the exclusive right to commit changes "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2207 "to it, can be a significant advantage to a project where binary files are "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2208 "widely used."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2209 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2210
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2211 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2212 #: ../en/ch00-preface.xml:487
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2213 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2214 "Mercurial can import revision history from a Subversion repository. It can "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2215 "also export revision history to a Subversion repository. This makes it easy "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2216 "to <quote>test the waters</quote> and use Mercurial and Subversion in "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2217 "parallel before deciding to switch. History conversion is incremental, so "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2218 "you can perform an initial conversion, then small additional conversions "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2219 "afterwards to bring in new changes."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2220 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2221
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2222 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2223 #: ../en/ch00-preface.xml:499 ../en/ch00-preface.xml:638
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2224 msgid "Git"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2225 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2226
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2227 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2228 #: ../en/ch00-preface.xml:501
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2229 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2230 "Git is a distributed revision control tool that was developed for managing "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2231 "the Linux kernel source tree. Like Mercurial, its early design was somewhat "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2232 "influenced by Monotone."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2233 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2234
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2235 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2236 #: ../en/ch00-preface.xml:506
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2237 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2238 "Git has a very large command set, with version 1.5.0 providing 139 individual "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2239 "commands. It has something of a reputation for being difficult to learn. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2240 "Compared to Git, Mercurial has a strong focus on simplicity."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2241 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2242
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2243 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2244 #: ../en/ch00-preface.xml:511
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2245 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2246 "In terms of performance, Git is extremely fast. In several cases, it is "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2247 "faster than Mercurial, at least on Linux, while Mercurial performs better on "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2248 "other operations. However, on Windows, the performance and general level of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2249 "support that Git provides is, at the time of writing, far behind that of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2250 "Mercurial."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2251 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2252
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2253 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2254 #: ../en/ch00-preface.xml:518
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2255 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2256 "While a Mercurial repository needs no maintenance, a Git repository requires "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2257 "frequent manual <quote>repacks</quote> of its metadata. Without these, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2258 "performance degrades, while space usage grows rapidly. A server that "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2259 "contains many Git repositories that are not rigorously and frequently "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2260 "repacked will become heavily disk-bound during backups, and there have been "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2261 "instances of daily backups taking far longer than 24 hours as a result. A "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2262 "freshly packed Git repository is slightly smaller than a Mercurial "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2263 "repository, but an unpacked repository is several orders of magnitude larger."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2264 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2265
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2266 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2267 #: ../en/ch00-preface.xml:529
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2268 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2269 "The core of Git is written in C. Many Git commands are implemented as shell "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2270 "or Perl scripts, and the quality of these scripts varies widely. I have "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2271 "encountered several instances where scripts charged along blindly in the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2272 "presence of errors that should have been fatal."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2273 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2274
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2275 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2276 #: ../en/ch00-preface.xml:535
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2277 msgid "Mercurial can import revision history from a Git repository."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2278 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2279
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2280 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2281 #: ../en/ch00-preface.xml:541 ../en/ch00-preface.xml:637
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2282 msgid "CVS"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2283 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2284
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2285 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2286 #: ../en/ch00-preface.xml:543
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2287 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2288 "CVS is probably the most widely used revision control tool in the world. Due "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2289 "to its age and internal untidiness, it has been only lightly maintained for "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2290 "many years."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2291 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2292
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2293 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2294 #: ../en/ch00-preface.xml:547
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2295 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2296 "It has a centralised client/server architecture. It does not group related "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2297 "file changes into atomic commits, making it easy for people to <quote>break "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2298 "the build</quote>: one person can successfully commit part of a change and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2299 "then be blocked by the need for a merge, causing other people to see only a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2300 "portion of the work they intended to do. This also affects how you work with "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2301 "project history. If you want to see all of the modifications someone made as "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2302 "part of a task, you will need to manually inspect the descriptions and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2303 "timestamps of the changes made to each file involved (if you even know what "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2304 "those files were)."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2305 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2306
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2307 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2308 #: ../en/ch00-preface.xml:559
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2309 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2310 "CVS has a muddled notion of tags and branches that I will not attempt to even "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2311 "describe. It does not support renaming of files or directories well, making "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2312 "it easy to corrupt a repository. It has almost no internal consistency "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2313 "checking capabilities, so it is usually not even possible to tell whether or "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2314 "how a repository is corrupt. I would not recommend CVS for any project, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2315 "existing or new."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2316 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2317
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2318 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2319 #: ../en/ch00-preface.xml:567
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2320 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2321 "Mercurial can import CVS revision history. However, there are a few caveats "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2322 "that apply; these are true of every other revision control tool's CVS "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2323 "importer, too. Due to CVS's lack of atomic changes and unversioned "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2324 "filesystem hierarchy, it is not possible to reconstruct CVS history "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2325 "completely accurately; some guesswork is involved, and renames will usually "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2326 "not show up. Because a lot of advanced CVS administration has to be done by "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2327 "hand and is hence error-prone, it's common for CVS importers to run into "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2328 "multiple problems with corrupted repositories (completely bogus revision "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2329 "timestamps and files that have remained locked for over a decade are just two "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2330 "of the less interesting problems I can recall from personal experience)."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2331 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2332
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2333 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2334 #: ../en/ch00-preface.xml:581
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2335 msgid "Mercurial can import revision history from a CVS repository."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2336 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2337
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2338 #. type: Content of: <book><preface><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2339 #: ../en/ch00-preface.xml:587
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2340 msgid "Commercial tools"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2341 msgstr "商业工具"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2342
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2343 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2344 #: ../en/ch00-preface.xml:589
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2345 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2346 "Perforce has a centralised client/server architecture, with no client-side "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2347 "caching of any data. Unlike modern revision control tools, Perforce requires "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2348 "that a user run a command to inform the server about every file they intend "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2349 "to edit."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2350 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2351
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2352 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2353 #: ../en/ch00-preface.xml:595
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2354 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2355 "The performance of Perforce is quite good for small teams, but it falls off "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2356 "rapidly as the number of users grows beyond a few dozen. Modestly large "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2357 "Perforce installations require the deployment of proxies to cope with the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2358 "load their users generate."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2359 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2360
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2361 #. type: Content of: <book><preface><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2362 #: ../en/ch00-preface.xml:604
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2363 msgid "Choosing a revision control tool"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2364 msgstr "选择版本控制工具"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2365
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2366 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2367 #: ../en/ch00-preface.xml:606
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2368 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2369 "With the exception of CVS, all of the tools listed above have unique "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2370 "strengths that suit them to particular styles of work. There is no single "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2371 "revision control tool that is best in all situations."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2372 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2373
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2374 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2375 #: ../en/ch00-preface.xml:611
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2376 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2377 "As an example, Subversion is a good choice for working with frequently edited "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2378 "binary files, due to its centralised nature and support for file locking."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2379 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2380
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2381 #. type: Content of: <book><preface><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2382 #: ../en/ch00-preface.xml:615
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2383 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2384 "I personally find Mercurial's properties of simplicity, performance, and good "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2385 "merge support to be a compelling combination that has served me well for "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2386 "several years."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2387 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2388
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2389 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2390 #: ../en/ch00-preface.xml:623
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2391 msgid "Switching from another tool to Mercurial"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2392 msgstr "从其它工具切换到 Mercurial"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2393
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2394 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2395 #: ../en/ch00-preface.xml:625
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2396 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2397 "Mercurial is bundled with an extension named <literal role=\"hg-ext"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2398 "\">convert</literal>, which can incrementally import revision history from "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2399 "several other revision control tools. By <quote>incremental</quote>, I mean "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2400 "that you can convert all of a project's history to date in one go, then rerun "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2401 "the conversion later to obtain new changes that happened after the initial "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2402 "conversion."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2403 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2404
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2405 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2406 #: ../en/ch00-preface.xml:633
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2407 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2408 "The revision control tools supported by <literal role=\"hg-ext\">convert</"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2409 "literal> are as follows:"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2410 msgstr "<literal role=\"hg-ext\">convert</literal> 支持的版本控制工具有:"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2411
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2412 #. type: Content of: <book><preface><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2413 #: ../en/ch00-preface.xml:639
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2414 msgid "Darcs"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2415 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2416
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2417 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2418 #: ../en/ch00-preface.xml:641
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2419 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2420 "In addition, <literal role=\"hg-ext\">convert</literal> can export changes "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2421 "from Mercurial to Subversion. This makes it possible to try Subversion and "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2422 "Mercurial in parallel before committing to a switchover, without risking the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2423 "loss of any work."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2424 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2425
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2426 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2427 #: ../en/ch00-preface.xml:647
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2428 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2429 "The <command role=\"hg-ext-convert\">convert</command> command is easy to "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2430 "use. Simply point it at the path or URL of the source repository, optionally "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2431 "give it the name of the destination repository, and it will start working. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2432 "After the initial conversion, just run the same command again to import new "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2433 "changes."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2434 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2435
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2436 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2437 #: ../en/ch00-preface.xml:656
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2438 msgid "A short history of revision control"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2439 msgstr "版本控制简史"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2440
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2441 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2442 #: ../en/ch00-preface.xml:658
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2443 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2444 "The best known of the old-time revision control tools is SCCS (Source Code "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2445 "Control System), which Marc Rochkind wrote at Bell Labs, in the early 1970s. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2446 "SCCS operated on individual files, and required every person working on a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2447 "project to have access to a shared workspace on a single system. Only one "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2448 "person could modify a file at any time; arbitration for access to files was "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2449 "via locks. It was common for people to lock files, and later forget to "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2450 "unlock them, preventing anyone else from modifying those files without the "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2451 "help of an administrator."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2452 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2453
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2454 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2455 #: ../en/ch00-preface.xml:669
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2456 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2457 "Walter Tichy developed a free alternative to SCCS in the early 1980s; he "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2458 "called his program RCS (Revision Control System). Like SCCS, RCS required "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2459 "developers to work in a single shared workspace, and to lock files to prevent "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2460 "multiple people from modifying them simultaneously."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2461 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2462
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2463 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2464 #: ../en/ch00-preface.xml:675
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2465 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2466 "Later in the 1980s, Dick Grune used RCS as a building block for a set of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2467 "shell scripts he initially called cmt, but then renamed to CVS (Concurrent "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2468 "Versions System). The big innovation of CVS was that it let developers work "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2469 "simultaneously and somewhat independently in their own personal workspaces. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2470 "The personal workspaces prevented developers from stepping on each other's "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2471 "toes all the time, as was common with SCCS and RCS. Each developer had a copy "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2472 "of every project file, and could modify their copies independently. They had "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2473 "to merge their edits prior to committing changes to the central repository."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2474 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2475
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2476 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2477 #: ../en/ch00-preface.xml:686
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2478 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2479 "Brian Berliner took Grune's original scripts and rewrote them in C, releasing "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2480 "in 1989 the code that has since developed into the modern version of CVS. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2481 "CVS subsequently acquired the ability to operate over a network connection, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2482 "giving it a client/server architecture. CVS's architecture is centralised; "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2483 "only the server has a copy of the history of the project. Client workspaces "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2484 "just contain copies of recent versions of the project's files, and a little "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2485 "metadata to tell them where the server is. CVS has been enormously "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2486 "successful; it is probably the world's most widely used revision control "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2487 "system."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2488 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2489
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2490 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2491 #: ../en/ch00-preface.xml:697
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2492 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2493 "In the early 1990s, Sun Microsystems developed an early distributed revision "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2494 "control system, called TeamWare. A TeamWare workspace contains a complete "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2495 "copy of the project's history. TeamWare has no notion of a central "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2496 "repository. (CVS relied upon RCS for its history storage; TeamWare used "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2497 "SCCS.)"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2498 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2499
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2500 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2501 #: ../en/ch00-preface.xml:704
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2502 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2503 "As the 1990s progressed, awareness grew of a number of problems with CVS. It "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2504 "records simultaneous changes to multiple files individually, instead of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2505 "grouping them together as a single logically atomic operation. It does not "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2506 "manage its file hierarchy well; it is easy to make a mess of a repository by "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2507 "renaming files and directories. Worse, its source code is difficult to read "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2508 "and maintain, which made the <quote>pain level</quote> of fixing these "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2509 "architectural problems prohibitive."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2510 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2511
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2512 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2513 #: ../en/ch00-preface.xml:714
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2514 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2515 "In 2001, Jim Blandy and Karl Fogel, two developers who had worked on CVS, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2516 "started a project to replace it with a tool that would have a better "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2517 "architecture and cleaner code. The result, Subversion, does not stray from "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2518 "CVS's centralised client/server model, but it adds multi-file atomic commits, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2519 "better namespace management, and a number of other features that make it a "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2520 "generally better tool than CVS. Since its initial release, it has rapidly "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2521 "grown in popularity."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2522 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2523
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2524 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2525 #: ../en/ch00-preface.xml:723
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2526 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2527 "More or less simultaneously, Graydon Hoare began working on an ambitious "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2528 "distributed revision control system that he named Monotone. While Monotone "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2529 "addresses many of CVS's design flaws and has a peer-to-peer architecture, it "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2530 "goes beyond earlier (and subsequent) revision control tools in a number of "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2531 "innovative ways. It uses cryptographic hashes as identifiers, and has an "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2532 "integral notion of <quote>trust</quote> for code from different sources."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2533 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2534
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2535 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2536 #: ../en/ch00-preface.xml:732
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2537 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2538 "Mercurial began life in 2005. While a few aspects of its design are "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2539 "influenced by Monotone, Mercurial focuses on ease of use, high performance, "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2540 "and scalability to very large projects."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2541 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2542
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2543 #. type: Content of: <book><preface><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2544 #: ../en/ch00-preface.xml:740
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2545 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
2546 msgid "Colophon—this book is Free"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
2547 msgstr "后记—本书是自由的!"
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2548
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2549 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2550 #: ../en/ch00-preface.xml:742
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2551 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2552 "This book is licensed under the Open Publication License, and is produced "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2553 "entirely using Free Software tools. It is typeset with DocBook XML. "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2554 "Illustrations are drawn and rendered with <ulink url=\"http://www.inkscape."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2555 "org/\">Inkscape</ulink>."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2556 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2557
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2558 #. type: Content of: <book><preface><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2559 #: ../en/ch00-preface.xml:747
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2560 msgid ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2561 "The complete source code for this book is published as a Mercurial "
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2562 "repository, at <ulink url=\"http://hg.serpentine.com/mercurial/book\">http://"
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2563 "hg.serpentine.com/mercurial/book</ulink>."
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2564 msgstr ""
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
2565
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2566 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
2567 #: ../en/ch01-tour-basic.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2568 msgid "A tour of Mercurial: the basics"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2569 msgstr "Mercurial 教程: 基础知识"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2570
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2571 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
2572 #: ../en/ch01-tour-basic.xml:8
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2573 msgid "Installing Mercurial on your system"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2574 msgstr "安装 Mercurial"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2575
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2576 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
2577 #: ../en/ch01-tour-basic.xml:10
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2578 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2579 "Prebuilt binary packages of Mercurial are available for every popular "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2580 "operating system. These make it easy to start using Mercurial on your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2581 "computer immediately."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2582 msgstr ""
743
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2583 "对于每种流行的操作系统,都有已经构建的二进制软件包。这让在你的计算机上开始使"
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2584 "用 Mercurial 变得很容易。"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2585
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2586 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
2587 #: ../en/ch01-tour-basic.xml:15
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2588 msgid "Windows"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2589 msgstr ""
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2590
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2591 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
2592 #: ../en/ch01-tour-basic.xml:17
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2593 msgid ""
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2594 "The best version of Mercurial for Windows is TortoiseHg, which can be found "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2595 "at <ulink url=\"http://bitbucket.org/tortoisehg/stable/wiki/Home\">http://"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2596 "bitbucket.org/tortoisehg/stable/wiki/Home</ulink>. This package has no "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2597 "external dependencies; it <quote>just works</quote>. It provides both "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2598 "command line and graphical user interfaces."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2599 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2600
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2601 #. type: Content of: <book><chapter><sect1><sect2><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2602 #: ../en/ch01-tour-basic.xml:27
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2603 msgid "Mac OS X"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2604 msgstr "Mac OS X"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2605
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2606 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2607 #: ../en/ch01-tour-basic.xml:29
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2608 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2609 "Lee Cantey publishes an installer of Mercurial for Mac OS X at <ulink url="
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2610 "\"http://mercurial.berkwood.com\">http://mercurial.berkwood.com</ulink>."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2611 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2612
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2613 #. type: Content of: <book><chapter><sect1><sect2><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2614 #: ../en/ch01-tour-basic.xml:35
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2615 msgid "Linux"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2616 msgstr "Linux"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2617
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2618 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2619 #: ../en/ch01-tour-basic.xml:37
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2620 msgid ""
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2621 "Because each Linux distribution has its own packaging tools, policies, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2622 "rate of development, it's difficult to give a comprehensive set of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2623 "instructions on how to install Mercurial binaries. The version of Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2624 "that you will end up with can vary depending on how active the person is who "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2625 "maintains the package for your distribution."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2626 msgstr ""
743
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2627 "由于每种 Linux 发行版都有自己的包管理工具,开发策略和进度,从而很难给出安装 "
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2628 "Mercurial 二进制包的全面说明。你安装的 Mercurial 版本,在很大程度上依赖于你所"
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2629 "使用的发行版的 Mercurial 维护者的活跃程度。"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2630
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2631 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2632 #: ../en/ch01-tour-basic.xml:44
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2633 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2634 "To keep things simple, I will focus on installing Mercurial from the command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2635 "line under the most popular Linux distributions. Most of these distributions "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2636 "provide graphical package managers that will let you install Mercurial with a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2637 "single click; the package name to look for is <literal>mercurial</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2638 msgstr ""
743
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2639 "为了让事情简单,我会致力于说明在最流行的 Linux 发行版中,从命令行安装 "
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2640 "Mercurial 的方法。这些发行版都提供了图形界面的包管理器,让你通过点击鼠标安装 "
3b864df20e3b Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 742
diff changeset
2641 "Mercurial;寻找的包名称是 <literal>mercurial</literal>。"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2642
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2643 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2644 #: ../en/ch01-tour-basic.xml:52
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2645 msgid "Ubuntu and Debian:"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2646 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2647
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2648 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2649 #: ../en/ch01-tour-basic.xml:54
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2650 #, fuzzy
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2651 msgid "Fedora and OpenSUSE:"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2652 msgstr "OpenSUSE:"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2653
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2654 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2655 #: ../en/ch01-tour-basic.xml:56
745
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2656 msgid "Gentoo:"
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2657 msgstr "Gentoo:"
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2658
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2659 #. type: Content of: <book><chapter><sect1><sect2><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2660 #: ../en/ch01-tour-basic.xml:62
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2661 msgid "Solaris"
745
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2662 msgstr "Solaris"
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2663
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2664 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2665 #: ../en/ch01-tour-basic.xml:64
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2666 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2667 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2668 "SunFreeWare, at <ulink url=\"http://www.sunfreeware.com\">http://www."
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2669 "sunfreeware.com</ulink>, provides prebuilt packages of Mercurial."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2670 msgstr ""
745
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2671 "位于 <ulink url=\"http://www.sunfreeware.com\">http://www.sunfreeware.com</"
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2672 "ulink> 的 SunFreeWare 是很好的二进制安装源,它包含 Intel 和 Sparc 架构的 32 位"
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2673 "和 64 位包,包含 Mercurial 的当前版本。"
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2674
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2675 #. type: Content of: <book><chapter><sect1><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2676 #: ../en/ch01-tour-basic.xml:73
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2677 msgid "Getting started"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2678 msgstr "开始"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2679
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2680 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2681 #: ../en/ch01-tour-basic.xml:75
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2682 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2683 "To begin, we'll use the <command role=\"hg-cmd\">hg version</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2684 "to find out whether Mercurial is actually installed properly. The actual "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2685 "version information that it prints isn't so important; it's whether it prints "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2686 "anything at all that we care about."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2687 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2688
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2689 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2690 #: ../en/ch01-tour-basic.xml:84
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2691 msgid "Built-in help"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2692 msgstr "内置帮助"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2693
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2694 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2695 #: ../en/ch01-tour-basic.xml:86
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2696 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2697 "Mercurial provides a built-in help system. This is invaluable for those "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2698 "times when you find yourself stuck trying to remember how to run a command. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2699 "If you are completely stuck, simply run <command role=\"hg-cmd\">hg help</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2700 "command>; it will print a brief list of commands, along with a description of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2701 "what each does. If you ask for help on a specific command (as below), it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2702 "prints more detailed information."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2703 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2704
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2705 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2706 #: ../en/ch01-tour-basic.xml:97
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2707 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2708 "For a more impressive level of detail (which you won't usually need) run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2709 "<command role=\"hg-cmd\">hg help <option role=\"hg-opt-global\">-v</option></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2710 "command>. The <option role=\"hg-opt-global\">-v</option> option is short for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2711 "<option role=\"hg-opt-global\">--verbose</option>, and tells Mercurial to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2712 "print more information than it usually would."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2713 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2714
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2715 #. type: Content of: <book><chapter><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2716 #: ../en/ch01-tour-basic.xml:108
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2717 msgid "Working with a repository"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2718 msgstr "使用版本库"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2719
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2720 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2721 #: ../en/ch01-tour-basic.xml:110
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2722 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2723 "In Mercurial, everything happens inside a <emphasis>repository</emphasis>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2724 "The repository for a project contains all of the files that <quote>belong to</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2725 "quote> that project, along with a historical record of the project's files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2726 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2727
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2728 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2729 #: ../en/ch01-tour-basic.xml:116
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2730 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2731 "There's nothing particularly magical about a repository; it is simply a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2732 "directory tree in your filesystem that Mercurial treats as special. You can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2733 "rename or delete a repository any time you like, using either the command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2734 "line or your file browser."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2735 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2736
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2737 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2738 #: ../en/ch01-tour-basic.xml:123
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2739 msgid "Making a local copy of a repository"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2740 msgstr "创建版本库的工作副本"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2741
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2742 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2743 #: ../en/ch01-tour-basic.xml:125
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2744 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2745 "<emphasis>Copying</emphasis> a repository is just a little bit special. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2746 "While you could use a normal file copying command to make a copy of a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2747 "repository, it's best to use a built-in command that Mercurial provides. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2748 "This command is called <command role=\"hg-cmd\">hg clone</command>, because "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2749 "it makes an identical copy of an existing repository."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2750 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2751
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2752 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2753 #: ../en/ch01-tour-basic.xml:134
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2754 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2755 "One advantage of using <command role=\"hg-cmd\">hg clone</command> is that, "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2756 "as we can see above, it lets us clone repositories over the network. Another "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2757 "is that it remembers where we cloned from, which we'll find useful soon when "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2758 "we want to fetch new changes from another repository."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2759 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2760
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2761 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2762 #: ../en/ch01-tour-basic.xml:140
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2763 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2764 "If our clone succeeded, we should now have a local directory called <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2765 "class=\"directory\">hello</filename>. This directory will contain some files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2766 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2767
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2768 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2769 #: ../en/ch01-tour-basic.xml:146
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2770 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2771 "These files have the same contents and history in our repository as they do "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2772 "in the repository we cloned."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2773 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2774
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2775 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2776 #: ../en/ch01-tour-basic.xml:149
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2777 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2778 "Every Mercurial repository is complete, self-contained, and independent. It "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2779 "contains its own private copy of a project's files and history. As we just "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2780 "mentioned, a cloned repository remembers the location of the repository it "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2781 "was cloned from, but Mercurial will not communicate with that repository, or "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2782 "any other, unless you tell it to."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2783 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2784
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2785 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2786 #: ../en/ch01-tour-basic.xml:156
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2787 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2788 "What this means for now is that we're free to experiment with our repository, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2789 "safe in the knowledge that it's a private <quote>sandbox</quote> that won't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2790 "affect anyone else."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2791 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2792
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2793 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2794 #: ../en/ch01-tour-basic.xml:162
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2795 msgid "What's in a repository?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2796 msgstr "什么是版本库?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2797
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2798 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2799 #: ../en/ch01-tour-basic.xml:164
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2800 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2801 "When we take a more detailed look inside a repository, we can see that it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2802 "contains a directory named <filename class=\"directory\">.hg</filename>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2803 "This is where Mercurial keeps all of its metadata for the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2804 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2805
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2806 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2807 #: ../en/ch01-tour-basic.xml:171
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2808 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2809 "The contents of the <filename class=\"directory\">.hg</filename> directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2810 "and its subdirectories are private to Mercurial. Every other file and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2811 "directory in the repository is yours to do with as you please."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2812 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2813
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2814 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2815 #: ../en/ch01-tour-basic.xml:177
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2816 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2817 "To introduce a little terminology, the <filename class=\"directory\">.hg</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2818 "filename> directory is the <quote>real</quote> repository, and all of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2819 "files and directories that coexist with it are said to live in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2820 "<emphasis>working directory</emphasis>. An easy way to remember the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2821 "distinction is that the <emphasis>repository</emphasis> contains the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2822 "<emphasis>history</emphasis> of your project, while the <emphasis>working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2823 "directory</emphasis> contains a <emphasis>snapshot</emphasis> of your project "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2824 "at a particular point in history."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2825 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2826
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2827 #. type: Content of: <book><chapter><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2828 #: ../en/ch01-tour-basic.xml:192
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2829 msgid "A tour through history"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2830 msgstr "回溯历史"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2831
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2832 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2833 #: ../en/ch01-tour-basic.xml:194
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2834 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2835 "One of the first things we might want to do with a new, unfamiliar repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2836 "is understand its history. The <command role=\"hg-cmd\">hg log</command> "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2837 "command gives us a view of the history of changes in the repository."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2838 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2839
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2840 #. type: Content of: <book><chapter><sect1><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2841 #: ../en/ch01-tour-basic.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2842 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2843 "By default, this command prints a brief paragraph of output for each change "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2844 "to the project that was recorded. In Mercurial terminology, we call each of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2845 "these recorded events a <emphasis>changeset</emphasis>, because it can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2846 "contain a record of changes to several files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2847 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2848
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2849 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2850 #: ../en/ch01-tour-basic.xml:207
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2851 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2852 "The fields in a record of output from <command role=\"hg-cmd\">hg log</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2853 "command> are as follows."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2854 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2855
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2856 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2857 #: ../en/ch01-tour-basic.xml:211
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2858 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2859 "<literal>changeset</literal>: This field has the format of a number, followed "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2860 "by a colon, followed by a hexadecimal (or <emphasis>hex</emphasis>) string. "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2861 "These are <emphasis>identifiers</emphasis> for the changeset. The hex string "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2862 "is a unique identifier: the same hex string will always refer to the same "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2863 "changeset. The number is shorter and easier to type than the hex string, but "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2864 "it isn't unique: the same number in two different clones of a repository may "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2865 "identify different changesets. Why provide the number at all, then? For "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2866 "local convenience."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2867 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2868
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2869 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2870 #: ../en/ch01-tour-basic.xml:223
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2871 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2872 "<literal>user</literal>: The identity of the person who created the "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2873 "changeset. This is a free-form field, but it most often contains a person's "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2874 "name and email address."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2875 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2876
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2877 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
2878 #: ../en/ch01-tour-basic.xml:227
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2879 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2880 "<literal>date</literal>: The date and time on which the changeset was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2881 "created, and the timezone in which it was created. (The date and time are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2882 "local to that timezone; they display what time and date it was for the person "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2883 "who created the changeset.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2884 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2885
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2886 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2887 #: ../en/ch01-tour-basic.xml:232
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2888 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2889 "<literal>summary</literal>: The first line of the text message that the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2890 "creator of the changeset entered to describe the changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2891 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2892
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2893 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2894 #: ../en/ch01-tour-basic.xml:236
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2895 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2896 "Some changesets, such as the first in the list above, have a <literal>tag</"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2897 "literal> field. A tag is another way to identify a changeset, by giving it "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2898 "an easy-to-remember name. (The tag named <literal>tip</literal> is special: "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2899 "it always refers to the newest change in a repository.)"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2900 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2901
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2902 #. type: Content of: <book><chapter><sect1><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2903 #: ../en/ch01-tour-basic.xml:244
745
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2904 msgid ""
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2905 "The default output printed by <command role=\"hg-cmd\">hg log</command> is "
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2906 "purely a summary; it is missing a lot of detail."
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2907 msgstr ""
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2908
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
2909 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2910 #: ../en/ch01-tour-basic.xml:248
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2911 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2912 "<xref linkend=\"fig:tour-basic:history\"/> provides a graphical "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2913 "representation of the history of the <filename class=\"directory\">hello</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2914 "filename> repository, to make it a little easier to see which direction "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2915 "history is <quote>flowing</quote> in. We'll be returning to this figure "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2916 "several times in this chapter and the chapter that follows."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2917 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2918
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2919 #. type: Content of: <book><chapter><sect1><figure><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2920 #: ../en/ch01-tour-basic.xml:257
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2921 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2922 "Graphical history of the <filename class=\"directory\">hello</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2923 "repository"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
2924 msgstr "版本库 <filename class=\"directory\">hello</filename> 的历史图"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2925
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2926 #. type: Content of: <book><chapter><sect1><figure>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2927 #: ../en/ch01-tour-basic.xml:259 ../en/ch02-tour-merge.xml:50
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2928 #: ../en/ch02-tour-merge.xml:181 ../en/ch03-concepts.xml:293
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2929 msgid "<placeholder type=\"mediaobject\" id=\"0\"/>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2930 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2931
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2932 #. type: Content of: <book><chapter><sect1><figure><mediaobject>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2933 #: ../en/ch01-tour-basic.xml:260
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2934 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2935 "<imageobject><imagedata fileref=\"figs/tour-history.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2936 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2937
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2938 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject><textobject><phrase>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2939 #: ../en/ch01-tour-basic.xml:261 ../en/ch02-tour-merge.xml:52
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2940 #: ../en/ch02-tour-merge.xml:82 ../en/ch02-tour-merge.xml:129
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2941 #: ../en/ch02-tour-merge.xml:183 ../en/ch02-tour-merge.xml:254
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2942 #: ../en/ch03-concepts.xml:57 ../en/ch03-concepts.xml:106
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2943 #: ../en/ch03-concepts.xml:191 ../en/ch03-concepts.xml:295
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2944 #: ../en/ch03-concepts.xml:346 ../en/ch03-concepts.xml:361
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2945 #: ../en/ch03-concepts.xml:402 ../en/ch03-concepts.xml:422
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2946 #: ../en/ch03-concepts.xml:465 ../en/ch05-collab.xml:276
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2947 #: ../en/ch08-undo.xml:365 ../en/ch08-undo.xml:412 ../en/ch08-undo.xml:477
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2948 #: ../en/ch08-undo.xml:515 ../en/ch11-mq.xml:412
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2949 msgid "XXX add text"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2950 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2951
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2952 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2953 #: ../en/ch01-tour-basic.xml:266
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2954 msgid "Changesets, revisions, and talking to other people"
764
53f179393f5c Update Chinese translation
Dongsheng Song <songdongsheng@live.cn>
parents: 760
diff changeset
2955 msgstr "修改集,版本,与其它用户交互"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2956
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2957 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2958 #: ../en/ch01-tour-basic.xml:269
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2959 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2960 "As English is a notoriously sloppy language, and computer science has a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2961 "hallowed history of terminological confusion (why use one term when four will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2962 "do?), revision control has a variety of words and phrases that mean the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2963 "thing. If you are talking about Mercurial history with other people, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2964 "will find that the word <quote>changeset</quote> is often compressed to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2965 "<quote>change</quote> or (when written) <quote>cset</quote>, and sometimes a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2966 "changeset is referred to as a <quote>revision</quote> or a <quote>rev</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2967 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2968
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2969 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2970 #: ../en/ch01-tour-basic.xml:279
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2971 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2972 "While it doesn't matter what <emphasis>word</emphasis> you use to refer to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2973 "the concept of <quote>a changeset</quote>, the <emphasis>identifier</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2974 "emphasis> that you use to refer to <quote>a <emphasis>specific</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2975 "changeset</quote> is of great importance. Recall that the <literal>changeset</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2976 "literal> field in the output from <command role=\"hg-cmd\">hg log</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2977 "identifies a changeset using both a number and a hexadecimal string."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2978 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2979
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2980 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2981 #: ../en/ch01-tour-basic.xml:288
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2982 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2983 "The revision number is a handy notation that is <emphasis>only valid in that "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2984 "repository</emphasis>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2985 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2986
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2987 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
2988 #: ../en/ch01-tour-basic.xml:291
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2989 msgid ""
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2990 "The hexadecimal string is the <emphasis>permanent, unchanging identifier</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2991 "emphasis> that will always identify that exact changeset in <emphasis>every</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2992 "emphasis> copy of the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2993 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2994
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2995 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
2996 #: ../en/ch01-tour-basic.xml:297
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2997 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2998 "This distinction is important. If you send someone an email talking about "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
2999 "<quote>revision 33</quote>, there's a high likelihood that their revision 33 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3000 "will <emphasis>not be the same</emphasis> as yours. The reason for this is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3001 "that a revision number depends on the order in which changes arrived in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3002 "repository, and there is no guarantee that the same changes will happen in "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3003 "the same order in different repositories. Three changes <literal>a,b,c</"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3004 "literal> can easily appear in one repository as <literal>0,1,2</literal>, "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3005 "while in another as <literal>0,2,1</literal>."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3006 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3007
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3008 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3009 #: ../en/ch01-tour-basic.xml:309
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3010 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3011 "Mercurial uses revision numbers purely as a convenient shorthand. If you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3012 "need to discuss a changeset with someone, or make a record of a changeset for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3013 "some other reason (for example, in a bug report), use the hexadecimal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3014 "identifier."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3015 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3016
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3017 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3018 #: ../en/ch01-tour-basic.xml:317
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3019 msgid "Viewing specific revisions"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3020 msgstr "察看指定版本"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3021
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3022 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3023 #: ../en/ch01-tour-basic.xml:319
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3024 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3025 "To narrow the output of <command role=\"hg-cmd\">hg log</command> down to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3026 "single revision, use the <option role=\"hg-opt-log\">-r</option> (or <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3027 "role=\"hg-opt-log\">--rev</option>) option. You can use either a revision "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3028 "number or a hexadecimal identifier, and you can provide as many revisions as "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3029 "you want."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3030 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3031
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3032 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3033 #: ../en/ch01-tour-basic.xml:328
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3034 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3035 "If you want to see the history of several revisions without having to list "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3036 "each one, you can use <emphasis>range notation</emphasis>; this lets you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3037 "express the idea <quote>I want all revisions between <literal>abc</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3038 "and <literal>def</literal>, inclusive</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3039 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3040
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3041 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3042 #: ../en/ch01-tour-basic.xml:336
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3043 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3044 "Mercurial also honours the order in which you specify revisions, so <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3045 "role=\"hg-cmd\">hg log -r 2:4</command> prints 2, 3, and 4. while <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3046 "role=\"hg-cmd\">hg log -r 4:2</command> prints 4, 3, and 2."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3047 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3048
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3049 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3050 #: ../en/ch01-tour-basic.xml:343
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3051 msgid "More detailed information"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3052 msgstr "更详细的信息"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3053
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3054 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3055 #: ../en/ch01-tour-basic.xml:345
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3056 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3057 "While the summary information printed by <command role=\"hg-cmd\">hg log</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3058 "command> is useful if you already know what you're looking for, you may need "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3059 "to see a complete description of the change, or a list of the files changed, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3060 "if you're trying to decide whether a changeset is the one you're looking for. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3061 "The <command role=\"hg-cmd\">hg log</command> command's <option role=\"hg-opt-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3062 "global\">-v</option> (or <option role=\"hg-opt-global\">--verbose</option>) "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3063 "option gives you this extra detail."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3064 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3065
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3066 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3067 #: ../en/ch01-tour-basic.xml:357
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3068 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3069 "If you want to see both the description and content of a change, add the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3070 "<option role=\"hg-opt-log\">-p</option> (or <option role=\"hg-opt-log\">--"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3071 "patch</option>) option. This displays the content of a change as a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3072 "<emphasis>unified diff</emphasis> (if you've never seen a unified diff "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3073 "before, see <xref linkend=\"sec:mq:patch\"/> for an overview)."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3074 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3075
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3076 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3077 #: ../en/ch01-tour-basic.xml:367
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3078 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3079 "The <option role=\"hg-opt-log\">-p</option> option is tremendously useful, so "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3080 "it's well worth remembering."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3081 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3082
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3083 #. type: Content of: <book><chapter><sect1><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3084 #: ../en/ch01-tour-basic.xml:374
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3085 msgid "All about command options"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3086 msgstr "命令选项"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3087
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3088 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3089 #: ../en/ch01-tour-basic.xml:376
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3090 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3091 "Let's take a brief break from exploring Mercurial commands to discuss a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3092 "pattern in the way that they work; you may find this useful to keep in mind "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3093 "as we continue our tour."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3094 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3095
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3096 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3097 #: ../en/ch01-tour-basic.xml:380
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3098 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3099 "Mercurial has a consistent and straightforward approach to dealing with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3100 "options that you can pass to commands. It follows the conventions for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3101 "options that are common to modern Linux and Unix systems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3102 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3103
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3104 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3105 #: ../en/ch01-tour-basic.xml:387
745
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3106 msgid ""
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3107 "Every option has a long name. For example, as we've already seen, the "
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3108 "<command role=\"hg-cmd\">hg log</command> command accepts a <option role=\"hg-"
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3109 "opt-log\">--rev</option> option."
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3110 msgstr ""
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3111
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3112 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3113 #: ../en/ch01-tour-basic.xml:393
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3114 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3115 "Most options have short names, too. Instead of <option role=\"hg-opt-log\">--"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3116 "rev</option>, we can use <option role=\"hg-opt-log\">-r</option>. (The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3117 "reason that some options don't have short names is that the options in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3118 "question are rarely used.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3119 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3120
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3121 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3122 #: ../en/ch01-tour-basic.xml:400
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3123 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3124 "Long options start with two dashes (e.g. <option role=\"hg-opt-log\">--rev</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3125 "option>), while short options start with one (e.g. <option role=\"hg-opt-log"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3126 "\">-r</option>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3127 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3128
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3129 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3130 #: ../en/ch01-tour-basic.xml:406
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3131 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3132 "Option naming and usage is consistent across commands. For example, every "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3133 "command that lets you specify a changeset ID or revision number accepts both "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3134 "<option role=\"hg-opt-log\">-r</option> and <option role=\"hg-opt-log\">--"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3135 "rev</option> arguments."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3136 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3137
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3138 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3139 #: ../en/ch01-tour-basic.xml:413
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3140 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3141 "If you are using short options, you can save typing by running them together. "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3142 "For example, the command <command role=\"hg-cmd\">hg log -v -p -r 2</command> "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3143 "can be written as <command role=\"hg-cmd\">hg log -vpr2</command>."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3144 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3145
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3146 #. type: Content of: <book><chapter><sect1><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3147 #: ../en/ch01-tour-basic.xml:420
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3148 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3149 "In the examples throughout this book, I use short options instead of long. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3150 "This just reflects my own preference, so don't read anything significant into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3151 "it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3152 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3153
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3154 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3155 #: ../en/ch01-tour-basic.xml:424
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3156 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3157 "Most commands that print output of some kind will print more output when "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3158 "passed a <option role=\"hg-opt-global\">-v</option> (or <option role=\"hg-opt-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3159 "global\">--verbose</option>) option, and less when passed <option role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3160 "opt-global\">-q</option> (or <option role=\"hg-opt-global\">--quiet</option>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3161 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3162
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3163 #. type: Content of: <book><chapter><sect1><note><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3164 #: ../en/ch01-tour-basic.xml:431
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3165 msgid "Option naming consistency"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3166 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3167
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3168 #. type: Content of: <book><chapter><sect1><note><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3169 #: ../en/ch01-tour-basic.xml:433
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3170 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3171 "Almost always, Mercurial commands use consistent option names to refer to the "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3172 "same concepts. For instance, if a command deals with changesets, you'll "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3173 "always identify them with <option role=\"hg-opt-log\">--rev</option> or "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3174 "<option role=\"hg-opt-log\">-r</option>. This consistent use of option names "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3175 "makes it easier to remember what options a particular command takes."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3176 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3177
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3178 #. type: Content of: <book><chapter><sect1><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3179 #: ../en/ch01-tour-basic.xml:444
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3180 msgid "Making and reviewing changes"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3181 msgstr "创建和复审修改"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3182
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3183 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3184 #: ../en/ch01-tour-basic.xml:446
745
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3185 msgid ""
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3186 "Now that we have a grasp of viewing history in Mercurial, let's take a look "
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3187 "at making some changes and examining them."
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3188 msgstr ""
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3189
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
3190 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3191 #: ../en/ch01-tour-basic.xml:450
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3192 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3193 "The first thing we'll do is isolate our experiment in a repository of its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3194 "own. We use the <command role=\"hg-cmd\">hg clone</command> command, but we "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3195 "don't need to clone a copy of the remote repository. Since we already have a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3196 "copy of it locally, we can just clone that instead. This is much faster than "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3197 "cloning over the network, and cloning a local repository uses less disk space "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3198 "in most cases, too<placeholder type=\"footnote\" id=\"0\"/>."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3199 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3200
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3201 #. type: Content of: <book><chapter><sect1><para><footnote><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3202 #: ../en/ch01-tour-basic.xml:457
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3203 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3204 "The saving of space arises when source and destination repositories are on "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3205 "the same filesystem, in which case Mercurial will use hardlinks to do copy-on-"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3206 "write sharing of its internal metadata. If that explanation meant nothing to "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3207 "you, don't worry: everything happens transparently and automatically, and you "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3208 "don't need to understand it."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3209 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3210
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3211 #. type: Content of: <book><chapter><sect1><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3212 #: ../en/ch01-tour-basic.xml:467
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3213 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3214 "As an aside, it's often good practice to keep a <quote>pristine</quote> copy "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3215 "of a remote repository around, which you can then make temporary clones of to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3216 "create sandboxes for each task you want to work on. This lets you work on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3217 "multiple tasks in parallel, each isolated from the others until it's complete "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3218 "and you're ready to integrate it back. Because local clones are so cheap, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3219 "there's almost no overhead to cloning and destroying repositories whenever "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3220 "you want."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3221 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3222
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3223 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3224 #: ../en/ch01-tour-basic.xml:476
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3225 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3226 "In our <filename class=\"directory\">my-hello</filename> repository, we have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3227 "a file <filename>hello.c</filename> that contains the classic <quote>hello, "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3228 "world</quote> program."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3229 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3230
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3231 #. type: Content of: <book><chapter><sect1><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3232 #: ../en/ch01-tour-basic.xml:482
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3233 msgid "Let's edit this file so that it prints a second line of output."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3234 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3235
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3236 #. type: Content of: <book><chapter><sect1><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3237 #: ../en/ch01-tour-basic.xml:487
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3238 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3239 "Mercurial's <command role=\"hg-cmd\">hg status</command> command will tell us "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3240 "what Mercurial knows about the files in the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3241 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3242
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3243 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3244 #: ../en/ch01-tour-basic.xml:493
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3245 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3246 "The <command role=\"hg-cmd\">hg status</command> command prints no output for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3247 "some files, but a line starting with <quote><literal>M</literal></quote> for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3248 "<filename>hello.c</filename>. Unless you tell it to, <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3249 "\">hg status</command> will not print any output for files that have not been "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3250 "modified."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3251 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3252
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3253 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3254 #: ../en/ch01-tour-basic.xml:500
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3255 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3256 "The <quote><literal>M</literal></quote> indicates that Mercurial has noticed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3257 "that we modified <filename>hello.c</filename>. We didn't need to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3258 "<emphasis>inform</emphasis> Mercurial that we were going to modify the file "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3259 "before we started, or that we had modified the file after we were done; it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3260 "was able to figure this out itself."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3261 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3262
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3263 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3264 #: ../en/ch01-tour-basic.xml:508
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3265 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3266 "It's somewhat helpful to know that we've modified <filename>hello.c</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3267 "filename>, but we might prefer to know exactly <emphasis>what</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3268 "changes we've made to it. To do this, we use the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3269 "diff</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3270 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3271
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3272 #. type: Content of: <book><chapter><sect1><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3273 #: ../en/ch01-tour-basic.xml:517 ../en/ch11-mq.xml:187
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3274 msgid "Understanding patches"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3275 msgstr "理解补丁"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3276
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3277 #. type: Content of: <book><chapter><sect1><tip><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3278 #: ../en/ch01-tour-basic.xml:519
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3279 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3280 "Remember to take a look at <xref linkend=\"sec:mq:patch\"/> if you don't know "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3281 "how to read output above."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3282 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3283
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3284 #. type: Content of: <book><chapter><sect1><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3285 #: ../en/ch01-tour-basic.xml:525
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3286 msgid "Recording changes in a new changeset"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3287 msgstr "在新修改集中记录修改"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3288
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3289 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3290 #: ../en/ch01-tour-basic.xml:527
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3291 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3292 "We can modify files, build and test our changes, and use <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3293 "cmd\">hg status</command> and <command role=\"hg-cmd\">hg diff</command> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3294 "review our changes, until we're satisfied with what we've done and arrive at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3295 "a natural stopping point where we want to record our work in a new changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3296 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3297
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3298 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3299 #: ../en/ch01-tour-basic.xml:534
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3300 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3301 "The <command role=\"hg-cmd\">hg commit</command> command lets us create a new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3302 "changeset; we'll usually refer to this as <quote>making a commit</quote> or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3303 "<quote>committing</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3304 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3305
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3306 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3307 #: ../en/ch01-tour-basic.xml:540
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3308 msgid "Setting up a username"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3309 msgstr "配置用户名称"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3310
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3311 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3312 #: ../en/ch01-tour-basic.xml:542
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3313 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3314 "When you try to run <command role=\"hg-cmd\">hg commit</command> for the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3315 "first time, it is not guaranteed to succeed. Mercurial records your name and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3316 "address with each change that you commit, so that you and others will later "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3317 "be able to tell who made each change. Mercurial tries to automatically "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3318 "figure out a sensible username to commit the change with. It will attempt "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3319 "each of the following methods, in order:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3320 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3321
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3322 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3323 #: ../en/ch01-tour-basic.xml:551
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3324 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3325 "If you specify a <option role=\"hg-opt-commit\">-u</option> option to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3326 "<command role=\"hg-cmd\">hg commit</command> command on the command line, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3327 "followed by a username, this is always given the highest precedence."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3328 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3329
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3330 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3331 #: ../en/ch01-tour-basic.xml:556
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3332 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3333 "If you have set the <envar>HGUSER</envar> environment variable, this is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3334 "checked next."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3335 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3336
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3337 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3338 #: ../en/ch01-tour-basic.xml:559
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3339 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3340 "If you create a file in your home directory called <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3341 "\">.hgrc</filename>, with a <envar role=\"rc-item-ui\">username</envar> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3342 "entry, that will be used next. To see what the contents of this file should "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3343 "look like, refer to <xref linkend=\"sec:tour-basic:username\"/> below."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3344 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3345
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3346 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3347 #: ../en/ch01-tour-basic.xml:567
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3348 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3349 "If you have set the <envar>EMAIL</envar> environment variable, this will be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3350 "used next."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3351 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3352
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3353 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3354 #: ../en/ch01-tour-basic.xml:570
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3355 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3356 "Mercurial will query your system to find out your local user name and host "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3357 "name, and construct a username from these components. Since this often "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3358 "results in a username that is not very useful, it will print a warning if it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3359 "has to do this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3360 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3361
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3362 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3363 #: ../en/ch01-tour-basic.xml:577
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3364 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3365 "If all of these mechanisms fail, Mercurial will fail, printing an error "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3366 "message. In this case, it will not let you commit until you set up a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3367 "username."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3368 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3369
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3370 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3371 #: ../en/ch01-tour-basic.xml:581
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3372 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3373 "You should think of the <envar>HGUSER</envar> environment variable and the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3374 "<option role=\"hg-opt-commit\">-u</option> option to the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3375 "cmd\">hg commit</command> command as ways to <emphasis>override</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3376 "Mercurial's default selection of username. For normal use, the simplest and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3377 "most robust way to set a username for yourself is by creating a <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3378 "role=\"special\">.hgrc</filename> file; see below for details."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3379 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3380
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3381 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3382 #: ../en/ch01-tour-basic.xml:590
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3383 msgid "Creating a Mercurial configuration file"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3384 msgstr "创建 Mercurial 的配置文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3385
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3386 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3387 #: ../en/ch01-tour-basic.xml:592
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3388 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3389 "To set a user name, use your favourite editor to create a file called "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3390 "<filename role=\"special\">.hgrc</filename> in your home directory. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3391 "Mercurial will use this file to look up your personalised configuration "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3392 "settings. The initial contents of your <filename role=\"special\">.hgrc</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3393 "filename> should look like this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3394 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3395
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3396 #. type: Content of: <book><chapter><sect1><sect2><sect3><remark>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3397 #: ../en/ch01-tour-basic.xml:600
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3398 msgid "Figure out what the appropriate directory is on Windows."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3399 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3400
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3401 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3402 #: ../en/ch01-tour-basic.xml:607
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3403 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3404 "The <quote><literal>[ui]</literal></quote> line begins a <emphasis>section</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3405 "emphasis> of the config file, so you can read the <quote><literal>username "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3406 "= ...</literal></quote> line as meaning <quote>set the value of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3407 "<literal>username</literal> item in the <literal>ui</literal> section</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3408 "quote>. A section continues until a new section begins, or the end of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3409 "file. Mercurial ignores empty lines and treats any text from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3410 "<quote><literal>#</literal></quote> to the end of a line as a comment."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3411 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3412
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3413 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3414 #: ../en/ch01-tour-basic.xml:620
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3415 msgid "Choosing a user name"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3416 msgstr "选择用户名称"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3417
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3418 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3419 #: ../en/ch01-tour-basic.xml:622
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3420 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3421 "You can use any text you like as the value of the <literal>username</literal> "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3422 "config item, since this information is for reading by other people, but will "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3423 "not be interpreted by Mercurial. The convention that most people follow is "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3424 "to use their name and email address, as in the example above."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3425 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3426
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3427 #. type: Content of: <book><chapter><sect1><sect2><sect3><note><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3428 #: ../en/ch01-tour-basic.xml:629
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3429 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3430 "Mercurial's built-in web server obfuscates email addresses, to make it more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3431 "difficult for the email harvesting tools that spammers use. This reduces the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3432 "likelihood that you'll start receiving more junk email if you publish a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3433 "Mercurial repository on the web."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3434 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3435
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3436 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3437 #: ../en/ch01-tour-basic.xml:639
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3438 msgid "Writing a commit message"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3439 msgstr "写提交日志"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3440
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3441 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3442 #: ../en/ch01-tour-basic.xml:641
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3443 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3444 "When we commit a change, Mercurial drops us into a text editor, to enter a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3445 "message that will describe the modifications we've made in this changeset. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3446 "This is called the <emphasis>commit message</emphasis>. It will be a record "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3447 "for readers of what we did and why, and it will be printed by <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3448 "\"hg-cmd\">hg log</command> after we've finished committing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3449 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3450
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3451 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3452 #: ../en/ch01-tour-basic.xml:651
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3453 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3454 "The editor that the <command role=\"hg-cmd\">hg commit</command> command "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3455 "drops us into will contain an empty line or two, followed by a number of "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3456 "lines starting with <quote><literal>HG:</literal></quote>."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3457 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3458
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3459 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3460 #: ../en/ch01-tour-basic.xml:665
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3461 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3462 "Mercurial ignores the lines that start with <quote><literal>HG:</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3463 "quote>; it uses them only to tell us which files it's recording changes to. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3464 "Modifying or deleting these lines has no effect."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3465 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3466
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3467 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3468 #: ../en/ch01-tour-basic.xml:671
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3469 msgid "Writing a good commit message"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3470 msgstr "写好提交日志"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3471
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3472 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3473 #: ../en/ch01-tour-basic.xml:673
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3474 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3475 "Since <command role=\"hg-cmd\">hg log</command> only prints the first line of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3476 "a commit message by default, it's best to write a commit message whose first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3477 "line stands alone. Here's a real example of a commit message that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3478 "<emphasis>doesn't</emphasis> follow this guideline, and hence has a summary "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3479 "that is not readable."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3480 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3481
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3482 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3483 #: ../en/ch01-tour-basic.xml:687
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3484 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3485 "As far as the remainder of the contents of the commit message are concerned, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3486 "there are no hard-and-fast rules. Mercurial itself doesn't interpret or care "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3487 "about the contents of the commit message, though your project may have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3488 "policies that dictate a certain kind of formatting."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3489 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3490
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3491 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3492 #: ../en/ch01-tour-basic.xml:693
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3493 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3494 "My personal preference is for short, but informative, commit messages that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3495 "tell me something that I can't figure out with a quick glance at the output "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3496 "of <command role=\"hg-cmd\">hg log --patch</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3497 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3498
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3499 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3500 #: ../en/ch01-tour-basic.xml:700
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3501 msgid "Aborting a commit"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3502 msgstr "终止提交"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3503
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3504 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3505 #: ../en/ch01-tour-basic.xml:702
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3506 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3507 "If you decide that you don't want to commit while in the middle of editing a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3508 "commit message, simply exit from your editor without saving the file that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3509 "it's editing. This will cause nothing to happen to either the repository or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3510 "the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3511 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3512
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3513 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3514 #: ../en/ch01-tour-basic.xml:707
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3515 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3516 "If we run the <command role=\"hg-cmd\">hg commit</command> command without "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3517 "any arguments, it records all of the changes we've made, as reported by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3518 "<command role=\"hg-cmd\">hg status</command> and <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3519 "diff</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3520 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3521
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3522 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3523 #: ../en/ch01-tour-basic.xml:714
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3524 msgid "Admiring our new handiwork"
764
53f179393f5c Update Chinese translation
Dongsheng Song <songdongsheng@live.cn>
parents: 760
diff changeset
3525 msgstr "欣赏我们的成果"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3526
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3527 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3528 #: ../en/ch01-tour-basic.xml:716
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3529 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3530 "Once we've finished the commit, we can use the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3531 "tip</command> command to display the changeset we just created. This command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3532 "produces output that is identical to <command role=\"hg-cmd\">hg log</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3533 "command>, but it only displays the newest revision in the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3534 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3535
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3536 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3537 #: ../en/ch01-tour-basic.xml:725
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3538 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3539 "We refer to the newest revision in the repository as the <emphasis>tip "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3540 "revision</emphasis>, or simply the <emphasis>tip</emphasis>."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3541 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3542
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3543 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3544 #: ../en/ch01-tour-basic.xml:729
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3545 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3546 "By the way, the <command role=\"hg-cmd\">hg tip</command> command accepts "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3547 "many of the same options as <command role=\"hg-cmd\">hg log</command>, so "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3548 "<option role=\"hg-opt-global\">-v</option> above indicates <quote>be verbose</"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3549 "quote>, <option role=\"hg-opt-tip\">-p</option> specifies <quote>print a "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3550 "patch</quote>. The use of <option role=\"hg-opt-tip\">-p</option> to print "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3551 "patches is another example of the consistent naming we mentioned earlier."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3552 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3553
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3554 #. type: Content of: <book><chapter><sect1><title>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3555 #: ../en/ch01-tour-basic.xml:741
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3556 msgid "Sharing changes"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3557 msgstr "共享修改"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3558
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3559 #. type: Content of: <book><chapter><sect1><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3560 #: ../en/ch01-tour-basic.xml:743
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3561 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3562 "We mentioned earlier that repositories in Mercurial are self-contained. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3563 "means that the changeset we just created exists only in our <filename class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3564 "\"directory\">my-hello</filename> repository. Let's look at a few ways that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3565 "we can propagate this change into other repositories."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3566 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3567
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3568 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3569 #: ../en/ch01-tour-basic.xml:751
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3570 msgid "Pulling changes from another repository"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3571 msgstr "从其它版本库取得修改"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3572
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3573 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3574 #: ../en/ch01-tour-basic.xml:752
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3575 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3576 "To get started, let's clone our original <filename class=\"directory\">hello</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3577 "filename> repository, which does not contain the change we just committed. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3578 "We'll call our temporary repository <filename class=\"directory\">hello-pull</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3579 "filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3580 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3581
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3582 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3583 #: ../en/ch01-tour-basic.xml:760
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3584 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3585 "We'll use the <command role=\"hg-cmd\">hg pull</command> command to bring "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3586 "changes from <filename class=\"directory\">my-hello</filename> into <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3587 "class=\"directory\">hello-pull</filename>. However, blindly pulling unknown "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3588 "changes into a repository is a somewhat scary prospect. Mercurial provides "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3589 "the <command role=\"hg-cmd\">hg incoming</command> command to tell us what "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3590 "changes the <command role=\"hg-cmd\">hg pull</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3591 "<emphasis>would</emphasis> pull into the repository, without actually pulling "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3592 "the changes in."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3593 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3594
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3595 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3596 #: ../en/ch01-tour-basic.xml:773
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3597 msgid ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3598 "Suppose you're pulling changes from a repository on the network somewhere. "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3599 "While you are looking at the <command role=\"hg-cmd\">hg incoming</command> "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3600 "output, and before you pull those changes, someone might have committed "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3601 "something in the remote repository. This means that it's possible to pull "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3602 "more changes than you saw when using <command role=\"hg-cmd\">hg incoming</"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3603 "command>."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3604 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3605
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3606 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3607 #: ../en/ch01-tour-basic.xml:781
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3608 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3609 "Bringing changes into a repository is a simple matter of running the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3610 "role=\"hg-cmd\">hg pull</command> command, and telling it which repository to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3611 "pull from."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3612 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3613
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3614 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3615 #: ../en/ch01-tour-basic.xml:788
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3616 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3617 "As you can see from the before-and-after output of <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3618 "\">hg tip</command>, we have successfully pulled changes into our "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3619 "repository. There remains one step before we can see these changes in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3620 "working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3621 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3622
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3623 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3624 #: ../en/ch01-tour-basic.xml:796
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3625 msgid "Updating the working directory"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3626 msgstr "更新工作目录"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3627
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3628 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3629 #: ../en/ch01-tour-basic.xml:798
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3630 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3631 "We have so far glossed over the relationship between a repository and its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3632 "working directory. The <command role=\"hg-cmd\">hg pull</command> command "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3633 "that we ran in <xref linkend=\"sec:tour:pull\"/> brought changes into the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3634 "repository, but if we check, there's no sign of those changes in the working "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3635 "directory. This is because <command role=\"hg-cmd\">hg pull</command> does "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3636 "not (by default) touch the working directory. Instead, we use the <command "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3637 "role=\"hg-cmd\">hg update</command> command to do this."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3638 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3639
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3640 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3641 #: ../en/ch01-tour-basic.xml:810
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3642 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3643 "It might seem a bit strange that <command role=\"hg-cmd\">hg pull</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3644 "doesn't update the working directory automatically. There's actually a good "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3645 "reason for this: you can use <command role=\"hg-cmd\">hg update</command> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3646 "update the working directory to the state it was in at <emphasis>any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3647 "revision</emphasis> in the history of the repository. If you had the working "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3648 "directory updated to an old revision—to hunt down the origin of a bug, say—"
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3649 "and ran a <command role=\"hg-cmd\">hg pull</command> which automatically "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3650 "updated the working directory to a new revision, you might not be terribly "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3651 "happy."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3652 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3653
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3654 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3655 #: ../en/ch01-tour-basic.xml:821
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3656 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3657 "However, since pull-then-update is such a common thing to do, Mercurial lets "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3658 "you combine the two by passing the <option role=\"hg-opt-pull\">-u</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3659 "option to <command role=\"hg-cmd\">hg pull</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3660 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3661
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3662 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3663 #: ../en/ch01-tour-basic.xml:826
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3664 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3665 "If you look back at the output of <command role=\"hg-cmd\">hg pull</command> "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3666 "in <xref linkend=\"sec:tour:pull\"/> when we ran it without <option role=\"hg-"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3667 "opt-pull\">-u</option>, you can see that it printed a helpful reminder that "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3668 "we'd have to take an explicit step to update the working directory:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3669 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3670
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3671 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3672 #: ../en/ch01-tour-basic.xml:835
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3673 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3674 "To find out what revision the working directory is at, use the <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3675 "\"hg-cmd\">hg parents</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3676 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3677
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3678 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3679 #: ../en/ch01-tour-basic.xml:841
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3680 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3681 "If you look back at <xref linkend=\"fig:tour-basic:history\"/>, you'll see "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3682 "arrows connecting each changeset. The node that the arrow leads "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3683 "<emphasis>from</emphasis> in each case is a parent, and the node that the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3684 "arrow leads <emphasis>to</emphasis> is its child. The working directory has "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3685 "a parent in just the same way; this is the changeset that the working "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3686 "directory currently contains."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3687 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3688
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3689 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3690 #: ../en/ch01-tour-basic.xml:850
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3691 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3692 "To update the working directory to a particular revision, give a revision "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3693 "number or changeset ID to the <command role=\"hg-cmd\">hg update</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3694 "command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3695 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3696
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3697 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3698 #: ../en/ch01-tour-basic.xml:857
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3699 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3700 "If you omit an explicit revision, <command role=\"hg-cmd\">hg update</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3701 "command> will update to the tip revision, as shown by the second call to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3702 "<command role=\"hg-cmd\">hg update</command> in the example above."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3703 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3704
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3705 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3706 #: ../en/ch01-tour-basic.xml:865
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3707 msgid "Pushing changes to another repository"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3708 msgstr "发布修改到其它版本库"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3709
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3710 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3711 #: ../en/ch01-tour-basic.xml:867
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3712 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3713 "Mercurial lets us push changes to another repository, from the repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3714 "we're currently visiting. As with the example of <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3715 "pull</command> above, we'll create a temporary repository to push our changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3716 "into."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3717 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3718
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3719 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3720 #: ../en/ch01-tour-basic.xml:875
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3721 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3722 "The <command role=\"hg-cmd\">hg outgoing</command> command tells us what "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3723 "changes would be pushed into another repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3724 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3725
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3726 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3727 #: ../en/ch01-tour-basic.xml:881
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3728 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3729 "And the <command role=\"hg-cmd\">hg push</command> command does the actual "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3730 "push."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3731 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3732
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3733 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3734 #: ../en/ch01-tour-basic.xml:887
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3735 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3736 "As with <command role=\"hg-cmd\">hg pull</command>, the <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3737 "\">hg push</command> command does not update the working directory in the "
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3738 "repository that it's pushing changes into. Unlike <command role=\"hg-cmd\">hg "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3739 "pull</command>, <command role=\"hg-cmd\">hg push</command> does not provide a "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3740 "<literal>-u</literal> option that updates the other repository's working "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3741 "directory. This asymmetry is deliberate: the repository we're pushing to "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3742 "might be on a remote server and shared between several people. If we were to "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3743 "update its working directory while someone was working in it, their work "
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3744 "would be disrupted."
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3745 msgstr ""
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3746
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3747 #. type: Content of: <book><chapter><sect1><sect2><para>
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3748 #: ../en/ch01-tour-basic.xml:899
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3749 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3750 "What happens if we try to pull or push changes and the receiving repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3751 "already has those changes? Nothing too exciting."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3752 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3753
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3754 #. type: Content of: <book><chapter><sect1><sect2><title>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3755 #: ../en/ch01-tour-basic.xml:906
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3756 msgid "Sharing changes over a network"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3757 msgstr "通过网络共享修改"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3758
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3759 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3760 #: ../en/ch01-tour-basic.xml:908
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3761 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3762 "The commands we have covered in the previous few sections are not limited to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3763 "working with local repositories. Each works in exactly the same fashion over "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3764 "a network connection; simply pass in a URL instead of a local path."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3765 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3766
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3767 #. type: Content of: <book><chapter><sect1><sect2><para>
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
3768 #: ../en/ch01-tour-basic.xml:916
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3769 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3770 "In this example, we can see what changes we could push to the remote "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3771 "repository, but the repository is understandably not set up to let anonymous "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3772 "users push to it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3773 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3774
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3775 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3776 #: ../en/ch02-tour-merge.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3777 msgid "A tour of Mercurial: merging work"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3778 msgstr "Mercurial 教程: 合并工作"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3779
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3780 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3781 #: ../en/ch02-tour-merge.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3782 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3783 "We've now covered cloning a repository, making changes in a repository, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3784 "pulling or pushing changes from one repository into another. Our next step "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3785 "is <emphasis>merging</emphasis> changes from separate repositories."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3786 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3787
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3788 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3789 #: ../en/ch02-tour-merge.xml:13
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3790 msgid "Merging streams of work"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3791 msgstr "合并的流程"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3792
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3793 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3794 #: ../en/ch02-tour-merge.xml:15
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3795 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3796 "Merging is a fundamental part of working with a distributed revision control "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3797 "tool."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3798 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3799
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3800 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3801 #: ../en/ch02-tour-merge.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3802 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3803 "Alice and Bob each have a personal copy of a repository for a project they're "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3804 "collaborating on. Alice fixes a bug in her repository; Bob adds a new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3805 "feature in his. They want the shared repository to contain both the bug fix "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3806 "and the new feature."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3807 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3808
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3809 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3810 #: ../en/ch02-tour-merge.xml:24
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3811 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3812 "I frequently work on several different tasks for a single project at once, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3813 "each safely isolated in its own repository. Working this way means that I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3814 "often need to merge one piece of my own work with another."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3815 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3816
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3817 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3818 #: ../en/ch02-tour-merge.xml:30
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3819 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3820 "Because merging is such a common thing to need to do, Mercurial makes it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3821 "easy. Let's walk through the process. We'll begin by cloning yet another "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3822 "repository (see how often they spring up?) and making a change in it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3823 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3824
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3825 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
3826 #: ../en/ch02-tour-merge.xml:37
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3827 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3828 "We should now have two copies of <filename>hello.c</filename> with different "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3829 "contents. The histories of the two repositories have also diverged, as "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3830 "illustrated in <xref linkend=\"fig:tour-merge:sep-repos\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3831 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3832
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3833 #. type: Content of: <book><chapter><sect1><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3834 #: ../en/ch02-tour-merge.xml:46
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3835 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3836 "Divergent recent histories of the <filename class=\"directory\">my-hello</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3837 "filename> and <filename class=\"directory\">my-new-hello</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3838 "repositories"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3839 msgstr ""
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
3840 "<filename class=\"directory\">my-hello</filename> 与 <filename class="
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
3841 "\"directory\">my-new-hello</filename> 最新的历史分叉"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3842
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3843 #. type: Content of: <book><chapter><sect1><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3844 #: ../en/ch02-tour-merge.xml:51
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3845 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3846 "<imageobject><imagedata fileref=\"figs/tour-merge-sep-repos.png\"/></"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3847 "imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3848 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3849
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3850 #. type: Content of: <book><chapter><sect1><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3851 #: ../en/ch02-tour-merge.xml:56
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3852 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3853 "We already know that pulling changes from our <filename class=\"directory"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3854 "\">my-hello</filename> repository will have no effect on the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3855 "directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3856 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3857
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3858 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3859 #: ../en/ch02-tour-merge.xml:62
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3860 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3861 "However, the <command role=\"hg-cmd\">hg pull</command> command says "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3862 "something about <quote>heads</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3863 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3864
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3865 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3866 #: ../en/ch02-tour-merge.xml:66
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3867 msgid "Head changesets"
764
53f179393f5c Update Chinese translation
Dongsheng Song <songdongsheng@live.cn>
parents: 760
diff changeset
3868 msgstr "顶点修改集"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3869
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3870 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3871 #: ../en/ch02-tour-merge.xml:68
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3872 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3873 "A head is a change that has no descendants, or children, as they're also "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3874 "known. The tip revision is thus a head, because the newest revision in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3875 "repository doesn't have any children, but a repository can contain more than "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3876 "one head."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3877 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3878
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3879 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3880 #: ../en/ch02-tour-merge.xml:75
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3881 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3882 "Repository contents after pulling from <filename class=\"directory\">my-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3883 "hello</filename> into <filename class=\"directory\">my-new-hello</filename>"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3884 msgstr ""
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
3885 "从 <filename class=\"directory\">my-hello</filename> 拉到 <filename class="
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
3886 "\"directory\">my-new-hello</filename> 之后版本库的内容"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3887
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3888 #. type: Content of: <book><chapter><sect1><sect2><figure>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3889 #: ../en/ch02-tour-merge.xml:78 ../en/ch02-tour-merge.xml:125
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3890 #: ../en/ch02-tour-merge.xml:250 ../en/ch03-concepts.xml:55
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3891 #: ../en/ch03-concepts.xml:104 ../en/ch03-concepts.xml:189
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3892 #: ../en/ch03-concepts.xml:344 ../en/ch03-concepts.xml:359
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3893 #: ../en/ch03-concepts.xml:400 ../en/ch03-concepts.xml:420
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3894 #: ../en/ch03-concepts.xml:461 ../en/ch05-collab.xml:274
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3895 #: ../en/ch08-undo.xml:363 ../en/ch08-undo.xml:410 ../en/ch08-undo.xml:475
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3896 #: ../en/ch08-undo.xml:513 ../en/ch11-mq.xml:410
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3897 msgid " <placeholder type=\"mediaobject\" id=\"0\"/>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3898 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3899
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3900 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3901 #: ../en/ch02-tour-merge.xml:79
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3902 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3903 "<imageobject> <imagedata fileref=\"figs/tour-merge-pull.png\"/> </imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3904 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3905
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3906 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3907 #: ../en/ch02-tour-merge.xml:86
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3908 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3909 "In <xref linkend=\"fig:tour-merge:pull\"/>, you can see the effect of the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3910 "pull from <filename class=\"directory\">my-hello</filename> into <filename "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3911 "class=\"directory\">my-new-hello</filename>. The history that was already "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3912 "present in <filename class=\"directory\">my-new-hello</filename> is "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3913 "untouched, but a new revision has been added. By referring to <xref linkend="
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3914 "\"fig:tour-merge:sep-repos\"/>, we can see that the <emphasis>changeset ID</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3915 "emphasis> remains the same in the new repository, but the <emphasis>revision "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3916 "number</emphasis> has changed. (This, incidentally, is a fine example of why "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3917 "it's not safe to use revision numbers when discussing changesets.) We can "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3918 "view the heads in a repository using the <command role=\"hg-cmd\">hg heads</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3919 "command> command."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3920 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3921
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3922 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3923 #: ../en/ch02-tour-merge.xml:105
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3924 msgid "Performing the merge"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3925 msgstr "执行合并"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3926
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3927 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3928 #: ../en/ch02-tour-merge.xml:107
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3929 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3930 "What happens if we try to use the normal <command role=\"hg-cmd\">hg update</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3931 "command> command to update to the new tip?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3932 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3933
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3934 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3935 #: ../en/ch02-tour-merge.xml:113
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3936 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3937 "Mercurial is telling us that the <command role=\"hg-cmd\">hg update</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3938 "command won't do a merge; it won't update the working directory when it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3939 "thinks we might be wanting to do a merge, unless we force it to do so. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3940 "Instead, we use the <command role=\"hg-cmd\">hg merge</command> command to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3941 "merge the two heads."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3942 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3943
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3944 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3945 #: ../en/ch02-tour-merge.xml:123
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3946 msgid "Working directory and repository during merge, and following commit"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
3947 msgstr "在合并期间,以及提交之后的工作目录与版本库"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3948
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3949 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3950 #: ../en/ch02-tour-merge.xml:126
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3951 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3952 "<imageobject> <imagedata fileref=\"figs/tour-merge-merge.png\"/> </"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3953 "imageobject>"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3954 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3955
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3956 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3957 #: ../en/ch02-tour-merge.xml:133
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3958 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3959 "This updates the working directory so that it contains changes from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3960 "<emphasis>both</emphasis> heads, which is reflected in both the output of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3961 "<command role=\"hg-cmd\">hg parents</command> and the contents of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3962 "<filename>hello.c</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3963 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3964
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3965 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3966 #: ../en/ch02-tour-merge.xml:143
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3967 msgid "Committing the results of the merge"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3968 msgstr "提交合并结果"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3969
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3970 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3971 #: ../en/ch02-tour-merge.xml:145
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3972 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3973 "Whenever we've done a merge, <command role=\"hg-cmd\">hg parents</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3974 "will display two parents until we <command role=\"hg-cmd\">hg commit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3975 "command> the results of the merge."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3976 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3977
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3978 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3979 #: ../en/ch02-tour-merge.xml:152
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3980 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3981 "We now have a new tip revision; notice that it has <emphasis>both</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3982 "of our former heads as its parents. These are the same revisions that were "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3983 "previously displayed by <command role=\"hg-cmd\">hg parents</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3984 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3985
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3986 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3987 #: ../en/ch02-tour-merge.xml:159
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3988 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3989 "In <xref linkend=\"fig:tour-merge:merge\"/>, you can see a representation of "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3990 "what happens to the working directory during the merge, and how this affects "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3991 "the repository when the commit happens. During the merge, the working "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3992 "directory has two parent changesets, and these become the parents of the new "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3993 "changeset."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3994 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3995
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3996 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
3997 #: ../en/ch02-tour-merge.xml:170
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3998 msgid "Merging conflicting changes"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
3999 msgstr "合并有冲突的改变"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4000
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4001 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4002 #: ../en/ch02-tour-merge.xml:172
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4003 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4004 "Most merges are simple affairs, but sometimes you'll find yourself merging "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4005 "changes where each modifies the same portions of the same files. Unless both "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4006 "modifications are identical, this results in a <emphasis>conflict</emphasis>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4007 "where you have to decide how to reconcile the different changes into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4008 "something coherent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4009 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4010
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4011 #. type: Content of: <book><chapter><sect1><figure><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4012 #: ../en/ch02-tour-merge.xml:180
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4013 msgid "Conflicting changes to a document"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4014 msgstr "冲突的修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4015
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4016 #. type: Content of: <book><chapter><sect1><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4017 #: ../en/ch02-tour-merge.xml:182
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4018 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4019 "<imageobject><imagedata fileref=\"figs/tour-merge-conflict.png\"/></"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4020 "imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4021 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4022
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4023 #. type: Content of: <book><chapter><sect1><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4024 #: ../en/ch02-tour-merge.xml:187
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4025 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4026 "<xref linkend=\"fig:tour-merge:conflict\"/> illustrates an instance of two "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4027 "conflicting changes to a document. We started with a single version of the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4028 "file; then we made some changes; while someone else made different changes to "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4029 "the same text. Our task in resolving the conflicting changes is to decide "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4030 "what the file should look like."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4031 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4032
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4033 #. type: Content of: <book><chapter><sect1><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4034 #: ../en/ch02-tour-merge.xml:194
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4035 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4036 "Mercurial doesn't have a built-in facility for handling conflicts. Instead, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4037 "it runs an external program called <command>hgmerge</command>. This is a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4038 "shell script that is bundled with Mercurial; you can change it to behave "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4039 "however you please. What it does by default is try to find one of several "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4040 "different merging tools that are likely to be installed on your system. It "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4041 "first tries a few fully automatic merging tools; if these don't succeed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4042 "(because the resolution process requires human guidance) or aren't present, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4043 "the script tries a few different graphical merging tools."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4044 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4045
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4046 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4047 #: ../en/ch02-tour-merge.xml:205
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4048 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4049 "It's also possible to get Mercurial to run another program or script instead "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4050 "of <command>hgmerge</command>, by setting the <envar>HGMERGE</envar> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4051 "environment variable to the name of your preferred program."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4052 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4053
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4054 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4055 #: ../en/ch02-tour-merge.xml:211
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4056 msgid "Using a graphical merge tool"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4057 msgstr "使用图形合并工具"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4058
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4059 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4060 #: ../en/ch02-tour-merge.xml:213
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4061 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4062 "My preferred graphical merge tool is <command>kdiff3</command>, which I'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4063 "use to describe the features that are common to graphical file merging "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4064 "tools. You can see a screenshot of <command>kdiff3</command> in action in "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4065 "<xref linkend=\"fig:tour-merge:kdiff3\"/>. The kind of merge it is "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4066 "performing is called a <emphasis>three-way merge</emphasis>, because there "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4067 "are three different versions of the file of interest to us. The tool thus "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4068 "splits the upper portion of the window into three panes:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4069 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4070
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4071 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4072 #: ../en/ch02-tour-merge.xml:223
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4073 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4074 "At the left is the <emphasis>base</emphasis> version of the file, i.e. the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4075 "most recent version from which the two versions we're trying to merge are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4076 "descended."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4077 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4078
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4079 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4080 #: ../en/ch02-tour-merge.xml:228
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4081 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4082 "In the middle is <quote>our</quote> version of the file, with the contents "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4083 "that we modified."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4084 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4085
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4086 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4087 #: ../en/ch02-tour-merge.xml:231
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4088 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4089 "On the right is <quote>their</quote> version of the file, the one that from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4090 "the changeset that we're trying to merge with."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4091 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4092
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4093 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4094 #: ../en/ch02-tour-merge.xml:235
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4095 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4096 "In the pane below these is the current <emphasis>result</emphasis> of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4097 "merge. Our task is to replace all of the red text, which indicates unresolved "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4098 "conflicts, with some sensible merger of the <quote>ours</quote> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4099 "<quote>theirs</quote> versions of the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4100 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4101
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4102 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4103 #: ../en/ch02-tour-merge.xml:242
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4104 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4105 "All four of these panes are <emphasis>locked together</emphasis>; if we "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4106 "scroll vertically or horizontally in any of them, the others are updated to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4107 "display the corresponding sections of their respective files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4108 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4109
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4110 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4111 #: ../en/ch02-tour-merge.xml:248
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4112 msgid "Using <command>kdiff3</command> to merge versions of a file"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4113 msgstr "使用 <command>kdiff3</command> 合并文件的不同版本"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4114
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4115 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4116 #: ../en/ch02-tour-merge.xml:251
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4117 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4118 "<imageobject> <imagedata width=\"100%\" fileref=\"figs/kdiff3.png\"/></"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
4119 "imageobject>"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4120 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4121
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4122 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4123 #: ../en/ch02-tour-merge.xml:259
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4124 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4125 "For each conflicting portion of the file, we can choose to resolve the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4126 "conflict using some combination of text from the base version, ours, or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4127 "theirs. We can also manually edit the merged file at any time, in case we "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4128 "need to make further modifications."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4129 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4130
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4131 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4132 #: ../en/ch02-tour-merge.xml:265
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4133 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4134 "There are <emphasis>many</emphasis> file merging tools available, too many to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4135 "cover here. They vary in which platforms they are available for, and in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4136 "their particular strengths and weaknesses. Most are tuned for merging files "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4137 "containing plain text, while a few are aimed at specialised file formats "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4138 "(generally XML)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4139 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4140
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4141 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4142 #: ../en/ch02-tour-merge.xml:274
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4143 msgid "A worked example"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4144 msgstr "合并实例"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4145
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4146 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4147 #: ../en/ch02-tour-merge.xml:276
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4148 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4149 "In this example, we will reproduce the file modification history of <xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4150 "linkend=\"fig:tour-merge:conflict\"/> above. Let's begin by creating a "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4151 "repository with a base version of our document."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4152 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4153
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4154 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4155 #: ../en/ch02-tour-merge.xml:283
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4156 msgid "We'll clone the repository and make a change to the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4157 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4158
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4159 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4160 #: ../en/ch02-tour-merge.xml:288
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4161 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4162 "And another clone, to simulate someone else making a change to the file. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4163 "(This hints at the idea that it's not all that unusual to merge with yourself "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4164 "when you isolate tasks in separate repositories, and indeed to find and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4165 "resolve conflicts while doing so.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4166 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4167
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4168 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4169 #: ../en/ch02-tour-merge.xml:296
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4170 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4171 "Having created two different versions of the file, we'll set up an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4172 "environment suitable for running our merge."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4173 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4174
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4175 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4176 #: ../en/ch02-tour-merge.xml:302
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4177 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4178 "In this example, I won't use Mercurial's normal <command>hgmerge</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4179 "program to do the merge, because it would drop my nice automated example-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4180 "running tool into a graphical user interface. Instead, I'll set "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4181 "<envar>HGMERGE</envar> to tell Mercurial to use the non-interactive "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4182 "<command>merge</command> command. This is bundled with many Unix-like "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4183 "systems. If you're following this example on your computer, don't bother "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4184 "setting <envar>HGMERGE</envar>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4185 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4186
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4187 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4188 #: ../en/ch02-tour-merge.xml:312
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4189 msgid "<emphasis role=\"bold\">XXX FIX THIS EXAMPLE.</emphasis>"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4190 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4191
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4192 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4193 #: ../en/ch02-tour-merge.xml:317
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4194 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4195 "Because <command>merge</command> can't resolve the conflicting changes, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4196 "leaves <emphasis>merge markers</emphasis> inside the file that has conflicts, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4197 "indicating which lines have conflicts, and whether they came from our version "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4198 "of the file or theirs."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4199 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4200
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4201 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4202 #: ../en/ch02-tour-merge.xml:323
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4203 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4204 "Mercurial can tell from the way <command>merge</command> exits that it wasn't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4205 "able to merge successfully, so it tells us what commands we'll need to run if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4206 "we want to redo the merging operation. This could be useful if, for example, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4207 "we were running a graphical merge tool and quit because we were confused or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4208 "realised we had made a mistake."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4209 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4210
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4211 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4212 #: ../en/ch02-tour-merge.xml:330
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4213 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4214 "If automatic or manual merges fail, there's nothing to prevent us from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4215 "<quote>fixing up</quote> the affected files ourselves, and committing the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4216 "results of our merge:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4217 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4218
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4219 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4220 #: ../en/ch02-tour-merge.xml:339
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4221 msgid "Simplifying the pull-merge-commit sequence"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4222 msgstr "简化拉-合并-提交程序"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4223
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4224 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4225 #: ../en/ch02-tour-merge.xml:341
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4226 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4227 "The process of merging changes as outlined above is straightforward, but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4228 "requires running three commands in sequence."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4229 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4230
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4231 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4232 #: ../en/ch02-tour-merge.xml:347
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4233 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4234 "In the case of the final commit, you also need to enter a commit message, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4235 "which is almost always going to be a piece of uninteresting "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4236 "<quote>boilerplate</quote> text."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4237 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4238
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4239 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4240 #: ../en/ch02-tour-merge.xml:351
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4241 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4242 "It would be nice to reduce the number of steps needed, if this were "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4243 "possible. Indeed, Mercurial is distributed with an extension called <literal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4244 "role=\"hg-ext\">fetch</literal> that does just this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4245 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4246
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4247 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4248 #: ../en/ch02-tour-merge.xml:356
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4249 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4250 "Mercurial provides a flexible extension mechanism that lets people extend its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4251 "functionality, while keeping the core of Mercurial small and easy to deal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4252 "with. Some extensions add new commands that you can use from the command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4253 "line, while others work <quote>behind the scenes,</quote> for example adding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4254 "capabilities to the server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4255 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4256
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4257 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4258 #: ../en/ch02-tour-merge.xml:363
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4259 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4260 "The <literal role=\"hg-ext\">fetch</literal> extension adds a new command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4261 "called, not surprisingly, <command role=\"hg-cmd\">hg fetch</command>. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4262 "extension acts as a combination of <command role=\"hg-cmd\">hg pull</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4263 "command>, <command role=\"hg-cmd\">hg update</command> and <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4264 "cmd\">hg merge</command>. It begins by pulling changes from another "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4265 "repository into the current repository. If it finds that the changes added a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4266 "new head to the repository, it begins a merge, then commits the result of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4267 "merge with an automatically-generated commit message. If no new heads were "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4268 "added, it updates the working directory to the new tip changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4269 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4270
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4271 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4272 #: ../en/ch02-tour-merge.xml:376
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4273 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4274 "Enabling the <literal role=\"hg-ext\">fetch</literal> extension is easy. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4275 "Edit your <filename role=\"special\">.hgrc</filename>, and either go to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4276 "<literal role=\"rc-extensions\">extensions</literal> section or create an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4277 "<literal role=\"rc-extensions\">extensions</literal> section. Then add a line "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4278 "that simply reads <quote><literal>fetch </literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4279 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4280
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4281 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4282 #: ../en/ch02-tour-merge.xml:385
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4283 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4284 "(Normally, on the right-hand side of the <quote><literal>=</literal></quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4285 "would appear the location of the extension, but since the <literal role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4286 "ext\">fetch</literal> extension is in the standard distribution, Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4287 "knows where to search for it.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4288 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4289
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4290 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4291 #: ../en/ch03-concepts.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4292 msgid "Behind the scenes"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4293 msgstr "Mercurial 内幕"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4294
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4295 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4296 #: ../en/ch03-concepts.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4297 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4298 "Unlike many revision control systems, the concepts upon which Mercurial is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4299 "built are simple enough that it's easy to understand how the software really "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4300 "works. Knowing this certainly isn't necessary, but I find it useful to have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4301 "a <quote>mental model</quote> of what's going on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4302 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4303
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4304 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4305 #: ../en/ch03-concepts.xml:13
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4306 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4307 "This understanding gives me confidence that Mercurial has been carefully "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4308 "designed to be both <emphasis>safe</emphasis> and <emphasis>efficient</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4309 "emphasis>. And just as importantly, if it's easy for me to retain a good "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4310 "idea of what the software is doing when I perform a revision control task, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4311 "I'm less likely to be surprised by its behaviour."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4312 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4313
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4314 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4315 #: ../en/ch03-concepts.xml:20
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4316 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4317 "In this chapter, we'll initially cover the core concepts behind Mercurial's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4318 "design, then continue to discuss some of the interesting details of its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4319 "implementation."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4320 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4321
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4322 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4323 #: ../en/ch03-concepts.xml:25
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4324 msgid "Mercurial's historical record"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4325 msgstr "Mercurial 的历史记录"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4326
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4327 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4328 #: ../en/ch03-concepts.xml:28
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4329 msgid "Tracking the history of a single file"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4330 msgstr "跟踪单一文件的历史"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4331
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4332 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4333 #: ../en/ch03-concepts.xml:30
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4334 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4335 "When Mercurial tracks modifications to a file, it stores the history of that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4336 "file in a metadata object called a <emphasis>filelog</emphasis>. Each entry "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4337 "in the filelog contains enough information to reconstruct one revision of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4338 "file that is being tracked. Filelogs are stored as files in the <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4339 "role=\"special\" class=\"directory\">.hg/store/data</filename> directory. A "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4340 "filelog contains two kinds of information: revision data, and an index to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4341 "help Mercurial to find a revision efficiently."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4342 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4343
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4344 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4345 #: ../en/ch03-concepts.xml:41
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4346 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4347 "A file that is large, or has a lot of history, has its filelog stored in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4348 "separate data (<quote><literal>.d</literal></quote> suffix) and index "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4349 "(<quote><literal>.i</literal></quote> suffix) files. For small files without "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4350 "much history, the revision data and index are combined in a single "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4351 "<quote><literal>.i</literal></quote> file. The correspondence between a file "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4352 "in the working directory and the filelog that tracks its history in the "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4353 "repository is illustrated in <xref linkend=\"fig:concepts:filelog\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4354 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4355
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4356 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4357 #: ../en/ch03-concepts.xml:53
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4358 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4359 "Relationships between files in working directory and filelogs in repository"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4360 msgstr "工作目录中的文件与版本库中的文件日志之间的关系"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4361
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4362 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4363 #: ../en/ch03-concepts.xml:56
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4364 msgid "<imageobject><imagedata fileref=\"figs/filelog.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4365 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4366
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4367 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4368 #: ../en/ch03-concepts.xml:63
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4369 msgid "Managing tracked files"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4370 msgstr "管理跟踪的文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4371
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4372 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4373 #: ../en/ch03-concepts.xml:65
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4374 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4375 "Mercurial uses a structure called a <emphasis>manifest</emphasis> to collect "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4376 "together information about the files that it tracks. Each entry in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4377 "manifest contains information about the files present in a single changeset. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4378 "An entry records which files are present in the changeset, the revision of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4379 "each file, and a few other pieces of file metadata."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4380 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4381
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4382 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4383 #: ../en/ch03-concepts.xml:75
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4384 msgid "Recording changeset information"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4385 msgstr "记录修改集信息"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4386
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4387 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4388 #: ../en/ch03-concepts.xml:77
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4389 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4390 "The <emphasis>changelog</emphasis> contains information about each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4391 "changeset. Each revision records who committed a change, the changeset "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4392 "comment, other pieces of changeset-related information, and the revision of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4393 "the manifest to use."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4394 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4395
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4396 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4397 #: ../en/ch03-concepts.xml:85
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4398 msgid "Relationships between revisions"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4399 msgstr "版本之间的关系"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4400
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4401 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4402 #: ../en/ch03-concepts.xml:87
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4403 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4404 "Within a changelog, a manifest, or a filelog, each revision stores a pointer "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4405 "to its immediate parent (or to its two parents, if it's a merge revision). "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4406 "As I mentioned above, there are also relationships between revisions "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4407 "<emphasis>across</emphasis> these structures, and they are hierarchical in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4408 "nature."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4409 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4410
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4411 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4412 #: ../en/ch03-concepts.xml:94
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4413 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4414 "For every changeset in a repository, there is exactly one revision stored in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4415 "the changelog. Each revision of the changelog contains a pointer to a single "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4416 "revision of the manifest. A revision of the manifest stores a pointer to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4417 "single revision of each filelog tracked when that changeset was created. "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4418 "These relationships are illustrated in <xref linkend=\"fig:concepts:metadata"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4419 "\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4420 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4421
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4422 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4423 #: ../en/ch03-concepts.xml:103
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4424 msgid "Metadata relationships"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4425 msgstr "元数据之间的关系"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4426
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4427 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4428 #: ../en/ch03-concepts.xml:105
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4429 msgid "<imageobject><imagedata fileref=\"figs/metadata.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4430 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4431
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4432 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4433 #: ../en/ch03-concepts.xml:110
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4434 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4435 "As the illustration shows, there is <emphasis>not</emphasis> a <quote>one to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4436 "one</quote> relationship between revisions in the changelog, manifest, or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4437 "filelog. If the manifest hasn't changed between two changesets, the changelog "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4438 "entries for those changesets will point to the same revision of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4439 "manifest. If a file that Mercurial tracks hasn't changed between two "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4440 "changesets, the entry for that file in the two revisions of the manifest will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4441 "point to the same revision of its filelog."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4442 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4443
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4444 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4445 #: ../en/ch03-concepts.xml:123
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4446 msgid "Safe, efficient storage"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4447 msgstr "安全,高效的存储"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4448
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4449 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4450 #: ../en/ch03-concepts.xml:125
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4451 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4452 "The underpinnings of changelogs, manifests, and filelogs are provided by a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4453 "single structure called the <emphasis>revlog</emphasis>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4454 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4455
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4456 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4457 #: ../en/ch03-concepts.xml:130
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4458 msgid "Efficient storage"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4459 msgstr "高效存储"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4460
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4461 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4462 #: ../en/ch03-concepts.xml:132
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4463 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4464 "The revlog provides efficient storage of revisions using a <emphasis>delta</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4465 "emphasis> mechanism. Instead of storing a complete copy of a file for each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4466 "revision, it stores the changes needed to transform an older revision into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4467 "the new revision. For many kinds of file data, these deltas are typically a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4468 "fraction of a percent of the size of a full copy of a file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4469 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4470
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4471 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4472 #: ../en/ch03-concepts.xml:140
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4473 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4474 "Some obsolete revision control systems can only work with deltas of text "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4475 "files. They must either store binary files as complete snapshots or encoded "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4476 "into a text representation, both of which are wasteful approaches. Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4477 "can efficiently handle deltas of files with arbitrary binary contents; it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4478 "doesn't need to treat text as special."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4479 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4480
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4481 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4482 #: ../en/ch03-concepts.xml:149
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4483 msgid "Safe operation"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4484 msgstr "安全操作"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4485
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4486 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4487 #: ../en/ch03-concepts.xml:151
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4488 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4489 "Mercurial only ever <emphasis>appends</emphasis> data to the end of a revlog "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4490 "file. It never modifies a section of a file after it has written it. This is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4491 "both more robust and efficient than schemes that need to modify or rewrite "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4492 "data."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4493 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4494
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4495 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4496 #: ../en/ch03-concepts.xml:157
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4497 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4498 "In addition, Mercurial treats every write as part of a <emphasis>transaction</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4499 "emphasis> that can span a number of files. A transaction is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4500 "<emphasis>atomic</emphasis>: either the entire transaction succeeds and its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4501 "effects are all visible to readers in one go, or the whole thing is undone. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4502 "This guarantee of atomicity means that if you're running two copies of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4503 "Mercurial, where one is reading data and one is writing it, the reader will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4504 "never see a partially written result that might confuse it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4505 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4506
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4507 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4508 #: ../en/ch03-concepts.xml:167
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4509 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4510 "The fact that Mercurial only appends to files makes it easier to provide this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4511 "transactional guarantee. The easier it is to do stuff like this, the more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4512 "confident you should be that it's done correctly."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4513 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4514
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4515 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4516 #: ../en/ch03-concepts.xml:174
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4517 msgid "Fast retrieval"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4518 msgstr "快速检索"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4519
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4520 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4521 #: ../en/ch03-concepts.xml:176
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4522 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4523 "Mercurial cleverly avoids a pitfall common to all earlier revision control "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4524 "systems: the problem of <emphasis>inefficient retrieval</emphasis>. Most "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4525 "revision control systems store the contents of a revision as an incremental "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4526 "series of modifications against a <quote>snapshot</quote>. To reconstruct a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4527 "specific revision, you must first read the snapshot, and then every one of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4528 "the revisions between the snapshot and your target revision. The more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4529 "history that a file accumulates, the more revisions you must read, hence the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4530 "longer it takes to reconstruct a particular revision."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4531 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4532
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4533 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4534 #: ../en/ch03-concepts.xml:188
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4535 msgid "Snapshot of a revlog, with incremental deltas"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4536 msgstr "版本日志的快照,以及增量差异"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4537
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4538 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4539 #: ../en/ch03-concepts.xml:190
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4540 msgid "<imageobject><imagedata fileref=\"figs/snapshot.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4541 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4542
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4543 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4544 #: ../en/ch03-concepts.xml:195
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4545 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4546 "The innovation that Mercurial applies to this problem is simple but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4547 "effective. Once the cumulative amount of delta information stored since the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4548 "last snapshot exceeds a fixed threshold, it stores a new snapshot "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4549 "(compressed, of course), instead of another delta. This makes it possible to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4550 "reconstruct <emphasis>any</emphasis> revision of a file quickly. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4551 "approach works so well that it has since been copied by several other "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4552 "revision control systems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4553 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4554
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4555 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4556 #: ../en/ch03-concepts.xml:204
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4557 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4558 "<xref linkend=\"fig:concepts:snapshot\"/> illustrates the idea. In an entry "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4559 "in a revlog's index file, Mercurial stores the range of entries from the data "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4560 "file that it must read to reconstruct a particular revision."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4561 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4562
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4563 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4564 #: ../en/ch03-concepts.xml:210
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4565 msgid "Aside: the influence of video compression"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4566 msgstr "旁白: 视频压缩的影响"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4567
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4568 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4569 #: ../en/ch03-concepts.xml:212
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4570 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4571 "If you're familiar with video compression or have ever watched a TV feed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4572 "through a digital cable or satellite service, you may know that most video "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4573 "compression schemes store each frame of video as a delta against its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4574 "predecessor frame. In addition, these schemes use <quote>lossy</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4575 "compression techniques to increase the compression ratio, so visual errors "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4576 "accumulate over the course of a number of inter-frame deltas."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4577 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4578
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4579 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4580 #: ../en/ch03-concepts.xml:221
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4581 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4582 "Because it's possible for a video stream to <quote>drop out</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4583 "occasionally due to signal glitches, and to limit the accumulation of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4584 "artefacts introduced by the lossy compression process, video encoders "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4585 "periodically insert a complete frame (called a <quote>key frame</quote>) into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4586 "the video stream; the next delta is generated against that frame. This means "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4587 "that if the video signal gets interrupted, it will resume once the next key "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4588 "frame is received. Also, the accumulation of encoding errors restarts anew "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4589 "with each key frame."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4590 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4591
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4592 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4593 #: ../en/ch03-concepts.xml:235
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4594 msgid "Identification and strong integrity"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4595 msgstr "鉴别和强完整性"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4596
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4597 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4598 #: ../en/ch03-concepts.xml:237
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4599 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4600 "Along with delta or snapshot information, a revlog entry contains a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4601 "cryptographic hash of the data that it represents. This makes it difficult "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4602 "to forge the contents of a revision, and easy to detect accidental corruption."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4603 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4604
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4605 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4606 #: ../en/ch03-concepts.xml:242
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4607 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4608 "Hashes provide more than a mere check against corruption; they are used as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4609 "the identifiers for revisions. The changeset identification hashes that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4610 "see as an end user are from revisions of the changelog. Although filelogs "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4611 "and the manifest also use hashes, Mercurial only uses these behind the scenes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4612 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4613
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4614 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4615 #: ../en/ch03-concepts.xml:249
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4616 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4617 "Mercurial verifies that hashes are correct when it retrieves file revisions "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4618 "and when it pulls changes from another repository. If it encounters an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4619 "integrity problem, it will complain and stop whatever it's doing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4620 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4621
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4622 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4623 #: ../en/ch03-concepts.xml:254
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4624 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4625 "In addition to the effect it has on retrieval efficiency, Mercurial's use of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4626 "periodic snapshots makes it more robust against partial data corruption. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4627 "a revlog becomes partly corrupted due to a hardware error or system bug, it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4628 "often possible to reconstruct some or most revisions from the uncorrupted "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4629 "sections of the revlog, both before and after the corrupted section. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4630 "would not be possible with a delta-only storage model."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4631 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4632
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4633 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4634 #: ../en/ch03-concepts.xml:266
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4635 msgid "Revision history, branching, and merging"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4636 msgstr "修订历史,分支与合并"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4637
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4638 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4639 #: ../en/ch03-concepts.xml:268
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4640 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4641 "Every entry in a Mercurial revlog knows the identity of its immediate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4642 "ancestor revision, usually referred to as its <emphasis>parent</emphasis>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4643 "In fact, a revision contains room for not one parent, but two. Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4644 "uses a special hash, called the <quote>null ID</quote>, to represent the idea "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4645 "<quote>there is no parent here</quote>. This hash is simply a string of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4646 "zeroes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4647 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4648
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4649 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4650 #: ../en/ch03-concepts.xml:276
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4651 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4652 "In <xref linkend=\"fig:concepts:revlog\"/>, you can see an example of the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4653 "conceptual structure of a revlog. Filelogs, manifests, and changelogs all "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4654 "have this same structure; they differ only in the kind of data stored in each "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4655 "delta or snapshot."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4656 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4657
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4658 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4659 #: ../en/ch03-concepts.xml:282
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4660 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4661 "The first revision in a revlog (at the bottom of the image) has the null ID "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4662 "in both of its parent slots. For a <quote>normal</quote> revision, its first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4663 "parent slot contains the ID of its parent revision, and its second contains "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4664 "the null ID, indicating that the revision has only one real parent. Any two "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4665 "revisions that have the same parent ID are branches. A revision that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4666 "represents a merge between branches has two normal revision IDs in its parent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4667 "slots."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4668 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4669
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4670 #. type: Content of: <book><chapter><sect1><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4671 #: ../en/ch03-concepts.xml:292
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4672 msgid "The conceptual structure of a revlog"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4673 msgstr "版本日志的设计结构"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4674
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4675 #. type: Content of: <book><chapter><sect1><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4676 #: ../en/ch03-concepts.xml:294
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4677 msgid "<imageobject><imagedata fileref=\"figs/revlog.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4678 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4679
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4680 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4681 #: ../en/ch03-concepts.xml:301
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4682 msgid "The working directory"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4683 msgstr "工作目录"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4684
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4685 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4686 #: ../en/ch03-concepts.xml:303
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4687 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4688 "In the working directory, Mercurial stores a snapshot of the files from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4689 "repository as of a particular changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4690 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4691
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4692 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4693 #: ../en/ch03-concepts.xml:306
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4694 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4695 "The working directory <quote>knows</quote> which changeset it contains. When "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4696 "you update the working directory to contain a particular changeset, Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4697 "looks up the appropriate revision of the manifest to find out which files it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4698 "was tracking at the time that changeset was committed, and which revision of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4699 "each file was then current. It then recreates a copy of each of those files, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4700 "with the same contents it had when the changeset was committed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4701 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4702
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4703 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4704 #: ../en/ch03-concepts.xml:315
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4705 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4706 "The <emphasis>dirstate</emphasis> contains Mercurial's knowledge of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4707 "working directory. This details which changeset the working directory is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4708 "updated to, and all of the files that Mercurial is tracking in the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4709 "directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4710 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4711
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4712 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4713 #: ../en/ch03-concepts.xml:321
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4714 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4715 "Just as a revision of a revlog has room for two parents, so that it can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4716 "represent either a normal revision (with one parent) or a merge of two "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4717 "earlier revisions, the dirstate has slots for two parents. When you use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4718 "<command role=\"hg-cmd\">hg update</command> command, the changeset that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4719 "update to is stored in the <quote>first parent</quote> slot, and the null ID "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4720 "in the second. When you <command role=\"hg-cmd\">hg merge</command> with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4721 "another changeset, the first parent remains unchanged, and the second parent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4722 "is filled in with the changeset you're merging with. The <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4723 "cmd\">hg parents</command> command tells you what the parents of the dirstate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4724 "are."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4725 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4727 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4728 #: ../en/ch03-concepts.xml:335
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4729 msgid "What happens when you commit"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4730 msgstr "当你提交时发生的事情"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4731
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4732 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4733 #: ../en/ch03-concepts.xml:337
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4734 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4735 "The dirstate stores parent information for more than just book-keeping "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4736 "purposes. Mercurial uses the parents of the dirstate as <emphasis>the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4737 "parents of a new changeset</emphasis> when you perform a commit."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4738 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4739
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4740 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4741 #: ../en/ch03-concepts.xml:343
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4742 msgid "The working directory can have two parents"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4743 msgstr "工作目录可以有两个父亲"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4744
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4745 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4746 #: ../en/ch03-concepts.xml:345
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4747 msgid "<imageobject><imagedata fileref=\"figs/wdir.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4748 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4749
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4750 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4751 #: ../en/ch03-concepts.xml:350
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4752 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4753 "<xref linkend=\"fig:concepts:wdir\"/> shows the normal state of the working "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4754 "directory, where it has a single changeset as parent. That changeset is the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4755 "<emphasis>tip</emphasis>, the newest changeset in the repository that has no "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4756 "children."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4757 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4758
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4759 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4760 #: ../en/ch03-concepts.xml:357
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4761 msgid "The working directory gains new parents after a commit"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4762 msgstr "提交之后,工作目录的父亲就改变了"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4763
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4764 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4765 #: ../en/ch03-concepts.xml:360
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4766 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4767 "<imageobject><imagedata fileref=\"figs/wdir-after-commit.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4768 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4769
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4770 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4771 #: ../en/ch03-concepts.xml:365
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4772 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4773 "It's useful to think of the working directory as <quote>the changeset I'm "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4774 "about to commit</quote>. Any files that you tell Mercurial that you've "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4775 "added, removed, renamed, or copied will be reflected in that changeset, as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4776 "will modifications to any files that Mercurial is already tracking; the new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4777 "changeset will have the parents of the working directory as its parents."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4778 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4779
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4780 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4781 #: ../en/ch03-concepts.xml:373
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4782 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4783 "After a commit, Mercurial will update the parents of the working directory, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4784 "so that the first parent is the ID of the new changeset, and the second is "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4785 "the null ID. This is shown in <xref linkend=\"fig:concepts:wdir-after-commit"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4786 "\"/>. Mercurial doesn't touch any of the files in the working directory when "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4787 "you commit; it just modifies the dirstate to note its new parents."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4788 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4789
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4790 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4791 #: ../en/ch03-concepts.xml:384
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4792 msgid "Creating a new head"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4793 msgstr "创建新顶点"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4794
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4795 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4796 #: ../en/ch03-concepts.xml:386
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4797 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4798 "It's perfectly normal to update the working directory to a changeset other "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4799 "than the current tip. For example, you might want to know what your project "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4800 "looked like last Tuesday, or you could be looking through changesets to see "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4801 "which one introduced a bug. In cases like this, the natural thing to do is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4802 "update the working directory to the changeset you're interested in, and then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4803 "examine the files in the working directory directly to see their contents as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4804 "they were when you committed that changeset. The effect of this is shown in "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4805 "<xref linkend=\"fig:concepts:wdir-pre-branch\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4806 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4807
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4808 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4809 #: ../en/ch03-concepts.xml:398
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4810 msgid "The working directory, updated to an older changeset"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4811 msgstr "同步到旧修改集的工作目录"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4812
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4813 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4814 #: ../en/ch03-concepts.xml:401
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4815 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4816 "<imageobject><imagedata fileref=\"figs/wdir-pre-branch.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4817 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4818
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4819 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4820 #: ../en/ch03-concepts.xml:406
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4821 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4822 "Having updated the working directory to an older changeset, what happens if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4823 "you make some changes, and then commit? Mercurial behaves in the same way as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4824 "I outlined above. The parents of the working directory become the parents of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4825 "the new changeset. This new changeset has no children, so it becomes the new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4826 "tip. And the repository now contains two changesets that have no children; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4827 "we call these <emphasis>heads</emphasis>. You can see the structure that "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4828 "this creates in <xref linkend=\"fig:concepts:wdir-branch\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4829 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4830
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4831 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4832 #: ../en/ch03-concepts.xml:418
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4833 msgid "After a commit made while synced to an older changeset"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4834 msgstr "对同步到旧修改集的工作目录提交之后"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4835
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4836 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4837 #: ../en/ch03-concepts.xml:421
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4838 msgid "<imageobject><imagedata fileref=\"figs/wdir-branch.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4839 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4840
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4841 #. type: Content of: <book><chapter><sect1><sect2><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4842 #: ../en/ch03-concepts.xml:427
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4843 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4844 "If you're new to Mercurial, you should keep in mind a common <quote>error</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4845 "quote>, which is to use the <command role=\"hg-cmd\">hg pull</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4846 "command without any options. By default, the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4847 "pull</command> command <emphasis>does not</emphasis> update the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4848 "directory, so you'll bring new changesets into your repository, but the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4849 "working directory will stay synced at the same changeset as before the pull. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4850 "If you make some changes and commit afterwards, you'll thus create a new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4851 "head, because your working directory isn't synced to whatever the current tip "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4852 "is."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4853 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4854
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4855 #. type: Content of: <book><chapter><sect1><sect2><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4856 #: ../en/ch03-concepts.xml:439
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4857 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4858 "I put the word <quote>error</quote> in quotes because all that you need to do "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4859 "to rectify this situation is <command role=\"hg-cmd\">hg merge</command>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4860 "then <command role=\"hg-cmd\">hg commit</command>. In other words, this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4861 "almost never has negative consequences; it just surprises people. I'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4862 "discuss other ways to avoid this behaviour, and why Mercurial behaves in this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4863 "initially surprising way, later on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4864 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4865
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4866 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4867 #: ../en/ch03-concepts.xml:451
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4868 msgid "Merging heads"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4869 msgstr "合并顶点"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4870
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4871 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4872 #: ../en/ch03-concepts.xml:453
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4873 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4874 "When you run the <command role=\"hg-cmd\">hg merge</command> command, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4875 "Mercurial leaves the first parent of the working directory unchanged, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4876 "sets the second parent to the changeset you're merging with, as shown in "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4877 "<xref linkend=\"fig:concepts:wdir-merge\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4878 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4879
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4880 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4881 #: ../en/ch03-concepts.xml:460
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4882 msgid "Merging two heads"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
4883 msgstr "合并两个顶点"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4884
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4885 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4886 #: ../en/ch03-concepts.xml:462
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4887 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4888 "<imageobject> <imagedata fileref=\"figs/wdir-merge.png\"/> </imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4889 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4890
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4891 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4892 #: ../en/ch03-concepts.xml:469
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4893 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4894 "Mercurial also has to modify the working directory, to merge the files "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4895 "managed in the two changesets. Simplified a little, the merging process goes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4896 "like this, for every file in the manifests of both changesets."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4897 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4898
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4899 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4900 #: ../en/ch03-concepts.xml:474
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4901 msgid "If neither changeset has modified a file, do nothing with that file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4902 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4903
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4904 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4905 #: ../en/ch03-concepts.xml:477
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4906 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4907 "If one changeset has modified a file, and the other hasn't, create the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4908 "modified copy of the file in the working directory."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4909 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4910
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4911 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4912 #: ../en/ch03-concepts.xml:481
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4913 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4914 "If one changeset has removed a file, and the other hasn't (or has also "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4915 "deleted it), delete the file from the working directory."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4916 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4917
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4918 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4919 #: ../en/ch03-concepts.xml:485
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4920 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4921 "If one changeset has removed a file, but the other has modified the file, ask "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4922 "the user what to do: keep the modified file, or remove it?"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4923 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4924
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4925 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4926 #: ../en/ch03-concepts.xml:489
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4927 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4928 "If both changesets have modified a file, invoke an external merge program to "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4929 "choose the new contents for the merged file. This may require input from the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4930 "user."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4931 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4932
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4933 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
4934 #: ../en/ch03-concepts.xml:494
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4935 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4936 "If one changeset has modified a file, and the other has renamed or copied the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4937 "file, make sure that the changes follow the new name of the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4938 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4939
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4940 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4941 #: ../en/ch03-concepts.xml:498
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4942 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
4943 "There are more details—merging has plenty of corner cases&emdash;but these "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
4944 "are the most common choices that are involved in a merge. As you can see, "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
4945 "most cases are completely automatic, and indeed most merges finish "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4946 "automatically, without requiring your input to resolve any conflicts."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4947 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4948
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4949 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4950 #: ../en/ch03-concepts.xml:505
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4951 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4952 "When you're thinking about what happens when you commit after a merge, once "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4953 "again the working directory is <quote>the changeset I'm about to commit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4954 "quote>. After the <command role=\"hg-cmd\">hg merge</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4955 "completes, the working directory has two parents; these will become the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4956 "parents of the new changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4957 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4958
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4959 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4960 #: ../en/ch03-concepts.xml:512
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4961 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4962 "Mercurial lets you perform multiple merges, but you must commit the results "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4963 "of each individual merge as you go. This is necessary because Mercurial only "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4964 "tracks two parents for both revisions and the working directory. While it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4965 "would be technically possible to merge multiple changesets at once, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4966 "prospect of user confusion and making a terrible mess of a merge immediately "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4967 "becomes overwhelming."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4968 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4969
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4970 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4971 #: ../en/ch03-concepts.xml:523
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4972 msgid "Other interesting design features"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4973 msgstr "其它有趣的设计特性"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4974
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4975 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4976 #: ../en/ch03-concepts.xml:525
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4977 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4978 "In the sections above, I've tried to highlight some of the most important "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4979 "aspects of Mercurial's design, to illustrate that it pays careful attention "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4980 "to reliability and performance. However, the attention to detail doesn't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4981 "stop there. There are a number of other aspects of Mercurial's construction "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4982 "that I personally find interesting. I'll detail a few of them here, separate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4983 "from the <quote>big ticket</quote> items above, so that if you're interested, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4984 "you can gain a better idea of the amount of thinking that goes into a well-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4985 "designed system."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4986 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4987
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4988 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4989 #: ../en/ch03-concepts.xml:536
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4990 msgid "Clever compression"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4991 msgstr "智能压缩"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4992
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4993 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
4994 #: ../en/ch03-concepts.xml:538
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4995 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4996 "When appropriate, Mercurial will store both snapshots and deltas in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4997 "compressed form. It does this by always <emphasis>trying to</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4998 "compress a snapshot or delta, but only storing the compressed version if it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
4999 "smaller than the uncompressed version."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5000 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5001
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5002 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5003 #: ../en/ch03-concepts.xml:544
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5004 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5005 "This means that Mercurial does <quote>the right thing</quote> when storing a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5006 "file whose native form is compressed, such as a <literal>zip</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5007 "archive or a JPEG image. When these types of files are compressed a second "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5008 "time, the resulting file is usually bigger than the once-compressed form, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5009 "so Mercurial will store the plain <literal>zip</literal> or JPEG."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5010 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5011
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5012 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5013 #: ../en/ch03-concepts.xml:552
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5014 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5015 "Deltas between revisions of a compressed file are usually larger than "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5016 "snapshots of the file, and Mercurial again does <quote>the right thing</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5017 "quote> in these cases. It finds that such a delta exceeds the threshold at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5018 "which it should store a complete snapshot of the file, so it stores the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5019 "snapshot, again saving space compared to a naive delta-only approach."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5020 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5021
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5022 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5023 #: ../en/ch03-concepts.xml:561
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5024 msgid "Network recompression"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5025 msgstr "网络重新压缩"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5026
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5027 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5028 #: ../en/ch03-concepts.xml:563
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5029 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5030 "When storing revisions on disk, Mercurial uses the <quote>deflate</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5031 "compression algorithm (the same one used by the popular <literal>zip</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5032 "literal> archive format), which balances good speed with a respectable "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5033 "compression ratio. However, when transmitting revision data over a network "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5034 "connection, Mercurial uncompresses the compressed revision data."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5035 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5036
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5037 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5038 #: ../en/ch03-concepts.xml:571
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5039 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5040 "If the connection is over HTTP, Mercurial recompresses the entire stream of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5041 "data using a compression algorithm that gives a better compression ratio (the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5042 "Burrows-Wheeler algorithm from the widely used <literal>bzip2</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5043 "compression package). This combination of algorithm and compression of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5044 "entire stream (instead of a revision at a time) substantially reduces the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5045 "number of bytes to be transferred, yielding better network performance over "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5046 "almost all kinds of network."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5047 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5048
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5049 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5050 #: ../en/ch03-concepts.xml:581
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5051 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5052 "(If the connection is over <command>ssh</command>, Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5053 "<emphasis>doesn't</emphasis> recompress the stream, because <command>ssh</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5054 "command> can already do this itself.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5055 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5056
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5057 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5058 #: ../en/ch03-concepts.xml:589
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5059 msgid "Read/write ordering and atomicity"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5060 msgstr "读写顺序与原子性"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5061
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5062 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5063 #: ../en/ch03-concepts.xml:591
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5064 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5065 "Appending to files isn't the whole story when it comes to guaranteeing that a "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5066 "reader won't see a partial write. If you recall <xref linkend=\"fig:concepts:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5067 "metadata\"/>, revisions in the changelog point to revisions in the manifest, "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5068 "and revisions in the manifest point to revisions in filelogs. This hierarchy "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5069 "is deliberate."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5070 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5071
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5072 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5073 #: ../en/ch03-concepts.xml:599
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5074 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5075 "A writer starts a transaction by writing filelog and manifest data, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5076 "doesn't write any changelog data until those are finished. A reader starts "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5077 "by reading changelog data, then manifest data, followed by filelog data."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5078 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5079
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5080 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5081 #: ../en/ch03-concepts.xml:604
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5082 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5083 "Since the writer has always finished writing filelog and manifest data before "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5084 "it writes to the changelog, a reader will never read a pointer to a partially "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5085 "written manifest revision from the changelog, and it will never read a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5086 "pointer to a partially written filelog revision from the manifest."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5087 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5088
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5089 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5090 #: ../en/ch03-concepts.xml:612
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5091 msgid "Concurrent access"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5092 msgstr "并发访问"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5093
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5094 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5095 #: ../en/ch03-concepts.xml:614
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5096 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5097 "The read/write ordering and atomicity guarantees mean that Mercurial never "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5098 "needs to <emphasis>lock</emphasis> a repository when it's reading data, even "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5099 "if the repository is being written to while the read is occurring. This has a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5100 "big effect on scalability; you can have an arbitrary number of Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5101 "processes safely reading data from a repository safely all at once, no matter "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5102 "whether it's being written to or not."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5103 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5104
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5105 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5106 #: ../en/ch03-concepts.xml:623
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5107 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5108 "The lockless nature of reading means that if you're sharing a repository on a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5109 "multi-user system, you don't need to grant other local users permission to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5110 "<emphasis>write</emphasis> to your repository in order for them to be able to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5111 "clone it or pull changes from it; they only need <emphasis>read</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5112 "permission. (This is <emphasis>not</emphasis> a common feature among "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5113 "revision control systems, so don't take it for granted! Most require readers "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5114 "to be able to lock a repository to access it safely, and this requires write "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5115 "permission on at least one directory, which of course makes for all kinds of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5116 "nasty and annoying security and administrative problems.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5117 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5118
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5119 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5120 #: ../en/ch03-concepts.xml:636
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5121 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5122 "Mercurial uses locks to ensure that only one process can write to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5123 "repository at a time (the locking mechanism is safe even over filesystems "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5124 "that are notoriously hostile to locking, such as NFS). If a repository is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5125 "locked, a writer will wait for a while to retry if the repository becomes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5126 "unlocked, but if the repository remains locked for too long, the process "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5127 "attempting to write will time out after a while. This means that your daily "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5128 "automated scripts won't get stuck forever and pile up if a system crashes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5129 "unnoticed, for example. (Yes, the timeout is configurable, from zero to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5130 "infinity.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5131 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5132
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5133 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5134 #: ../en/ch03-concepts.xml:648
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5135 msgid "Safe dirstate access"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5136 msgstr "安全的目录状态访问"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5137
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5138 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5139 #: ../en/ch03-concepts.xml:650
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5140 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5141 "As with revision data, Mercurial doesn't take a lock to read the dirstate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5142 "file; it does acquire a lock to write it. To avoid the possibility of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5143 "reading a partially written copy of the dirstate file, Mercurial writes to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5144 "file with a unique name in the same directory as the dirstate file, then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5145 "renames the temporary file atomically to <filename>dirstate</filename>. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5146 "file named <filename>dirstate</filename> is thus guaranteed to be complete, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5147 "not partially written."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5148 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5149
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5150 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5151 #: ../en/ch03-concepts.xml:663
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5152 msgid "Avoiding seeks"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5153 msgstr "避免查找"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5154
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5155 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5156 #: ../en/ch03-concepts.xml:665
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5157 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5158 "Critical to Mercurial's performance is the avoidance of seeks of the disk "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5159 "head, since any seek is far more expensive than even a comparatively large "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5160 "read operation."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5161 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5162
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5163 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5164 #: ../en/ch03-concepts.xml:669
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5165 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5166 "This is why, for example, the dirstate is stored in a single file. If there "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5167 "were a dirstate file per directory that Mercurial tracked, the disk would "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5168 "seek once per directory. Instead, Mercurial reads the entire single dirstate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5169 "file in one step."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5170 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5171
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5172 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5173 #: ../en/ch03-concepts.xml:675
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5174 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5175 "Mercurial also uses a <quote>copy on write</quote> scheme when cloning a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5176 "repository on local storage. Instead of copying every revlog file from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5177 "old repository into the new repository, it makes a <quote>hard link</quote>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5178 "which is a shorthand way to say <quote>these two names point to the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5179 "file</quote>. When Mercurial is about to write to one of a revlog's files, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5180 "it checks to see if the number of names pointing at the file is greater than "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5181 "one. If it is, more than one repository is using the file, so Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5182 "makes a new copy of the file that is private to this repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5183 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5184
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5185 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5186 #: ../en/ch03-concepts.xml:686
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5187 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5188 "A few revision control developers have pointed out that this idea of making a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5189 "complete private copy of a file is not very efficient in its use of storage. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5190 "While this is true, storage is cheap, and this method gives the highest "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5191 "performance while deferring most book-keeping to the operating system. An "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5192 "alternative scheme would most likely reduce performance and increase the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5193 "complexity of the software, each of which is much more important to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5194 "<quote>feel</quote> of day-to-day use."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5195 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5196
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5197 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5198 #: ../en/ch03-concepts.xml:698
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5199 msgid "Other contents of the dirstate"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5200 msgstr "目录状态的其它内容"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5201
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5202 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5203 #: ../en/ch03-concepts.xml:700
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5204 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5205 "Because Mercurial doesn't force you to tell it when you're modifying a file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5206 "it uses the dirstate to store some extra information so it can determine "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5207 "efficiently whether you have modified a file. For each file in the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5208 "directory, it stores the time that it last modified the file itself, and the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5209 "size of the file at that time."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5210 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5211
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5212 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5213 #: ../en/ch03-concepts.xml:707
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5214 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5215 "When you explicitly <command role=\"hg-cmd\">hg add</command>, <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5216 "\"hg-cmd\">hg remove</command>, <command role=\"hg-cmd\">hg rename</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5217 "or <command role=\"hg-cmd\">hg copy</command> files, Mercurial updates the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5218 "dirstate so that it knows what to do with those files when you commit."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5219 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5220
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5221 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5222 #: ../en/ch03-concepts.xml:714
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5223 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5224 "When Mercurial is checking the states of files in the working directory, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5225 "first checks a file's modification time. If that has not changed, the file "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5226 "must not have been modified. If the file's size has changed, the file must "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5227 "have been modified. If the modification time has changed, but the size has "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5228 "not, only then does Mercurial need to read the actual contents of the file to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5229 "see if they've changed. Storing these few extra pieces of information "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5230 "dramatically reduces the amount of data that Mercurial needs to read, which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5231 "yields large performance improvements compared to other revision control "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5232 "systems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5233 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5234
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5235 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5236 #: ../en/ch04-daily.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5237 msgid "Mercurial in daily use"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5238 msgstr "Mercurial 的日常使用"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5239
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5240 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5241 #: ../en/ch04-daily.xml:8
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5242 msgid "Telling Mercurial which files to track"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5243 msgstr "告诉 Mercurial 要跟踪哪些文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5244
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5245 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5246 #: ../en/ch04-daily.xml:10
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5247 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5248 "Mercurial does not work with files in your repository unless you tell it to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5249 "manage them. The <command role=\"hg-cmd\">hg status</command> command will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5250 "tell you which files Mercurial doesn't know about; it uses a <quote><literal>?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5251 "</literal></quote> to display such files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5252 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5253
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5254 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5255 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5256 #: ../en/ch04-daily.xml:17
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5257 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5258 "To tell Mercurial to track a file, use the <command role=\"hg-cmd\">hg add</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5259 "command> command. Once you have added a file, the entry in the output of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5260 "<command role=\"hg-cmd\">hg status</command> for that file changes from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5261 "<quote><literal>?</literal></quote> to <quote><literal>A</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5262 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5263
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5264 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5265 #: ../en/ch04-daily.xml:26
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5266 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5267 "After you run a <command role=\"hg-cmd\">hg commit</command>, the files that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5268 "you added before the commit will no longer be listed in the output of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5269 "<command role=\"hg-cmd\">hg status</command>. The reason for this is that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5270 "<command role=\"hg-cmd\">hg status</command> only tells you about "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5271 "<quote>interesting</quote> files—those that you have modified or told "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5272 "Mercurial to do something with—by default. If you have a repository that "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5273 "contains thousands of files, you will rarely want to know about files that "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5274 "Mercurial is tracking, but that have not changed. (You can still get this "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5275 "information; we'll return to this later.)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5276 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5277
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5278 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5279 #: ../en/ch04-daily.xml:38
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5280 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5281 "Once you add a file, Mercurial doesn't do anything with it immediately. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5282 "Instead, it will take a snapshot of the file's state the next time you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5283 "perform a commit. It will then continue to track the changes you make to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5284 "file every time you commit, until you remove the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5285 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5286
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5287 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5288 #: ../en/ch04-daily.xml:45
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5289 msgid "Explicit versus implicit file naming"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5290 msgstr "明确与隐含文件命名"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5291
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5292 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5293 #: ../en/ch04-daily.xml:47
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5294 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5295 "A useful behaviour that Mercurial has is that if you pass the name of a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5296 "directory to a command, every Mercurial command will treat this as <quote>I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5297 "want to operate on every file in this directory and its subdirectories</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5298 "quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5299 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5300
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5301 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5302 #: ../en/ch04-daily.xml:54
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5303 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5304 "Notice in this example that Mercurial printed the names of the files it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5305 "added, whereas it didn't do so when we added the file named <filename>a</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5306 "filename> in the earlier example."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5307 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5308
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5309 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5310 #: ../en/ch04-daily.xml:59
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5311 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5312 "What's going on is that in the former case, we explicitly named the file to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5313 "add on the command line, so the assumption that Mercurial makes in such cases "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5314 "is that you know what you were doing, and it doesn't print any output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5315 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5316
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5317 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5318 #: ../en/ch04-daily.xml:64
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5319 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5320 "However, when we <emphasis>imply</emphasis> the names of files by giving the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5321 "name of a directory, Mercurial takes the extra step of printing the name of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5322 "each file that it does something with. This makes it more clear what is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5323 "happening, and reduces the likelihood of a silent and nasty surprise. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5324 "behaviour is common to most Mercurial commands."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5325 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5326
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5327 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5328 #: ../en/ch04-daily.xml:73
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5329 msgid "Aside: Mercurial tracks files, not directories"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5330 msgstr "旁白: Mercurial 只跟踪文件,不跟踪目录"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5331
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5332 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5333 #: ../en/ch04-daily.xml:75
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5334 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5335 "Mercurial does not track directory information. Instead, it tracks the path "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5336 "to a file. Before creating a file, it first creates any missing directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5337 "components of the path. After it deletes a file, it then deletes any empty "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5338 "directories that were in the deleted file's path. This sounds like a trivial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5339 "distinction, but it has one minor practical consequence: it is not possible "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5340 "to represent a completely empty directory in Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5341 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5342
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5343 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5344 #: ../en/ch04-daily.xml:84
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5345 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5346 "Empty directories are rarely useful, and there are unintrusive workarounds "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5347 "that you can use to achieve an appropriate effect. The developers of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5348 "Mercurial thus felt that the complexity that would be required to manage "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5349 "empty directories was not worth the limited benefit this feature would bring."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5350 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5351
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5352 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5353 #: ../en/ch04-daily.xml:91
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5354 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5355 "If you need an empty directory in your repository, there are a few ways to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5356 "achieve this. One is to create a directory, then <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5357 "add</command> a <quote>hidden</quote> file to that directory. On Unix-like "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5358 "systems, any file name that begins with a period (<quote><literal>.</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5359 "literal></quote>) is treated as hidden by most commands and GUI tools. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5360 "approach is illustrated below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5361 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5362
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5363 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5364 #: ../en/ch04-daily.xml:102
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5365 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5366 "Another way to tackle a need for an empty directory is to simply create one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5367 "in your automated build scripts before they will need it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5368 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5369
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5370 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5371 #: ../en/ch04-daily.xml:109
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5372 msgid "How to stop tracking a file"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5373 msgstr "如何停止跟踪文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5374
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5375 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5376 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5377 #: ../en/ch04-daily.xml:111
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5378 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5379 "Once you decide that a file no longer belongs in your repository, use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5380 "<command role=\"hg-cmd\">hg remove</command> command; this deletes the file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5381 "and tells Mercurial to stop tracking it. A removed file is represented in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5382 "the output of <command role=\"hg-cmd\">hg status</command> with a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5383 "<quote><literal>R</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5384 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5385
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5386 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5387 #: ../en/ch04-daily.xml:120
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5388 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5389 "After you <command role=\"hg-cmd\">hg remove</command> a file, Mercurial will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5390 "no longer track changes to that file, even if you recreate a file with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5391 "same name in your working directory. If you do recreate a file with the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5392 "name and want Mercurial to track the new file, simply <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5393 "\">hg add</command> it. Mercurial will know that the newly added file is not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5394 "related to the old file of the same name."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5395 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5396
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5397 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5398 #: ../en/ch04-daily.xml:129
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5399 msgid "Removing a file does not affect its history"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5400 msgstr "删除文件不影响历史"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5401
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5402 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5403 #: ../en/ch04-daily.xml:131
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5404 msgid "It is important to understand that removing a file has only two effects."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5405 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5406
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5407 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5408 #: ../en/ch04-daily.xml:134
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5409 msgid "It removes the current version of the file from the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5410 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5411
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5412 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5413 #: ../en/ch04-daily.xml:137
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5414 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5415 "It stops Mercurial from tracking changes to the file, from the time of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5416 "next commit."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5417 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5418
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5419 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5420 #: ../en/ch04-daily.xml:140
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5421 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5422 "Removing a file <emphasis>does not</emphasis> in any way alter the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5423 "<emphasis>history</emphasis> of the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5424 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5425
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5426 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5427 #: ../en/ch04-daily.xml:143
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5428 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5429 "If you update the working directory to a changeset in which a file that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5430 "have removed was still tracked, it will reappear in the working directory, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5431 "with the contents it had when you committed that changeset. If you then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5432 "update the working directory to a later changeset, in which the file had been "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5433 "removed, Mercurial will once again remove the file from the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5434 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5435
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5436 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5437 #: ../en/ch04-daily.xml:153
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5438 msgid "Missing files"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5439 msgstr "丢失的文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5440
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5441 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5442 #: ../en/ch04-daily.xml:155
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5443 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5444 "Mercurial considers a file that you have deleted, but not used <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5445 "\"hg-cmd\">hg remove</command> to delete, to be <emphasis>missing</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5446 "emphasis>. A missing file is represented with <quote><literal>!</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5447 "quote> in the output of <command role=\"hg-cmd\">hg status</command>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5448 "Mercurial commands will not generally do anything with missing files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5449 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5450
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5451 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5452 #: ../en/ch04-daily.xml:165
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5453 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5454 "If your repository contains a file that <command role=\"hg-cmd\">hg status</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5455 "command> reports as missing, and you want the file to stay gone, you can run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5456 "<command role=\"hg-cmd\">hg remove <option role=\"hg-opt-remove\">--after</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5457 "option></command> at any time later on, to tell Mercurial that you really did "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5458 "mean to remove the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5459 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5460
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5461 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5462 #: ../en/ch04-daily.xml:175
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5463 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5464 "On the other hand, if you deleted the missing file by accident, give <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5465 "role=\"hg-cmd\">hg revert</command> the name of the file to recover. It will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5466 "reappear, in unmodified form."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5467 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5468
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5469 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5470 #: ../en/ch04-daily.xml:184
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5471 msgid "Aside: why tell Mercurial explicitly to remove a file?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5472 msgstr "旁白: 为什么要明确告诉 Mercurial 删除文件?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5473
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5474 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5475 #: ../en/ch04-daily.xml:187
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5476 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5477 "You might wonder why Mercurial requires you to explicitly tell it that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5478 "are deleting a file. Early during the development of Mercurial, it let you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5479 "delete a file however you pleased; Mercurial would notice the absence of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5480 "file automatically when you next ran a <command role=\"hg-cmd\">hg commit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5481 "command>, and stop tracking the file. In practice, this made it too easy to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5482 "accidentally remove a file without noticing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5483 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5484
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5485 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5486 #: ../en/ch04-daily.xml:198
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
5487 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5488 msgid "Useful shorthand—adding and removing files in one step"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5489 msgstr "有用的速记—一个步骤添加和删除文件"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5490
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5491 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5492 #: ../en/ch04-daily.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5493 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5494 "Mercurial offers a combination command, <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5495 "addremove</command>, that adds untracked files and marks missing files as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5496 "removed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5497 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5498
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5499 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5500 #: ../en/ch04-daily.xml:207
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5501 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5502 "The <command role=\"hg-cmd\">hg commit</command> command also provides a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5503 "<option role=\"hg-opt-commit\">-A</option> option that performs this same add-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5504 "and-remove, immediately followed by a commit."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5505 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5506
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5507 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5508 #: ../en/ch04-daily.xml:217
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5509 msgid "Copying files"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5510 msgstr "复制文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5511
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5512 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5513 #: ../en/ch04-daily.xml:219
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5514 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5515 "Mercurial provides a <command role=\"hg-cmd\">hg copy</command> command that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5516 "lets you make a new copy of a file. When you copy a file using this command, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5517 "Mercurial makes a record of the fact that the new file is a copy of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5518 "original file. It treats these copied files specially when you merge your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5519 "work with someone else's."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5520 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5521
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5522 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5523 #: ../en/ch04-daily.xml:227
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5524 msgid "The results of copying during a merge"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5525 msgstr "合并期间的复制结果"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5526
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5527 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5528 #: ../en/ch04-daily.xml:229
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5529 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5530 "What happens during a merge is that changes <quote>follow</quote> a copy. To "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5531 "best illustrate what this means, let's create an example. We'll start with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5532 "the usual tiny repository that contains a single file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5533 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5534
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5535 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5536 #: ../en/ch04-daily.xml:236
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5537 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5538 "We need to do some work in parallel, so that we'll have something to merge. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5539 "So let's clone our repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5540 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5541
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5542 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5543 #: ../en/ch04-daily.xml:242
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5544 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5545 "Back in our initial repository, let's use the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5546 "copy</command> command to make a copy of the first file we created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5547 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5548
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5549 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5550 #: ../en/ch04-daily.xml:248
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5551 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5552 "If we look at the output of the <command role=\"hg-cmd\">hg status</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5553 "command afterwards, the copied file looks just like a normal added file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5554 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5555
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5556 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5557 #: ../en/ch04-daily.xml:254
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5558 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5559 "But if we pass the <option role=\"hg-opt-status\">-C</option> option to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5560 "<command role=\"hg-cmd\">hg status</command>, it prints another line of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5561 "output: this is the file that our newly-added file was copied <emphasis>from</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5562 "emphasis>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5563 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5564
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5565 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5566 #: ../en/ch04-daily.xml:262
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5567 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5568 "Now, back in the repository we cloned, let's make a change in parallel. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5569 "We'll add a line of content to the original file that we created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5570 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5571
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5572 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5573 #: ../en/ch04-daily.xml:268
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5574 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5575 "Now we have a modified <filename>file</filename> in this repository. When we "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5576 "pull the changes from the first repository, and merge the two heads, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5577 "Mercurial will propagate the changes that we made locally to <filename>file</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5578 "filename> into its copy, <filename>new-file</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5579 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5580
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5581 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5582 #: ../en/ch04-daily.xml:278
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5583 msgid "Why should changes follow copies?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5584 msgstr "为什么复制后需要后续修改?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5585
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5586 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5587 #: ../en/ch04-daily.xml:280
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5588 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5589 "This behaviour, of changes to a file propagating out to copies of the file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5590 "might seem esoteric, but in most cases it's highly desirable."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5591 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5592
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5593 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5594 #: ../en/ch04-daily.xml:284
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5595 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5596 "First of all, remember that this propagation <emphasis>only</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5597 "happens when you merge. So if you <command role=\"hg-cmd\">hg copy</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5598 "a file, and subsequently modify the original file during the normal course of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5599 "your work, nothing will happen."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5600 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5601
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5602 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5603 #: ../en/ch04-daily.xml:290
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5604 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5605 "The second thing to know is that modifications will only propagate across a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5606 "copy as long as the repository that you're pulling changes from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5607 "<emphasis>doesn't know</emphasis> about the copy."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5608 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5609
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5610 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5611 #: ../en/ch04-daily.xml:295
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5612 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5613 "The reason that Mercurial does this is as follows. Let's say I make an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5614 "important bug fix in a source file, and commit my changes. Meanwhile, you've "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5615 "decided to <command role=\"hg-cmd\">hg copy</command> the file in your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5616 "repository, without knowing about the bug or having seen the fix, and you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5617 "have started hacking on your copy of the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5618 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5619
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5620 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5621 #: ../en/ch04-daily.xml:302
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5622 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5623 "If you pulled and merged my changes, and Mercurial <emphasis>didn't</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5624 "emphasis> propagate changes across copies, your source file would now contain "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5625 "the bug, and unless you remembered to propagate the bug fix by hand, the bug "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5626 "would <emphasis>remain</emphasis> in your copy of the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5627 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5628
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5629 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5630 #: ../en/ch04-daily.xml:308
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5631 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5632 "By automatically propagating the change that fixed the bug from the original "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5633 "file to the copy, Mercurial prevents this class of problem. To my knowledge, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5634 "Mercurial is the <emphasis>only</emphasis> revision control system that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5635 "propagates changes across copies like this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5636 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5637
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5638 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5639 #: ../en/ch04-daily.xml:314
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5640 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5641 "Once your change history has a record that the copy and subsequent merge "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5642 "occurred, there's usually no further need to propagate changes from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5643 "original file to the copied file, and that's why Mercurial only propagates "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5644 "changes across copies until this point, and no further."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5645 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5646
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5647 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5648 #: ../en/ch04-daily.xml:322
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5649 msgid "How to make changes <emphasis>not</emphasis> follow a copy"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5650 msgstr "如何让复制后<emphasis>不</emphasis>修改?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5651
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5652 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5653 #: ../en/ch04-daily.xml:325
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5654 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5655 "If, for some reason, you decide that this business of automatically "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5656 "propagating changes across copies is not for you, simply use your system's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5657 "normal file copy command (on Unix-like systems, that's <command>cp</command>) "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5658 "to make a copy of a file, then <command role=\"hg-cmd\">hg add</command> the "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5659 "new copy by hand. Before you do so, though, please do reread <xref linkend="
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5660 "\"sec:daily:why-copy\"/>, and make an informed decision that this behaviour "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5661 "is not appropriate to your specific case."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5662 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5663
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5664 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5665 #: ../en/ch04-daily.xml:338
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5666 msgid "Behaviour of the <command role=\"hg-cmd\">hg copy</command> command"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5667 msgstr "命令 <command role=\"hg-cmd\">hg copy</command> 的特性"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5668
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5669 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5670 #: ../en/ch04-daily.xml:341
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5671 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5672 "When you use the <command role=\"hg-cmd\">hg copy</command> command, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5673 "Mercurial makes a copy of each source file as it currently stands in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5674 "working directory. This means that if you make some modifications to a file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5675 "then <command role=\"hg-cmd\">hg copy</command> it without first having "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5676 "committed those changes, the new copy will also contain the modifications you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5677 "have made up until that point. (I find this behaviour a little "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5678 "counterintuitive, which is why I mention it here.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5679 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5680
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5681 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5682 #: ../en/ch04-daily.xml:351
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5683 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5684 "The <command role=\"hg-cmd\">hg copy</command> command acts similarly to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5685 "Unix <command>cp</command> command (you can use the <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5686 "\">hg cp</command> alias if you prefer). The last argument is the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5687 "<emphasis>destination</emphasis>, and all prior arguments are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5688 "<emphasis>sources</emphasis>. If you pass it a single file as the source, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5689 "and the destination does not exist, it creates a new file with that name."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5690 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5691
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5692 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5693 #: ../en/ch04-daily.xml:362
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5694 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5695 "If the destination is a directory, Mercurial copies its sources into that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5696 "directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5697 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5698
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5699 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5700 #: ../en/ch04-daily.xml:367
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5701 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5702 "Copying a directory is recursive, and preserves the directory structure of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5703 "the source."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5704 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5705
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5706 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5707 #: ../en/ch04-daily.xml:373
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5708 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5709 "If the source and destination are both directories, the source tree is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5710 "recreated in the destination directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5711 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5712
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5713 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5714 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5715 #: ../en/ch04-daily.xml:378
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5716 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5717 "As with the <command role=\"hg-cmd\">hg rename</command> command, if you copy "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5718 "a file manually and then want Mercurial to know that you've copied the file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5719 "simply use the <option role=\"hg-opt-copy\">--after</option> option to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5720 "<command role=\"hg-cmd\">hg copy</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5721 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5722
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5723 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5724 #: ../en/ch04-daily.xml:389
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5725 msgid "Renaming files"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5726 msgstr "改名文件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5727
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5728 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5729 #: ../en/ch04-daily.xml:391
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5730 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5731 "It's rather more common to need to rename a file than to make a copy of it. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5732 "The reason I discussed the <command role=\"hg-cmd\">hg copy</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5733 "before talking about renaming files is that Mercurial treats a rename in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5734 "essentially the same way as a copy. Therefore, knowing what Mercurial does "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5735 "when you copy a file tells you what to expect when you rename a file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5736 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5737
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5738 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5739 #: ../en/ch04-daily.xml:399
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5740 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5741 "When you use the <command role=\"hg-cmd\">hg rename</command> command, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5742 "Mercurial makes a copy of each source file, then deletes it and marks the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5743 "file as removed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5744 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5745
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5746 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5747 #: ../en/ch04-daily.xml:405
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5748 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5749 "The <command role=\"hg-cmd\">hg status</command> command shows the newly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5750 "copied file as added, and the copied-from file as removed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5751 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5752
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5753 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5754 #: ../en/ch04-daily.xml:411
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5755 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5756 "As with the results of a <command role=\"hg-cmd\">hg copy</command>, we must "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5757 "use the <option role=\"hg-opt-status\">-C</option> option to <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5758 "\"hg-cmd\">hg status</command> to see that the added file is really being "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5759 "tracked by Mercurial as a copy of the original, now removed, file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5760 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5761
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5762 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5763 #: ../en/ch04-daily.xml:420
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5764 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5765 "As with <command role=\"hg-cmd\">hg remove</command> and <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5766 "cmd\">hg copy</command>, you can tell Mercurial about a rename after the fact "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5767 "using the <option role=\"hg-opt-rename\">--after</option> option. In most "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5768 "other respects, the behaviour of the <command role=\"hg-cmd\">hg rename</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5769 "command> command, and the options it accepts, are similar to the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5770 "role=\"hg-cmd\">hg copy</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5771 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5772
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5773 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5774 #: ../en/ch04-daily.xml:430
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5775 msgid "Renaming files and merging changes"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5776 msgstr "改名文件与合并修改"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5777
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5778 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5779 #: ../en/ch04-daily.xml:432
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5780 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5781 "Since Mercurial's rename is implemented as copy-and-remove, the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5782 "propagation of changes happens when you merge after a rename as after a copy."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5783 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5784
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5785 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5786 #: ../en/ch04-daily.xml:436
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5787 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5788 "If I modify a file, and you rename it to a new name, and then we merge our "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5789 "respective changes, my modifications to the file under its original name will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5790 "be propagated into the file under its new name. (This is something you might "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5791 "expect to <quote>simply work,</quote> but not all revision control systems "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5792 "actually do this.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5793 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5794
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5795 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5796 #: ../en/ch04-daily.xml:443
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5797 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5798 "Whereas having changes follow a copy is a feature where you can perhaps nod "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5799 "and say <quote>yes, that might be useful,</quote> it should be clear that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5800 "having them follow a rename is definitely important. Without this facility, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5801 "it would simply be too easy for changes to become orphaned when files are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5802 "renamed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5803 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5804
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5805 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5806 #: ../en/ch04-daily.xml:452
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5807 msgid "Divergent renames and merging"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5808 msgstr "改名与合并的分歧"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5809
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5810 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5811 #: ../en/ch04-daily.xml:454
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5812 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5813 "The case of diverging names occurs when two developers start with a file—"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
5814 "let's call it <filename>foo</filename>&emdash;in their respective "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5815 "repositories."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5816 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5817
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5818 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5819 #: ../en/ch04-daily.xml:461
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5820 msgid "Anne renames the file to <filename>bar</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5821 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5822
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5823 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5824 #: ../en/ch04-daily.xml:465
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5825 msgid "Meanwhile, Bob renames it to <filename>quux</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5826 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5827
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5828 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5829 #: ../en/ch04-daily.xml:470
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5830 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5831 "I like to think of this as a conflict because each developer has expressed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5832 "different intentions about what the file ought to be named."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5833 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5834
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5835 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5836 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5837 #: ../en/ch04-daily.xml:474
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5838 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5839 "What do you think should happen when they merge their work? Mercurial's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5840 "actual behaviour is that it always preserves <emphasis>both</emphasis> names "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5841 "when it merges changesets that contain divergent renames."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5842 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5843
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5844 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5845 #: ../en/ch04-daily.xml:481
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5846 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5847 "Notice that Mercurial does warn about the divergent renames, but it leaves it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5848 "up to you to do something about the divergence after the merge."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5849 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5850
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5851 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5852 #: ../en/ch04-daily.xml:487
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5853 msgid "Convergent renames and merging"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5854 msgstr "收敛改名与合并"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5855
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5856 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5857 #: ../en/ch04-daily.xml:489
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5858 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5859 "Another kind of rename conflict occurs when two people choose to rename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5860 "different <emphasis>source</emphasis> files to the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5861 "<emphasis>destination</emphasis>. In this case, Mercurial runs its normal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5862 "merge machinery, and lets you guide it to a suitable resolution."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5863 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5864
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5865 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5866 #: ../en/ch04-daily.xml:497
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5867 msgid "Other name-related corner cases"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5868 msgstr "其它名称相关的角落"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5869
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5870 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5871 #: ../en/ch04-daily.xml:499
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5872 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5873 "Mercurial has a longstanding bug in which it fails to handle a merge where "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5874 "one side has a file with a given name, while another has a directory with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5875 "same name. This is documented as <ulink role=\"hg-bug\" url=\"http://www."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5876 "selenic.com/mercurial/bts/issue29\">issue 29</ulink>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5877 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5878
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5879 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5880 #: ../en/ch04-daily.xml:511
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5881 msgid "Recovering from mistakes"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5882 msgstr "从错误恢复"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5883
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5884 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5885 #: ../en/ch04-daily.xml:513
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5886 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5887 "Mercurial has some useful commands that will help you to recover from some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5888 "common mistakes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5889 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5890
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5891 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5892 #: ../en/ch04-daily.xml:516
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5893 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5894 "The <command role=\"hg-cmd\">hg revert</command> command lets you undo "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5895 "changes that you have made to your working directory. For example, if you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5896 "<command role=\"hg-cmd\">hg add</command> a file by accident, just run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5897 "<command role=\"hg-cmd\">hg revert</command> with the name of the file you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5898 "added, and while the file won't be touched in any way, it won't be tracked "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5899 "for adding by Mercurial any longer, either. You can also use <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5900 "\"hg-cmd\">hg revert</command> to get rid of erroneous changes to a file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5901 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5902
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5903 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5904 #: ../en/ch04-daily.xml:526
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5905 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5906 "It's useful to remember that the <command role=\"hg-cmd\">hg revert</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5907 "command is useful for changes that you have not yet committed. Once you've "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5908 "committed a change, if you decide it was a mistake, you can still do "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5909 "something about it, though your options may be more limited."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5910 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5911
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5912 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5913 #: ../en/ch04-daily.xml:532
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5914 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5915 "For more information about the <command role=\"hg-cmd\">hg revert</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5916 "command, and details about how to deal with changes you have already "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5917 "committed, see <xref linkend=\"chap:undo\"/>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5918 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5919
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5920 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5921 #: ../en/ch05-collab.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5922 msgid "Collaborating with other people"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5923 msgstr "团体协作"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5924
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5925 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5926 #: ../en/ch05-collab.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5927 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5928 "As a completely decentralised tool, Mercurial doesn't impose any policy on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5929 "how people ought to work with each other. However, if you're new to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5930 "distributed revision control, it helps to have some tools and examples in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5931 "mind when you're thinking about possible workflow models."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5932 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5933
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5934 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5935 #: ../en/ch05-collab.xml:14
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5936 msgid "Mercurial's web interface"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
5937 msgstr "Mercurial 的 web 接口"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5938
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5939 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5940 #: ../en/ch05-collab.xml:16
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5941 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5942 "Mercurial has a powerful web interface that provides several useful "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5943 "capabilities."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5944 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5945
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5946 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5947 #: ../en/ch05-collab.xml:19
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5948 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5949 "For interactive use, the web interface lets you browse a single repository or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5950 "a collection of repositories. You can view the history of a repository, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5951 "examine each change (comments and diffs), and view the contents of each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5952 "directory and file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5953 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5954
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5955 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5956 #: ../en/ch05-collab.xml:24
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5957 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5958 "Also for human consumption, the web interface provides an RSS feed of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5959 "changes in a repository. This lets you <quote>subscribe</quote> to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5960 "repository using your favourite feed reader, and be automatically notified of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5961 "activity in that repository as soon as it happens. I find this capability "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5962 "much more convenient than the model of subscribing to a mailing list to which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5963 "notifications are sent, as it requires no additional configuration on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5964 "part of whoever is serving the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5965 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5966
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5967 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5968 #: ../en/ch05-collab.xml:34
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5969 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5970 "The web interface also lets remote users clone a repository, pull changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5971 "from it, and (when the server is configured to permit it) push changes back "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5972 "to it. Mercurial's HTTP tunneling protocol aggressively compresses data, so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5973 "that it works efficiently even over low-bandwidth network connections."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5974 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5975
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5976 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5977 #: ../en/ch05-collab.xml:40
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5978 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5979 "The easiest way to get started with the web interface is to use your web "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5980 "browser to visit an existing repository, such as the master Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5981 "repository at <ulink url=\"http://www.selenic.com/repo/hg?style=gitweb"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5982 "\">http://www.selenic.com/repo/hg?style=gitweb</ulink>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5983 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5984
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5985 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
5986 #: ../en/ch05-collab.xml:45
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5987 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5988 "If you're interested in providing a web interface to your own repositories, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5989 "Mercurial provides two ways to do this. The first is using the <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5990 "\"hg-cmd\">hg serve</command> command, which is best suited to short-term "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5991 "<quote>lightweight</quote> serving. See <xref linkend=\"sec:collab:serve\"/> "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5992 "below for details of how to use this command. If you have a long-lived "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5993 "repository that you'd like to make permanently available, Mercurial has built-"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5994 "in support for the CGI (Common Gateway Interface) standard, which all common "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5995 "web servers support. See <xref linkend=\"sec:collab:cgi\"/> for details of "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
5996 "CGI configuration."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5997 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5998
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
5999 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6000 #: ../en/ch05-collab.xml:60
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6001 msgid "Collaboration models"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6002 msgstr "协作模型"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6003
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6004 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6005 #: ../en/ch05-collab.xml:62
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6006 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6007 "With a suitably flexible tool, making decisions about workflow is much more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6008 "of a social engineering challenge than a technical one. Mercurial imposes few "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6009 "limitations on how you can structure the flow of work in a project, so it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6010 "up to you and your group to set up and live with a model that matches your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6011 "own particular needs."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6012 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6013
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6014 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6015 #: ../en/ch05-collab.xml:70
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6016 msgid "Factors to keep in mind"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6017 msgstr "要牢记的因素"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6018
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6019 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6020 #: ../en/ch05-collab.xml:72
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6021 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6022 "The most important aspect of any model that you must keep in mind is how well "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6023 "it matches the needs and capabilities of the people who will be using it. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6024 "This might seem self-evident; even so, you still can't afford to forget it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6025 "for a moment."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6026 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6027
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6028 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6029 #: ../en/ch05-collab.xml:78
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6030 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6031 "I once put together a workflow model that seemed to make perfect sense to me, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6032 "but that caused a considerable amount of consternation and strife within my "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6033 "development team. In spite of my attempts to explain why we needed a complex "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6034 "set of branches, and how changes ought to flow between them, a few team "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6035 "members revolted. Even though they were smart people, they didn't want to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6036 "pay attention to the constraints we were operating under, or face the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6037 "consequences of those constraints in the details of the model that I was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6038 "advocating."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6039 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6040
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6041 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6042 #: ../en/ch05-collab.xml:88
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6043 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6044 "Don't sweep foreseeable social or technical problems under the rug. Whatever "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6045 "scheme you put into effect, you should plan for mistakes and problem "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6046 "scenarios. Consider adding automated machinery to prevent, or quickly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6047 "recover from, trouble that you can anticipate. As an example, if you intend "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6048 "to have a branch with not-for-release changes in it, you'd do well to think "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6049 "early about the possibility that someone might accidentally merge those "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6050 "changes into a release branch. You could avoid this particular problem by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6051 "writing a hook that prevents changes from being merged from an inappropriate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6052 "branch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6053 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6054
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6055 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6056 #: ../en/ch05-collab.xml:102
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6057 msgid "Informal anarchy"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6058 msgstr "无政府状态"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6059
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6060 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6061 #: ../en/ch05-collab.xml:104
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6062 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6063 "I wouldn't suggest an <quote>anything goes</quote> approach as something "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6064 "sustainable, but it's a model that's easy to grasp, and it works perfectly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6065 "well in a few unusual situations."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6066 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6067
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6068 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6069 #: ../en/ch05-collab.xml:109
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6070 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6071 "As one example, many projects have a loose-knit group of collaborators who "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6072 "rarely physically meet each other. Some groups like to overcome the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6073 "isolation of working at a distance by organising occasional <quote>sprints</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6074 "quote>. In a sprint, a number of people get together in a single location (a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6075 "company's conference room, a hotel meeting room, that kind of place) and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6076 "spend several days more or less locked in there, hacking intensely on a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6077 "handful of projects."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6078 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6079
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6080 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6081 #: ../en/ch05-collab.xml:118
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6082 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6083 "A sprint is the perfect place to use the <command role=\"hg-cmd\">hg serve</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6084 "command> command, since <command role=\"hg-cmd\">hg serve</command> does not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6085 "require any fancy server infrastructure. You can get started with <command "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6086 "role=\"hg-cmd\">hg serve</command> in moments, by reading <xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6087 "collab:serve\"/> below. Then simply tell the person next to you that you're "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6088 "running a server, send the URL to them in an instant message, and you "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6089 "immediately have a quick-turnaround way to work together. They can type your "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6090 "URL into their web browser and quickly review your changes; or they can pull "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6091 "a bugfix from you and verify it; or they can clone a branch containing a new "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6092 "feature and try it out."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6093 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6094
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6095 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6096 #: ../en/ch05-collab.xml:132
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6097 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6098 "The charm, and the problem, with doing things in an ad hoc fashion like this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6099 "is that only people who know about your changes, and where they are, can see "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6100 "them. Such an informal approach simply doesn't scale beyond a handful "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6101 "people, because each individual needs to know about $n$ different "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6102 "repositories to pull from."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6103 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6104
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6105 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6106 #: ../en/ch05-collab.xml:141
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6107 msgid "A single central repository"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6108 msgstr "单一中央版本库"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6109
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6110 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6111 #: ../en/ch05-collab.xml:143
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6112 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6113 "For smaller projects migrating from a centralised revision control tool, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6114 "perhaps the easiest way to get started is to have changes flow through a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6115 "single shared central repository. This is also the most common "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6116 "<quote>building block</quote> for more ambitious workflow schemes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6117 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6118
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6119 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6120 #: ../en/ch05-collab.xml:149
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6121 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6122 "Contributors start by cloning a copy of this repository. They can pull "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6123 "changes from it whenever they need to, and some (perhaps all) developers have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6124 "permission to push a change back when they're ready for other people to see "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6125 "it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6126 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6127
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6128 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6129 #: ../en/ch05-collab.xml:154
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6130 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6131 "Under this model, it can still often make sense for people to pull changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6132 "directly from each other, without going through the central repository. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6133 "Consider a case in which I have a tentative bug fix, but I am worried that if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6134 "I were to publish it to the central repository, it might subsequently break "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6135 "everyone else's trees as they pull it. To reduce the potential for damage, I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6136 "can ask you to clone my repository into a temporary repository of your own "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6137 "and test it. This lets us put off publishing the potentially unsafe change "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6138 "until it has had a little testing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6139 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6140
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6141 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6142 #: ../en/ch05-collab.xml:165
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6143 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6144 "In this kind of scenario, people usually use the <command>ssh</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6145 "protocol to securely push changes to the central repository, as documented in "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6146 "<xref linkend=\"sec:collab:ssh\"/>. It's also usual to publish a read-only "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6147 "copy of the repository over HTTP using CGI, as in <xref linkend=\"sec:collab:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6148 "cgi\"/>. Publishing over HTTP satisfies the needs of people who don't have "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6149 "push access, and those who want to use web browsers to browse the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6150 "repository's history."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6151 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6152
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6153 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6154 #: ../en/ch05-collab.xml:177
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6155 msgid "Working with multiple branches"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6156 msgstr "使用多个分支工作"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6157
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6158 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6159 #: ../en/ch05-collab.xml:179
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6160 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6161 "Projects of any significant size naturally tend to make progress on several "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6162 "fronts simultaneously. In the case of software, it's common for a project to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6163 "go through periodic official releases. A release might then go into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6164 "<quote>maintenance mode</quote> for a while after its first publication; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6165 "maintenance releases tend to contain only bug fixes, not new features. In "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6166 "parallel with these maintenance releases, one or more future releases may be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6167 "under development. People normally use the word <quote>branch</quote> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6168 "refer to one of these many slightly different directions in which development "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6169 "is proceeding."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6170 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6171
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6172 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6173 #: ../en/ch05-collab.xml:192
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6174 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6175 "Mercurial is particularly well suited to managing a number of simultaneous, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6176 "but not identical, branches. Each <quote>development direction</quote> can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6177 "live in its own central repository, and you can merge changes from one to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6178 "another as the need arises. Because repositories are independent of each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6179 "other, unstable changes in a development branch will never affect a stable "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6180 "branch unless someone explicitly merges those changes in."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6181 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6182
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6183 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6184 #: ../en/ch05-collab.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6185 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6186 "Here's an example of how this can work in practice. Let's say you have one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6187 "<quote>main branch</quote> on a central server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6188 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6189
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6190 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6191 #: ../en/ch05-collab.xml:207
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6192 msgid "People clone it, make changes locally, test them, and push them back."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6193 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6194
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6195 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6196 #: ../en/ch05-collab.xml:210
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6197 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6198 "Once the main branch reaches a release milestone, you can use the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6199 "role=\"hg-cmd\">hg tag</command> command to give a permanent name to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6200 "milestone revision."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6201 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6202
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6203 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6204 #: ../en/ch05-collab.xml:216
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6205 msgid "Let's say some ongoing development occurs on the main branch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6206 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6207
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6208 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6209 #: ../en/ch05-collab.xml:221
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6210 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6211 "Using the tag that was recorded at the milestone, people who clone that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6212 "repository at any time in the future can use <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6213 "update</command> to get a copy of the working directory exactly as it was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6214 "when that tagged revision was committed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6215 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6216
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6217 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6218 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6219 #: ../en/ch05-collab.xml:229
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6220 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6221 "In addition, immediately after the main branch is tagged, someone can then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6222 "clone the main branch on the server to a new <quote>stable</quote> branch, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6223 "also on the server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6224 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6225
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6226 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6227 #: ../en/ch05-collab.xml:235
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6228 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6229 "Someone who needs to make a change to the stable branch can then clone "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6230 "<emphasis>that</emphasis> repository, make their changes, commit, and push "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6231 "their changes back there."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6232 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6233
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6234 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6235 #: ../en/ch05-collab.xml:241
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6236 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6237 "Because Mercurial repositories are independent, and Mercurial doesn't move "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6238 "changes around automatically, the stable and main branches are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6239 "<emphasis>isolated</emphasis> from each other. The changes that you made on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6240 "the main branch don't <quote>leak</quote> to the stable branch, and vice "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6241 "versa."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6242 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6243
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6244 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6245 #: ../en/ch05-collab.xml:248
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6246 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6247 "You'll often want all of your bugfixes on the stable branch to show up on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6248 "main branch, too. Rather than rewrite a bugfix on the main branch, you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6249 "simply pull and merge changes from the stable to the main branch, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6250 "Mercurial will bring those bugfixes in for you."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6251 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6252
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6253 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6254 #: ../en/ch05-collab.xml:256
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6255 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6256 "The main branch will still contain changes that are not on the stable branch, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6257 "but it will also contain all of the bugfixes from the stable branch. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6258 "stable branch remains unaffected by these changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6259 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6260
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6261 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6262 #: ../en/ch05-collab.xml:263 ../en/ch05-collab.xml:273
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6263 msgid "Feature branches"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6264 msgstr "特性分支"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6265
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6266 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6267 #: ../en/ch05-collab.xml:265
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6268 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6269 "For larger projects, an effective way to manage change is to break up a team "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6270 "into smaller groups. Each group has a shared branch of its own, cloned from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6271 "a single <quote>master</quote> branch used by the entire project. People "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6272 "working on an individual branch are typically quite isolated from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6273 "developments on other branches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6274 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6275
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6276 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6277 #: ../en/ch05-collab.xml:275
740
8b73656f95c9 Update file location in po files
Dongsheng Song <dongsheng.song@gmail.com>
parents: 735
diff changeset
6278 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6279 "<imageobject><imagedata width=\"100%\" fileref=\"figs/feature-branches.png\"/"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6280 "></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6281 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6282
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6283 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6284 #: ../en/ch05-collab.xml:280
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6285 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6286 "When a particular feature is deemed to be in suitable shape, someone on that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6287 "feature team pulls and merges from the master branch into the feature branch, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6288 "then pushes back up to the master branch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6289 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6290
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6291 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6292 #: ../en/ch05-collab.xml:287
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6293 msgid "The release train"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6294 msgstr "发布列车"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6295
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6296 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6297 #: ../en/ch05-collab.xml:289
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6298 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6299 "Some projects are organised on a <quote>train</quote> basis: a release is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6300 "scheduled to happen every few months, and whatever features are ready when "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6301 "the <quote>train</quote> is ready to leave are allowed in."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6302 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6303
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6304 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6305 #: ../en/ch05-collab.xml:294
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6306 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6307 "This model resembles working with feature branches. The difference is that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6308 "when a feature branch misses a train, someone on the feature team pulls and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6309 "merges the changes that went out on that train release into the feature "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6310 "branch, and the team continues its work on top of that release so that their "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6311 "feature can make the next release."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6312 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6313
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6314 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6315 #: ../en/ch05-collab.xml:303
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6316 msgid "The Linux kernel model"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6317 msgstr "Linux 内核模型"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6318
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6319 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6320 #: ../en/ch05-collab.xml:305
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6321 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6322 "The development of the Linux kernel has a shallow hierarchical structure, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6323 "surrounded by a cloud of apparent chaos. Because most Linux developers use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6324 "<command>git</command>, a distributed revision control tool with capabilities "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6325 "similar to Mercurial, it's useful to describe the way work flows in that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6326 "environment; if you like the ideas, the approach translates well across tools."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6327 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6328
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6329 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6330 #: ../en/ch05-collab.xml:313
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6331 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6332 "At the center of the community sits Linus Torvalds, the creator of Linux. He "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6333 "publishes a single source repository that is considered the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6334 "<quote>authoritative</quote> current tree by the entire developer community. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6335 "Anyone can clone Linus's tree, but he is very choosy about whose trees he "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6336 "pulls from."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6337 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6338
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6339 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6340 #: ../en/ch05-collab.xml:320
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6341 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6342 "Linus has a number of <quote>trusted lieutenants</quote>. As a general rule, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6343 "he pulls whatever changes they publish, in most cases without even reviewing "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6344 "those changes. Some of those lieutenants are generally agreed to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6345 "<quote>maintainers</quote>, responsible for specific subsystems within the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6346 "kernel. If a random kernel hacker wants to make a change to a subsystem that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6347 "they want to end up in Linus's tree, they must find out who the subsystem's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6348 "maintainer is, and ask that maintainer to take their change. If the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6349 "maintainer reviews their changes and agrees to take them, they'll pass them "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6350 "along to Linus in due course."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6351 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6352
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6353 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6354 #: ../en/ch05-collab.xml:332
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6355 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6356 "Individual lieutenants have their own approaches to reviewing, accepting, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6357 "publishing changes; and for deciding when to feed them to Linus. In "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6358 "addition, there are several well known branches that people use for different "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6359 "purposes. For example, a few people maintain <quote>stable</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6360 "repositories of older versions of the kernel, to which they apply critical "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6361 "fixes as needed. Some maintainers publish multiple trees: one for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6362 "experimental changes; one for changes that they are about to feed upstream; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6363 "and so on. Others just publish a single tree."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6364 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6365
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6366 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6367 #: ../en/ch05-collab.xml:343
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6368 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6369 "This model has two notable features. The first is that it's <quote>pull "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6370 "only</quote>. You have to ask, convince, or beg another developer to take a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6371 "change from you, because there are almost no trees to which more than one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6372 "person can push, and there's no way to push changes into a tree that someone "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6373 "else controls."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6374 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6375
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6376 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6377 #: ../en/ch05-collab.xml:350
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6378 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6379 "The second is that it's based on reputation and acclaim. If you're an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6380 "unknown, Linus will probably ignore changes from you without even "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6381 "responding. But a subsystem maintainer will probably review them, and will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6382 "likely take them if they pass their criteria for suitability. The more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6383 "<quote>good</quote> changes you contribute to a maintainer, the more likely "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6384 "they are to trust your judgment and accept your changes. If you're well-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6385 "known and maintain a long-lived branch for something Linus hasn't yet "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6386 "accepted, people with similar interests may pull your changes regularly to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6387 "keep up with your work."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6388 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6389
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6390 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6391 #: ../en/ch05-collab.xml:361
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6392 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6393 "Reputation and acclaim don't necessarily cross subsystem or <quote>people</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6394 "quote> boundaries. If you're a respected but specialised storage hacker, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6395 "you try to fix a networking bug, that change will receive a level of scrutiny "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6396 "from a network maintainer comparable to a change from a complete stranger."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6397 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6398
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6399 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6400 #: ../en/ch05-collab.xml:368
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6401 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6402 "To people who come from more orderly project backgrounds, the comparatively "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6403 "chaotic Linux kernel development process often seems completely insane. It's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6404 "subject to the whims of individuals; people make sweeping changes whenever "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6405 "they deem it appropriate; and the pace of development is astounding. And yet "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6406 "Linux is a highly successful, well-regarded piece of software."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6407 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6408
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6409 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6410 #: ../en/ch05-collab.xml:378
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6411 msgid "Pull-only versus shared-push collaboration"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6412 msgstr "只读与共享写协作"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6413
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6414 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6415 #: ../en/ch05-collab.xml:380
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6416 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6417 "A perpetual source of heat in the open source community is whether a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6418 "development model in which people only ever pull changes from others is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6419 "<quote>better than</quote> one in which multiple people can push changes to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6420 "shared repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6421 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6422
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6423 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6424 #: ../en/ch05-collab.xml:386
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6425 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6426 "Typically, the backers of the shared-push model use tools that actively "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6427 "enforce this approach. If you're using a centralised revision control tool "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6428 "such as Subversion, there's no way to make a choice over which model you'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6429 "use: the tool gives you shared-push, and if you want to do anything else, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6430 "you'll have to roll your own approach on top (such as applying a patch by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6431 "hand)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6432 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6433
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6434 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6435 #: ../en/ch05-collab.xml:394
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6436 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6437 "A good distributed revision control tool, such as Mercurial, will support "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6438 "both models. You and your collaborators can then structure how you work "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6439 "together based on your own needs and preferences, not on what contortions "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6440 "your tools force you into."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6441 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6442
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6443 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6444 #: ../en/ch05-collab.xml:402
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6445 msgid "Where collaboration meets branch management"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6446 msgstr "协作与分支管理"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6447
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6448 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6449 #: ../en/ch05-collab.xml:404
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6450 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6451 "Once you and your team set up some shared repositories and start propagating "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6452 "changes back and forth between local and shared repos, you begin to face a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6453 "related, but slightly different challenge: that of managing the multiple "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6454 "directions in which your team may be moving at once. Even though this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6455 "subject is intimately related to how your team collaborates, it's dense "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6456 "enough to merit treatment of its own, in <xref linkend=\"chap:branch\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6457 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6458
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6459 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6460 #: ../en/ch05-collab.xml:416
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6461 msgid "The technical side of sharing"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6462 msgstr "共享的技术因素"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6463
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6464 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6465 #: ../en/ch05-collab.xml:418
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6466 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6467 "The remainder of this chapter is devoted to the question of serving data to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6468 "your collaborators."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6469 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6470
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6471 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6472 #: ../en/ch05-collab.xml:423
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6473 msgid "Informal sharing with <command role=\"hg-cmd\">hg serve</command>"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6474 msgstr "使用 <command role=\"hg-cmd\">hg serve</command> 进行非正式共享"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6475
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6476 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6477 #: ../en/ch05-collab.xml:426
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6478 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6479 "Mercurial's <command role=\"hg-cmd\">hg serve</command> command is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6480 "wonderfully suited to small, tight-knit, and fast-paced group environments. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6481 "It also provides a great way to get a feel for using Mercurial commands over "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6482 "a network."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6483 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6484
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6485 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6486 #: ../en/ch05-collab.xml:431
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6487 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6488 "Run <command role=\"hg-cmd\">hg serve</command> inside a repository, and in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6489 "under a second it will bring up a specialised HTTP server; this will accept "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6490 "connections from any client, and serve up data for that repository until you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6491 "terminate it. Anyone who knows the URL of the server you just started, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6492 "can talk to your computer over the network, can then use a web browser or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6493 "Mercurial to read data from that repository. A URL for a <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6494 "cmd\">hg serve</command> instance running on a laptop is likely to look "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6495 "something like <literal>http://my-laptop.local:8000/</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6496 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6497
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6498 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6499 #: ../en/ch05-collab.xml:442
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6500 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6501 "The <command role=\"hg-cmd\">hg serve</command> command is <emphasis>not</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6502 "emphasis> a general-purpose web server. It can do only two things:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6503 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6504
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6505 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6506 #: ../en/ch05-collab.xml:446
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6507 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6508 "Allow people to browse the history of the repository it's serving, from their "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6509 "normal web browsers."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6510 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6511
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6512 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6513 #: ../en/ch05-collab.xml:450
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6514 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6515 "Speak Mercurial's wire protocol, so that people can <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6516 "\">hg clone</command> or <command role=\"hg-cmd\">hg pull</command> changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6517 "from that repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6518 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6519
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6520 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6521 #: ../en/ch05-collab.xml:455
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6522 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6523 "In particular, <command role=\"hg-cmd\">hg serve</command> won't allow remote "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6524 "users to <emphasis>modify</emphasis> your repository. It's intended for read-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6525 "only use."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6526 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6527
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6528 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6529 #: ../en/ch05-collab.xml:459
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6530 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6531 "If you're getting started with Mercurial, there's nothing to prevent you from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6532 "using <command role=\"hg-cmd\">hg serve</command> to serve up a repository on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6533 "your own computer, then use commands like <command role=\"hg-cmd\">hg clone</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6534 "command>, <command role=\"hg-cmd\">hg incoming</command>, and so on to talk "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6535 "to that server as if the repository was hosted remotely. This can help you to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6536 "quickly get acquainted with using commands on network-hosted repositories."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6537 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6538
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6539 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6540 #: ../en/ch05-collab.xml:469
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6541 msgid "A few things to keep in mind"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6542 msgstr "要牢记的几件事"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6543
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6544 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6545 #: ../en/ch05-collab.xml:471
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6546 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6547 "Because it provides unauthenticated read access to all clients, you should "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6548 "only use <command role=\"hg-cmd\">hg serve</command> in an environment where "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6549 "you either don't care, or have complete control over, who can access your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6550 "network and pull data from your repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6551 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6552
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6553 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6554 #: ../en/ch05-collab.xml:477
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6555 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6556 "The <command role=\"hg-cmd\">hg serve</command> command knows nothing about "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6557 "any firewall software you might have installed on your system or network. It "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6558 "cannot detect or control your firewall software. If other people are unable "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6559 "to talk to a running <command role=\"hg-cmd\">hg serve</command> instance, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6560 "the second thing you should do (<emphasis>after</emphasis> you make sure that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6561 "they're using the correct URL) is check your firewall configuration."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6562 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6563
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6564 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6565 #: ../en/ch05-collab.xml:486
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6566 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6567 "By default, <command role=\"hg-cmd\">hg serve</command> listens for incoming "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6568 "connections on port 8000. If another process is already listening on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6569 "port you want to use, you can specify a different port to listen on using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6570 "<option role=\"hg-opt-serve\">-p</option> option."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6571 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6572
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6573 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6574 #: ../en/ch05-collab.xml:492
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6575 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6576 "Normally, when <command role=\"hg-cmd\">hg serve</command> starts, it prints "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6577 "no output, which can be a bit unnerving. If you'd like to confirm that it is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6578 "indeed running correctly, and find out what URL you should send to your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6579 "collaborators, start it with the <option role=\"hg-opt-global\">-v</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6580 "option."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6581 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6582
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6583 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6584 #: ../en/ch05-collab.xml:502
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6585 msgid "Using the Secure Shell (ssh) protocol"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6586 msgstr "使用 ssh 协议"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6587
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6588 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6589 #: ../en/ch05-collab.xml:504
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6590 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6591 "You can pull and push changes securely over a network connection using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6592 "Secure Shell (<literal>ssh</literal>) protocol. To use this successfully, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6593 "you may have to do a little bit of configuration on the client or server "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6594 "sides."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6595 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6596
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6597 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6598 #: ../en/ch05-collab.xml:509
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6599 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6600 "If you're not familiar with ssh, it's a network protocol that lets you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6601 "securely communicate with another computer. To use it with Mercurial, you'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6602 "be setting up one or more user accounts on a server so that remote users can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6603 "log in and execute commands."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6604 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6605
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6606 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6607 #: ../en/ch05-collab.xml:515
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6608 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6609 "(If you <emphasis>are</emphasis> familiar with ssh, you'll probably find some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6610 "of the material that follows to be elementary in nature.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6611 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6612
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6613 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6614 #: ../en/ch05-collab.xml:520
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6615 msgid "How to read and write ssh URLs"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6616 msgstr "如何读写 ssh 路径"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6617
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6618 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6619 #: ../en/ch05-collab.xml:522
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6620 msgid "An ssh URL tends to look like this:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6621 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6622
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6623 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6624 #: ../en/ch05-collab.xml:525
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6625 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6626 "The <quote><literal>ssh://</literal></quote> part tells Mercurial to use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6627 "ssh protocol."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6628 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6629
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6630 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6631 #: ../en/ch05-collab.xml:528
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6632 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6633 "The <quote><literal>bos@</literal></quote> component indicates what username "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6634 "to log into the server as. You can leave this out if the remote username is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6635 "the same as your local username."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6636 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6637
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6638 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6639 #: ../en/ch05-collab.xml:533
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6640 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6641 "The <quote><literal>hg.serpentine.com</literal></quote> gives the hostname of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6642 "the server to log into."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6643 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6644
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6645 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6646 #: ../en/ch05-collab.xml:537
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6647 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6648 "The <quote>:22</quote> identifies the port number to connect to the server "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6649 "on. The default port is 22, so you only need to specify a colon and port "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6650 "number if you're <emphasis>not</emphasis> using port 22."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6651 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6652
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6653 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6654 #: ../en/ch05-collab.xml:542
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6655 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6656 "The remainder of the URL is the local path to the repository on the server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6657 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6658
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6659 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6660 #: ../en/ch05-collab.xml:546
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6661 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6662 "There's plenty of scope for confusion with the path component of ssh URLs, as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6663 "there is no standard way for tools to interpret it. Some programs behave "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6664 "differently than others when dealing with these paths. This isn't an ideal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6665 "situation, but it's unlikely to change. Please read the following paragraphs "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6666 "carefully."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6667 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6668
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6669 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6670 #: ../en/ch05-collab.xml:553
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6671 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6672 "Mercurial treats the path to a repository on the server as relative to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6673 "remote user's home directory. For example, if user <literal>foo</literal> on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6674 "the server has a home directory of <filename class=\"directory\">/home/foo</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6675 "filename>, then an ssh URL that contains a path component of <filename class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6676 "\"directory\">bar</filename> <emphasis>really</emphasis> refers to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6677 "directory <filename class=\"directory\">/home/foo/bar</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6678 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6679
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6680 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6681 #: ../en/ch05-collab.xml:562
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6682 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6683 "If you want to specify a path relative to another user's home directory, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6684 "can use a path that starts with a tilde character followed by the user's name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6685 "(let's call them <literal>otheruser</literal>), like this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6686 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6687
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6688 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6689 #: ../en/ch05-collab.xml:568
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6690 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6691 "And if you really want to specify an <emphasis>absolute</emphasis> path on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6692 "the server, begin the path component with two slashes, as in this example."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6693 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6694
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6695 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6696 #: ../en/ch05-collab.xml:575
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6697 msgid "Finding an ssh client for your system"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6698 msgstr "为你的系统寻找 ssh 客户端"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6699
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6700 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6701 #: ../en/ch05-collab.xml:577
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6702 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6703 "Almost every Unix-like system comes with OpenSSH preinstalled. If you're "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6704 "using such a system, run <literal>which ssh</literal> to find out if the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6705 "<command>ssh</command> command is installed (it's usually in <filename class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6706 "\"directory\">/usr/bin</filename>). In the unlikely event that it isn't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6707 "present, take a look at your system documentation to figure out how to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6708 "install it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6709 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6710
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6711 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6712 #: ../en/ch05-collab.xml:585
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6713 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6714 "On Windows, you'll first need to download a suitable ssh client. There are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6715 "two alternatives."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6716 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6717
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6718 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6719 #: ../en/ch05-collab.xml:588
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6720 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6721 "Simon Tatham's excellent PuTTY package <citation>web:putty</citation> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6722 "provides a complete suite of ssh client commands."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6723 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6724
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6725 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6726 #: ../en/ch05-collab.xml:592
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6727 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6728 "If you have a high tolerance for pain, you can use the Cygwin port of OpenSSH."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6729 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6730
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6731 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6732 #: ../en/ch05-collab.xml:595
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6733 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6734 "In either case, you'll need to edit your <filename role=\"special\">hg.ini</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6735 "filename> file to tell Mercurial where to find the actual client command. "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6736 "For example, if you're using PuTTY, you'll need to use the <command>plink</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6737 "command> command as a command-line ssh client."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6738 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6739
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6740 #. type: Content of: <book><chapter><sect1><sect2><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6741 #: ../en/ch05-collab.xml:605
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6742 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6743 "The path to <command>plink</command> shouldn't contain any whitespace "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6744 "characters, or Mercurial may not be able to run it correctly (so putting it "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6745 "in <filename class=\"directory\">C:\\Program Files</filename> is probably not "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6746 "a good idea)."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6747 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6748
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
6749 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6750 #: ../en/ch05-collab.xml:614
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6751 msgid "Generating a key pair"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6752 msgstr "产生密钥对"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6753
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6754 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6755 #: ../en/ch05-collab.xml:616
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6756 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6757 "To avoid the need to repetitively type a password every time you need to use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6758 "your ssh client, I recommend generating a key pair. On a Unix-like system, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6759 "the <command>ssh-keygen</command> command will do the trick. On Windows, if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6760 "you're using PuTTY, the <command>puttygen</command> command is what you'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6761 "need."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6762 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6763
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6764 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6765 #: ../en/ch05-collab.xml:624
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6766 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6767 "When you generate a key pair, it's usually <emphasis>highly</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6768 "advisable to protect it with a passphrase. (The only time that you might not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6769 "want to do this is when you're using the ssh protocol for automated tasks on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6770 "a secure network.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6771 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6772
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6773 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6774 #: ../en/ch05-collab.xml:630
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6775 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6776 "Simply generating a key pair isn't enough, however. You'll need to add the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6777 "public key to the set of authorised keys for whatever user you're logging in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6778 "remotely as. For servers using OpenSSH (the vast majority), this will mean "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6779 "adding the public key to a list in a file called <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6780 "\">authorized_keys</filename> in their <filename role=\"special\" class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6781 "\"directory\">.ssh</filename> directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6782 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6783
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6784 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6785 #: ../en/ch05-collab.xml:639
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6786 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6787 "On a Unix-like system, your public key will have a <filename>.pub</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6788 "extension. If you're using <command>puttygen</command> on Windows, you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6789 "save the public key to a file of your choosing, or paste it from the window "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6790 "it's displayed in straight into the <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6791 "\">authorized_keys</filename> file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6792 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6793
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6794 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6795 #: ../en/ch05-collab.xml:648
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6796 msgid "Using an authentication agent"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6797 msgstr "使用认证代理"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6798
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6799 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6800 #: ../en/ch05-collab.xml:650
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6801 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6802 "An authentication agent is a daemon that stores passphrases in memory (so it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6803 "will forget passphrases if you log out and log back in again). An ssh client "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6804 "will notice if it's running, and query it for a passphrase. If there's no "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6805 "authentication agent running, or the agent doesn't store the necessary "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6806 "passphrase, you'll have to type your passphrase every time Mercurial tries to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6807 "communicate with a server on your behalf (e.g. whenever you pull or push "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6808 "changes)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6809 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6810
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6811 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6812 #: ../en/ch05-collab.xml:659
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6813 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6814 "The downside of storing passphrases in an agent is that it's possible for a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6815 "well-prepared attacker to recover the plain text of your passphrases, in some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6816 "cases even if your system has been power-cycled. You should make your own "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6817 "judgment as to whether this is an acceptable risk. It certainly saves a lot "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6818 "of repeated typing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6819 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6820
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6821 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6822 #: ../en/ch05-collab.xml:666
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6823 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6824 "On Unix-like systems, the agent is called <command>ssh-agent</command>, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6825 "it's often run automatically for you when you log in. You'll need to use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6826 "<command>ssh-add</command> command to add passphrases to the agent's store. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6827 "On Windows, if you're using PuTTY, the <command>pageant</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6828 "acts as the agent. It adds an icon to your system tray that will let you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6829 "manage stored passphrases."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6830 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6831
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6832 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6833 #: ../en/ch05-collab.xml:677
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6834 msgid "Configuring the server side properly"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
6835 msgstr "正确配置服务器端"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6836
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6837 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6838 #: ../en/ch05-collab.xml:679
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6839 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6840 "Because ssh can be fiddly to set up if you're new to it, there's a variety of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6841 "things that can go wrong. Add Mercurial on top, and there's plenty more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6842 "scope for head-scratching. Most of these potential problems occur on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6843 "server side, not the client side. The good news is that once you've gotten a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6844 "configuration working, it will usually continue to work indefinitely."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6845 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6846
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6847 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6848 #: ../en/ch05-collab.xml:687
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6849 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6850 "Before you try using Mercurial to talk to an ssh server, it's best to make "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6851 "sure that you can use the normal <command>ssh</command> or <command>putty</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6852 "command> command to talk to the server first. If you run into problems with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6853 "using these commands directly, Mercurial surely won't work. Worse, it will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6854 "obscure the underlying problem. Any time you want to debug ssh-related "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6855 "Mercurial problems, you should drop back to making sure that plain ssh client "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6856 "commands work first, <emphasis>before</emphasis> you worry about whether "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6857 "there's a problem with Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6858 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6859
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6860 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6861 #: ../en/ch05-collab.xml:698
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6862 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6863 "The first thing to be sure of on the server side is that you can actually log "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6864 "in from another machine at all. If you can't use <command>ssh</command> or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6865 "<command>putty</command> to log in, the error message you get may give you a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6866 "few hints as to what's wrong. The most common problems are as follows."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6867 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6868
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6869 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6870 #: ../en/ch05-collab.xml:705
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6871 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6872 "If you get a <quote>connection refused</quote> error, either there isn't an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6873 "SSH daemon running on the server at all, or it's inaccessible due to firewall "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6874 "configuration."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6875 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6876
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6877 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6878 #: ../en/ch05-collab.xml:710
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6879 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6880 "If you get a <quote>no route to host</quote> error, you either have an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6881 "incorrect address for the server or a seriously locked down firewall that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6882 "won't admit its existence at all."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6883 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6884
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6885 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6886 #: ../en/ch05-collab.xml:715
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6887 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6888 "If you get a <quote>permission denied</quote> error, you may have mistyped "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6889 "the username on the server, or you could have mistyped your key's passphrase "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6890 "or the remote user's password."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6891 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6892
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6893 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6894 #: ../en/ch05-collab.xml:720
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6895 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6896 "In summary, if you're having trouble talking to the server's ssh daemon, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6897 "first make sure that one is running at all. On many systems it will be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6898 "installed, but disabled, by default. Once you're done with this step, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6899 "should then check that the server's firewall is configured to allow incoming "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6900 "connections on the port the ssh daemon is listening on (usually 22). Don't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6901 "worry about more exotic possibilities for misconfiguration until you've "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6902 "checked these two first."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6903 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6904
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6905 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6906 #: ../en/ch05-collab.xml:730
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6907 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6908 "If you're using an authentication agent on the client side to store "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6909 "passphrases for your keys, you ought to be able to log into the server "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6910 "without being prompted for a passphrase or a password. If you're prompted "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6911 "for a passphrase, there are a few possible culprits."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6912 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6913
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6914 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6915 #: ../en/ch05-collab.xml:736
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6916 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6917 "You might have forgotten to use <command>ssh-add</command> or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6918 "<command>pageant</command> to store the passphrase."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6919 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6920
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6921 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6922 #: ../en/ch05-collab.xml:740
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6923 msgid "You might have stored the passphrase for the wrong key."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6924 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6925
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6926 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6927 #: ../en/ch05-collab.xml:743
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6928 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6929 "If you're being prompted for the remote user's password, there are another "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6930 "few possible problems to check."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6931 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6932
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6933 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6934 #: ../en/ch05-collab.xml:746
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6935 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6936 "Either the user's home directory or their <filename role=\"special\" class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6937 "\"directory\">.ssh</filename> directory might have excessively liberal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6938 "permissions. As a result, the ssh daemon will not trust or read their "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6939 "<filename role=\"special\">authorized_keys</filename> file. For example, a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6940 "group-writable home or <filename role=\"special\" class=\"directory\">.ssh</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6941 "filename> directory will often cause this symptom."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6942 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6943
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6944 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6945 #: ../en/ch05-collab.xml:755
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6946 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6947 "The user's <filename role=\"special\">authorized_keys</filename> file may "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6948 "have a problem. If anyone other than the user owns or can write to that file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6949 "the ssh daemon will not trust or read it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6950 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6951
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6952 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6953 #: ../en/ch05-collab.xml:762
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6954 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6955 "In the ideal world, you should be able to run the following command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6956 "successfully, and it should print exactly one line of output, the current "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6957 "date and time."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6958 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6959
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6960 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6961 #: ../en/ch05-collab.xml:767
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6962 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6963 "If, on your server, you have login scripts that print banners or other junk "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6964 "even when running non-interactive commands like this, you should fix them "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6965 "before you continue, so that they only print output if they're run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6966 "interactively. Otherwise these banners will at least clutter up Mercurial's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6967 "output. Worse, they could potentially cause problems with running Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6968 "commands remotely. Mercurial makes tries to detect and ignore banners in non-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6969 "interactive <command>ssh</command> sessions, but it is not foolproof. (If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6970 "you're editing your login scripts on your server, the usual way to see if a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6971 "login script is running in an interactive shell is to check the return code "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6972 "from the command <literal>tty -s</literal>.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6973 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6974
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6975 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6976 #: ../en/ch05-collab.xml:781
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6977 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6978 "Once you've verified that plain old ssh is working with your server, the next "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6979 "step is to ensure that Mercurial runs on the server. The following command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6980 "should run successfully:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6981 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6982
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6983 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6984 #: ../en/ch05-collab.xml:788
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6985 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6986 "If you see an error message instead of normal <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6987 "version</command> output, this is usually because you haven't installed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6988 "Mercurial to <filename class=\"directory\">/usr/bin</filename>. Don't worry "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6989 "if this is the case; you don't need to do that. But you should check for a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6990 "few possible problems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6991 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6992
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6993 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
6994 #: ../en/ch05-collab.xml:795
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6995 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6996 "Is Mercurial really installed on the server at all? I know this sounds "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6997 "trivial, but it's worth checking!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6998 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
6999
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7000 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7001 #: ../en/ch05-collab.xml:799
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7002 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7003 "Maybe your shell's search path (usually set via the <envar>PATH</envar> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7004 "environment variable) is simply misconfigured."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7005 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7006
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7007 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7008 #: ../en/ch05-collab.xml:803
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7009 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7010 "Perhaps your <envar>PATH</envar> environment variable is only being set to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7011 "point to the location of the <command>hg</command> executable if the login "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7012 "session is interactive. This can happen if you're setting the path in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7013 "wrong shell login script. See your shell's documentation for details."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7014 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7015
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7016 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7017 #: ../en/ch05-collab.xml:810
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7018 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7019 "The <envar>PYTHONPATH</envar> environment variable may need to contain the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7020 "path to the Mercurial Python modules. It might not be set at all; it could "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7021 "be incorrect; or it may be set only if the login is interactive."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7022 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7023
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7024 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7025 #: ../en/ch05-collab.xml:817
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7026 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7027 "If you can run <command role=\"hg-cmd\">hg version</command> over an ssh "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7028 "connection, well done! You've got the server and client sorted out. You "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7029 "should now be able to use Mercurial to access repositories hosted by that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7030 "username on that server. If you run into problems with Mercurial and ssh at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7031 "this point, try using the <option role=\"hg-opt-global\">--debug</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7032 "option to get a clearer picture of what's going on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7033 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7034
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7035 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7036 #: ../en/ch05-collab.xml:827
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7037 msgid "Using compression with ssh"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7038 msgstr "通过 ssh 使用压缩"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7039
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7040 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7041 #: ../en/ch05-collab.xml:829
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7042 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7043 "Mercurial does not compress data when it uses the ssh protocol, because the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7044 "ssh protocol can transparently compress data. However, the default behaviour "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7045 "of ssh clients is <emphasis>not</emphasis> to request compression."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7046 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7047
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7048 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7049 #: ../en/ch05-collab.xml:834
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7050 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7051 "Over any network other than a fast LAN (even a wireless network), using "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7052 "compression is likely to significantly speed up Mercurial's network "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7053 "operations. For example, over a WAN, someone measured compression as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7054 "reducing the amount of time required to clone a particularly large repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7055 "from 51 minutes to 17 minutes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7056 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7057
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7058 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7059 #: ../en/ch05-collab.xml:841
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7060 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7061 "Both <command>ssh</command> and <command>plink</command> accept a <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7062 "role=\"cmd-opt-ssh\">-C</option> option which turns on compression. You can "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7063 "easily edit your <filename role=\"special\">~/.hgrc</filename> to enable "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7064 "compression for all of Mercurial's uses of the ssh protocol."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7065 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7066
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7067 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7068 #: ../en/ch05-collab.xml:849
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7069 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7070 "If you use <command>ssh</command>, you can configure it to always use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7071 "compression when talking to your server. To do this, edit your <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7072 "role=\"special\">.ssh/config</filename> file (which may not yet exist), as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7073 "follows."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7074 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7075
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7076 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7077 #: ../en/ch05-collab.xml:857
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7078 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7079 "This defines an alias, <literal>hg</literal>. When you use it on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7080 "<command>ssh</command> command line or in a Mercurial <literal>ssh</literal>-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7081 "protocol URL, it will cause <command>ssh</command> to connect to <literal>hg."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7082 "example.com</literal> and use compression. This gives you both a shorter "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7083 "name to type and compression, each of which is a good thing in its own right."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7084 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7085
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7086 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7087 #: ../en/ch05-collab.xml:868
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7088 msgid "Serving over HTTP using CGI"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7089 msgstr "使用 CGI 通过 HTTP 提供服务"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7090
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7091 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7092 #: ../en/ch05-collab.xml:870
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7093 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7094 "Depending on how ambitious you are, configuring Mercurial's CGI interface can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7095 "take anything from a few moments to several hours."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7096 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7097
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7098 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7099 #: ../en/ch05-collab.xml:874
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7100 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7101 "We'll begin with the simplest of examples, and work our way towards a more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7102 "complex configuration. Even for the most basic case, you're almost certainly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7103 "going to need to read and modify your web server's configuration."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7104 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7105
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7106 #. type: Content of: <book><chapter><sect1><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7107 #: ../en/ch05-collab.xml:880
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7108 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7109 "Configuring a web server is a complex, fiddly, and highly system-dependent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7110 "activity. I can't possibly give you instructions that will cover anything "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7111 "like all of the cases you will encounter. Please use your discretion and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7112 "judgment in following the sections below. Be prepared to make plenty of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7113 "mistakes, and to spend a lot of time reading your server's error logs."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7114 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7115
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7116 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7117 #: ../en/ch05-collab.xml:890
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7118 msgid "Web server configuration checklist"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7119 msgstr "Web 服务器配置检查表"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7120
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7121 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7122 #: ../en/ch05-collab.xml:892
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7123 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7124 "Before you continue, do take a few moments to check a few aspects of your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7125 "system's setup."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7126 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7127
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7128 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7129 #: ../en/ch05-collab.xml:896
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7130 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7131 "Do you have a web server installed at all? Mac OS X ships with Apache, but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7132 "many other systems may not have a web server installed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7133 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7134
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7135 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7136 #: ../en/ch05-collab.xml:900
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7137 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7138 "If you have a web server installed, is it actually running? On most systems, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7139 "even if one is present, it will be disabled by default."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7140 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7141
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7142 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7143 #: ../en/ch05-collab.xml:904
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7144 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7145 "Is your server configured to allow you to run CGI programs in the directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7146 "where you plan to do so? Most servers default to explicitly disabling the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7147 "ability to run CGI programs."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7148 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7149
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7150 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7151 #: ../en/ch05-collab.xml:910
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7152 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7153 "If you don't have a web server installed, and don't have substantial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7154 "experience configuring Apache, you should consider using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7155 "<literal>lighttpd</literal> web server instead of Apache. Apache has a well-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7156 "deserved reputation for baroque and confusing configuration. While "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7157 "<literal>lighttpd</literal> is less capable in some ways than Apache, most of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7158 "these capabilities are not relevant to serving Mercurial repositories. And "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7159 "<literal>lighttpd</literal> is undeniably <emphasis>much</emphasis> easier to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7160 "get started with than Apache."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7161 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7162
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7163 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7164 #: ../en/ch05-collab.xml:923
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7165 msgid "Basic CGI configuration"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7166 msgstr "基本 CGI 配置"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7167
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7168 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7169 #: ../en/ch05-collab.xml:925
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7170 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7171 "On Unix-like systems, it's common for users to have a subdirectory named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7172 "something like <filename class=\"directory\">public_html</filename> in their "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7173 "home directory, from which they can serve up web pages. A file named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7174 "<filename>foo</filename> in this directory will be accessible at a URL of the "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7175 "form <literal>http://www.example.com/username/foo</literal>."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7176 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7177
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7178 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7179 #: ../en/ch05-collab.xml:933
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7180 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7181 "To get started, find the <filename role=\"special\">hgweb.cgi</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7182 "script that should be present in your Mercurial installation. If you can't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7183 "quickly find a local copy on your system, simply download one from the master "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7184 "Mercurial repository at <ulink url=\"http://www.selenic.com/repo/hg/raw-file/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7185 "tip/hgweb.cgi\">http://www.selenic.com/repo/hg/raw-file/tip/hgweb.cgi</ulink>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7186 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7187
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7188 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7189 #: ../en/ch05-collab.xml:940 ../en/ch05-collab.xml:1109
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7190 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7191 "You'll need to copy this script into your <filename class=\"directory"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7192 "\">public_html</filename> directory, and ensure that it's executable."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7193 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7194
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7195 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7196 #: ../en/ch05-collab.xml:945
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7197 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7198 "The <literal>755</literal> argument to <command>chmod</command> is a little "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7199 "more general than just making the script executable: it ensures that the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7200 "script is executable by anyone, and that <quote>group</quote> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7201 "<quote>other</quote> write permissions are <emphasis>not</emphasis> set. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7202 "you were to leave those write permissions enabled, Apache's <literal>suexec</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7203 "literal> subsystem would likely refuse to execute the script. In fact, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7204 "<literal>suexec</literal> also insists that the <emphasis>directory</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7205 "emphasis> in which the script resides must not be writable by others."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7206 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7207
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7208 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7209 #: ../en/ch05-collab.xml:959
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7210 msgid "What could <emphasis>possibly</emphasis> go wrong?"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7211 msgstr "什么<emphasis>可能</emphasis>会出错?"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7212
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7213 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7214 #: ../en/ch05-collab.xml:962
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7215 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7216 "Once you've copied the CGI script into place, go into a web browser, and try "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7217 "to open the URL <ulink url=\"http://myhostname/ myuser/hgweb.cgi\">http://"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7218 "myhostname/ myuser/hgweb.cgi</ulink>, <emphasis>but</emphasis> brace yourself "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7219 "for instant failure. There's a high probability that trying to visit this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7220 "URL will fail, and there are many possible reasons for this. In fact, you're "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7221 "likely to stumble over almost every one of the possible errors below, so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7222 "please read carefully. The following are all of the problems I ran into on a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7223 "system running Fedora 7, with a fresh installation of Apache, and a user "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7224 "account that I created specially to perform this exercise."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7225 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7226
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7227 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7228 #: ../en/ch05-collab.xml:976
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7229 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7230 "Your web server may have per-user directories disabled. If you're using "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7231 "Apache, search your config file for a <literal>UserDir</literal> directive. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7232 "If there's none present, per-user directories will be disabled. If one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7233 "exists, but its value is <literal>disabled</literal>, then per-user "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7234 "directories will be disabled. Otherwise, the string after <literal>UserDir</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7235 "literal> gives the name of the subdirectory that Apache will look in under "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7236 "your home directory, for example <filename class=\"directory\">public_html</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7237 "filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7238 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7239
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7240 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7241 #: ../en/ch05-collab.xml:987
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7242 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7243 "Your file access permissions may be too restrictive. The web server must be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7244 "able to traverse your home directory and directories under your <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7245 "class=\"directory\">public_html</filename> directory, and read files under "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7246 "the latter too. Here's a quick recipe to help you to make your permissions "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7247 "more appropriate."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7248 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7249
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7250 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7251 #: ../en/ch05-collab.xml:997
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7252 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7253 "The other possibility with permissions is that you might get a completely "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7254 "empty window when you try to load the script. In this case, it's likely that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7255 "your access permissions are <emphasis>too permissive</emphasis>. Apache's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7256 "<literal>suexec</literal> subsystem won't execute a script that's group- or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7257 "world-writable, for example."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7258 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7259
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7260 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7261 #: ../en/ch05-collab.xml:1004
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7262 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7263 "Your web server may be configured to disallow execution of CGI programs in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7264 "your per-user web directory. Here's Apache's default per-user configuration "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7265 "from my Fedora system."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7266 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7267
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7268 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7269 #: ../en/ch05-collab.xml:1011
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7270 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7271 "If you find a similar-looking <literal>Directory</literal> group in your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7272 "Apache configuration, the directive to look at inside it is <literal>Options</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7273 "literal>. Add <literal>ExecCGI</literal> to the end of this list if it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7274 "missing, and restart the web server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7275 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7276
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7277 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7278 #: ../en/ch05-collab.xml:1018
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7279 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7280 "If you find that Apache serves you the text of the CGI script instead of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7281 "executing it, you may need to either uncomment (if already present) or add a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7282 "directive like this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7283 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7284
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7285 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7286 #: ../en/ch05-collab.xml:1024
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7287 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7288 "The next possibility is that you might be served with a colourful Python "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7289 "backtrace claiming that it can't import a <literal>mercurial</literal>-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7290 "related module. This is actually progress! The server is now capable of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7291 "executing your CGI script. This error is only likely to occur if you're "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7292 "running a private installation of Mercurial, instead of a system-wide "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7293 "version. Remember that the web server runs the CGI program without any of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7294 "the environment variables that you take for granted in an interactive "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7295 "session. If this error happens to you, edit your copy of <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7296 "\"special\">hgweb.cgi</filename> and follow the directions inside it to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7297 "correctly set your <envar>PYTHONPATH</envar> environment variable."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7298 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7299
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7300 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7301 #: ../en/ch05-collab.xml:1038
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7302 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7303 "Finally, you are <emphasis>certain</emphasis> to by served with another "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7304 "colourful Python backtrace: this one will complain that it can't find "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7305 "<filename class=\"directory\">/path/to/repository</filename>. Edit your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7306 "<filename role=\"special\">hgweb.cgi</filename> script and replace the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7307 "<filename class=\"directory\">/path/to/repository</filename> string with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7308 "complete path to the repository you want to serve up."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7309 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7310
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7311 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7312 #: ../en/ch05-collab.xml:1048
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7313 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7314 "At this point, when you try to reload the page, you should be presented with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7315 "a nice HTML view of your repository's history. Whew!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7316 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7317
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7318 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7319 #: ../en/ch05-collab.xml:1054
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7320 msgid "Configuring lighttpd"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7321 msgstr "配置 lighttpd"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7322
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7323 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7324 #: ../en/ch05-collab.xml:1056
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7325 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7326 "To be exhaustive in my experiments, I tried configuring the increasingly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7327 "popular <literal>lighttpd</literal> web server to serve the same repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7328 "as I described with Apache above. I had already overcome all of the problems "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7329 "I outlined with Apache, many of which are not server-specific. As a result, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7330 "I was fairly sure that my file and directory permissions were good, and that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7331 "my <filename role=\"special\">hgweb.cgi</filename> script was properly edited."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7332 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7333
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7334 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7335 #: ../en/ch05-collab.xml:1066
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7336 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7337 "Once I had Apache running, getting <literal>lighttpd</literal> to serve the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7338 "repository was a snap (in other words, even if you're trying to use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7339 "<literal>lighttpd</literal>, you should read the Apache section). I first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7340 "had to edit the <literal>mod_access</literal> section of its config file to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7341 "enable <literal>mod_cgi</literal> and <literal>mod_userdir</literal>, both of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7342 "which were disabled by default on my system. I then added a few lines to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7343 "end of the config file, to configure these modules."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7344 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7345
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7346 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7347 #: ../en/ch05-collab.xml:1078
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7348 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7349 "With this done, <literal>lighttpd</literal> ran immediately for me. If I had "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7350 "configured <literal>lighttpd</literal> before Apache, I'd almost certainly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7351 "have run into many of the same system-level configuration problems as I did "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7352 "with Apache. However, I found <literal>lighttpd</literal> to be noticeably "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7353 "easier to configure than Apache, even though I've used Apache for over a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7354 "decade, and this was my first exposure to <literal>lighttpd</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7355 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7356
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7357 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7358 #: ../en/ch05-collab.xml:1091
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7359 msgid "Sharing multiple repositories with one CGI script"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7360 msgstr "使用一个 CGI 脚本共享多个版本库"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7361
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7362 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7363 #: ../en/ch05-collab.xml:1093
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7364 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7365 "The <filename role=\"special\">hgweb.cgi</filename> script only lets you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7366 "publish a single repository, which is an annoying restriction. If you want "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7367 "to publish more than one without wracking yourself with multiple copies of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7368 "the same script, each with different names, a better choice is to use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7369 "<filename role=\"special\">hgwebdir.cgi</filename> script."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7370 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7371
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7372 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7373 #: ../en/ch05-collab.xml:1101
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7374 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7375 "The procedure to configure <filename role=\"special\">hgwebdir.cgi</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7376 "is only a little more involved than for <filename role=\"special\">hgweb.cgi</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7377 "filename>. First, you must obtain a copy of the script. If you don't have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7378 "one handy, you can download a copy from the master Mercurial repository at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7379 "<ulink url=\"http://www.selenic.com/repo/hg/raw-file/tip/hgwebdir.cgi"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7380 "\">http://www.selenic.com/repo/hg/raw-file/tip/hgwebdir.cgi</ulink>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7381 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7382
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7383 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7384 #: ../en/ch05-collab.xml:1116
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7385 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7386 "With basic configuration out of the way, try to visit <ulink url=\"http://"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7387 "myhostname/ myuser/hgwebdir.cgi\">http://myhostname/ myuser/hgwebdir.cgi</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7388 "ulink> in your browser. It should display an empty list of repositories. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7389 "you get a blank window or error message, try walking through the list of "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7390 "potential problems in <xref linkend=\"sec:collab:wtf\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7391 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7392
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7393 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7394 #: ../en/ch05-collab.xml:1125
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7395 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7396 "The <filename role=\"special\">hgwebdir.cgi</filename> script relies on an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7397 "external configuration file. By default, it searches for a file named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7398 "<filename role=\"special\">hgweb.config</filename> in the same directory as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7399 "itself. You'll need to create this file, and make it world-readable. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7400 "format of the file is similar to a Windows <quote>ini</quote> file, as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7401 "understood by Python's <literal>ConfigParser</literal> <citation>web:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7402 "configparser</citation> module."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7403 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7404
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7405 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7406 #: ../en/ch05-collab.xml:1135
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7407 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7408 "The easiest way to configure <filename role=\"special\">hgwebdir.cgi</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7409 "filename> is with a section named <literal>collections</literal>. This will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7410 "automatically publish <emphasis>every</emphasis> repository under the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7411 "directories you name. The section should look like this:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7412 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7413
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7414 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7415 #: ../en/ch05-collab.xml:1143
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7416 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7417 "Mercurial interprets this by looking at the directory name on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7418 "<emphasis>right</emphasis> hand side of the <quote><literal>=</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7419 "quote> sign; finding repositories in that directory hierarchy; and using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7420 "text on the <emphasis>left</emphasis> to strip off matching text from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7421 "names it will actually list in the web interface. The remaining component of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7422 "a path after this stripping has occurred is called a <quote>virtual path</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7423 "quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7424 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7425
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7426 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7427 #: ../en/ch05-collab.xml:1152
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7428 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7429 "Given the example above, if we have a repository whose local path is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7430 "<filename class=\"directory\">/my/root/this/repo</filename>, the CGI script "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7431 "will strip the leading <filename class=\"directory\">/my/root</filename> from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7432 "the name, and publish the repository with a virtual path of <filename class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7433 "\"directory\">this/repo</filename>. If the base URL for our CGI script is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7434 "<ulink url=\"http://myhostname/ myuser/hgwebdir.cgi\">http://myhostname/ "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7435 "myuser/hgwebdir.cgi</ulink>, the complete URL for that repository will be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7436 "<ulink url=\"http://myhostname/ myuser/hgwebdir.cgi/this/repo\">http://"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7437 "myhostname/ myuser/hgwebdir.cgi/this/repo</ulink>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7438 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7439
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7440 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7441 #: ../en/ch05-collab.xml:1166
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7442 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7443 "If we replace <filename class=\"directory\">/my/root</filename> on the left "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7444 "hand side of this example with <filename class=\"directory\">/my</filename>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7445 "then <filename role=\"special\">hgwebdir.cgi</filename> will only strip off "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7446 "<filename class=\"directory\">/my</filename> from the repository name, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7447 "will give us a virtual path of <filename class=\"directory\">root/this/repo</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7448 "filename> instead of <filename class=\"directory\">this/repo</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7449 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7450
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7451 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7452 #: ../en/ch05-collab.xml:1176
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7453 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7454 "The <filename role=\"special\">hgwebdir.cgi</filename> script will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7455 "recursively search each directory listed in the <literal>collections</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7456 "literal> section of its configuration file, but it will <literal>not</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7457 "literal> recurse into the repositories it finds."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7458 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7459
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7460 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7461 #: ../en/ch05-collab.xml:1182
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7462 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7463 "The <literal>collections</literal> mechanism makes it easy to publish many "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7464 "repositories in a <quote>fire and forget</quote> manner. You only need to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7465 "set up the CGI script and configuration file one time. Afterwards, you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7466 "publish or unpublish a repository at any time by simply moving it into, or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7467 "out of, the directory hierarchy in which you've configured <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7468 "\"special\">hgwebdir.cgi</filename> to look."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7469 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7470
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7471 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7472 #: ../en/ch05-collab.xml:1192
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7473 msgid "Explicitly specifying which repositories to publish"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7474 msgstr "明确指出要发布的版本库"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7475
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7476 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7477 #: ../en/ch05-collab.xml:1195
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7478 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7479 "In addition to the <literal>collections</literal> mechanism, the <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7480 "role=\"special\">hgwebdir.cgi</filename> script allows you to publish a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7481 "specific list of repositories. To do so, create a <literal>paths</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7482 "section, with contents of the following form."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7483 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7484
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7485 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7486 #: ../en/ch05-collab.xml:1204
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7487 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7488 "In this case, the virtual path (the component that will appear in a URL) is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7489 "on the left hand side of each definition, while the path to the repository is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7490 "on the right. Notice that there does not need to be any relationship between "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7491 "the virtual path you choose and the location of a repository in your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7492 "filesystem."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7493 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7494
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7495 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7496 #: ../en/ch05-collab.xml:1211
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7497 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7498 "If you wish, you can use both the <literal>collections</literal> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7499 "<literal>paths</literal> mechanisms simultaneously in a single configuration "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7500 "file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7501 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7502
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7503 #. type: Content of: <book><chapter><sect1><sect2><sect3><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7504 #: ../en/ch05-collab.xml:1217
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7505 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7506 "If multiple repositories have the same virtual path, <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7507 "\">hgwebdir.cgi</filename> will not report an error. Instead, it will behave "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7508 "unpredictably."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7509 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7510
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7511 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7512 #: ../en/ch05-collab.xml:1226
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7513 msgid "Downloading source archives"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7514 msgstr "下载源代码档案包"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7515
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7516 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7517 #: ../en/ch05-collab.xml:1228
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7518 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7519 "Mercurial's web interface lets users download an archive of any revision. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7520 "This archive will contain a snapshot of the working directory as of that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7521 "revision, but it will not contain a copy of the repository data."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7522 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7523
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7524 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7525 #: ../en/ch05-collab.xml:1233
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7526 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7527 "By default, this feature is not enabled. To enable it, you'll need to add an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7528 "<envar role=\"rc-item-web\">allow_archive</envar> item to the <literal role="
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7529 "\"rc-web\">web</literal> section of your <filename role=\"special\">~/.hgrc</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7530 "filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7531 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7532
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7533 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7534 #: ../en/ch05-collab.xml:1241
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7535 msgid "Web configuration options"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7536 msgstr "Web 配置选项"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7537
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7538 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7539 #: ../en/ch05-collab.xml:1243
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7540 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7541 "Mercurial's web interfaces (the <command role=\"hg-cmd\">hg serve</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7542 "command, and the <filename role=\"special\">hgweb.cgi</filename> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7543 "<filename role=\"special\">hgwebdir.cgi</filename> scripts) have a number of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7544 "configuration options that you can set. These belong in a section named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7545 "<literal role=\"rc-web\">web</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7546 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7547
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7548 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7549 #: ../en/ch05-collab.xml:1251
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7550 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7551 "<envar role=\"rc-item-web\">allow_archive</envar>: Determines which (if any) "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7552 "archive download mechanisms Mercurial supports. If you enable this feature, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7553 "users of the web interface will be able to download an archive of whatever "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7554 "revision of a repository they are viewing. To enable the archive feature, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7555 "this item must take the form of a sequence of words drawn from the list below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7556 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7557
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7558 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7559 #: ../en/ch05-collab.xml:1260
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7560 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7561 "<literal>bz2</literal>: A <command>tar</command> archive, compressed using "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7562 "<literal>bzip2</literal> compression. This has the best compression ratio, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7563 "but uses the most CPU time on the server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7564 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7565
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7566 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7567 #: ../en/ch05-collab.xml:1266
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7568 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7569 "<literal>gz</literal>: A <command>tar</command> archive, compressed using "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7570 "<literal>gzip</literal> compression."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7571 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7572
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7573 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7574 #: ../en/ch05-collab.xml:1270
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7575 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7576 "<literal>zip</literal>: A <command>zip</command> archive, compressed using "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7577 "LZW compression. This format has the worst compression ratio, but is widely "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7578 "used in the Windows world."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7579 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7580
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7581 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7582 #: ../en/ch05-collab.xml:1276
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7583 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7584 "If you provide an empty list, or don't have an <envar role=\"rc-item-web"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7585 "\">allow_archive</envar> entry at all, this feature will be disabled. Here "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7586 "is an example of how to enable all three supported formats."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7587 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7588
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7589 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7590 #: ../en/ch05-collab.xml:1283
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7591 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7592 "<envar role=\"rc-item-web\">allowpull</envar>: Boolean. Determines whether "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7593 "the web interface allows remote users to <command role=\"hg-cmd\">hg pull</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7594 "command> and <command role=\"hg-cmd\">hg clone</command> this repository over "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7595 "HTTP. If set to <literal>no</literal> or <literal>false</literal>, only the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7596 "<quote>human-oriented</quote> portion of the web interface is available."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7597 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7598
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7599 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7600 #: ../en/ch05-collab.xml:1292
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7601 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7602 "<envar role=\"rc-item-web\">contact</envar>: String. A free-form (but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7603 "preferably brief) string identifying the person or group in charge of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7604 "repository. This often contains the name and email address of a person or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7605 "mailing list. It often makes sense to place this entry in a repository's own "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7606 "<filename role=\"special\">.hg/hgrc</filename> file, but it can make sense to "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7607 "use in a global <filename role=\"special\">~/.hgrc</filename> if every "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7608 "repository has a single maintainer."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7609 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7610
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7611 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7612 #: ../en/ch05-collab.xml:1303
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7613 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7614 "<envar role=\"rc-item-web\">maxchanges</envar>: Integer. The default maximum "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7615 "number of changesets to display in a single page of output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7616 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7617
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7618 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7619 #: ../en/ch05-collab.xml:1307
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7620 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7621 "<envar role=\"rc-item-web\">maxfiles</envar>: Integer. The default maximum "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7622 "number of modified files to display in a single page of output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7623 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7624
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7625 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7626 #: ../en/ch05-collab.xml:1311
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7627 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7628 "<envar role=\"rc-item-web\">stripes</envar>: Integer. If the web interface "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7629 "displays alternating <quote>stripes</quote> to make it easier to visually "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7630 "align rows when you are looking at a table, this number controls the number "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7631 "of rows in each stripe."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7632 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7633
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7634 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7635 #: ../en/ch05-collab.xml:1317
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7636 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7637 "<envar role=\"rc-item-web\">style</envar>: Controls the template Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7638 "uses to display the web interface. Mercurial ships with two web templates, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7639 "named <literal>default</literal> and <literal>gitweb</literal> (the latter is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7640 "much more visually attractive). You can also specify a custom template of "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7641 "your own; see <xref linkend=\"chap:template\"/> for details. Here, you can "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
7642 "see how to enable the <literal>gitweb</literal> style."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7643 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7644
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7645 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7646 #: ../en/ch05-collab.xml:1330
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7647 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7648 "<envar role=\"rc-item-web\">templates</envar>: Path. The directory in which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7649 "to search for template files. By default, Mercurial searches in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7650 "directory in which it was installed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7651 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7652
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7653 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7654 #: ../en/ch05-collab.xml:1335
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7655 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7656 "If you are using <filename role=\"special\">hgwebdir.cgi</filename>, you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7657 "place a few configuration items in a <literal role=\"rc-web\">web</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7658 "section of the <filename role=\"special\">hgweb.config</filename> file "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7659 "instead of a <filename role=\"special\">~/.hgrc</filename> file, for "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7660 "convenience. These items are <envar role=\"rc-item-web\">motd</envar> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7661 "<envar role=\"rc-item-web\">style</envar>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7662 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7663
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7664 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7665 #: ../en/ch05-collab.xml:1346
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7666 msgid "Options specific to an individual repository"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7667 msgstr "针对单个版本库的选项"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7668
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7669 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7670 #: ../en/ch05-collab.xml:1348
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7671 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7672 "A few <literal role=\"rc-web\">web</literal> configuration items ought to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7673 "placed in a repository's local <filename role=\"special\">.hg/hgrc</"
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7674 "filename>, rather than a user's or global <filename role=\"special\">~/.hgrc</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7675 "filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7676 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7677
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7678 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7679 #: ../en/ch05-collab.xml:1353
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7680 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7681 "<envar role=\"rc-item-web\">description</envar>: String. A free-form (but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7682 "preferably brief) string that describes the contents or purpose of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7683 "repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7684 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7685
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7686 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7687 #: ../en/ch05-collab.xml:1358
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7688 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7689 "<envar role=\"rc-item-web\">name</envar>: String. The name to use for the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7690 "repository in the web interface. This overrides the default name, which is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7691 "the last component of the repository's path."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7692 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7693
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7694 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7695 #: ../en/ch05-collab.xml:1366
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7696 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7697 "Options specific to the <command role=\"hg-cmd\">hg serve</command> command"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7698 msgstr "命令 <command role=\"hg-cmd\">hg serve</command> 的选项"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7699
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7700 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7701 #: ../en/ch05-collab.xml:1369
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7702 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7703 "Some of the items in the <literal role=\"rc-web\">web</literal> section of a "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7704 "<filename role=\"special\">~/.hgrc</filename> file are only for use with the "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7705 "<command role=\"hg-cmd\">hg serve</command> command."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7706 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7707
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7708 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7709 #: ../en/ch05-collab.xml:1375
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7710 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7711 "<envar role=\"rc-item-web\">accesslog</envar>: Path. The name of a file into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7712 "which to write an access log. By default, the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7713 "serve</command> command writes this information to standard output, not to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7714 "file. Log entries are written in the standard <quote>combined</quote> file "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7715 "format used by almost all web servers."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7716 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7717
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7718 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7719 #: ../en/ch05-collab.xml:1383
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7720 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7721 "<envar role=\"rc-item-web\">address</envar>: String. The local address on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7722 "which the server should listen for incoming connections. By default, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7723 "server listens on all addresses."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7724 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7725
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7726 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7727 #: ../en/ch05-collab.xml:1388
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7728 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7729 "<envar role=\"rc-item-web\">errorlog</envar>: Path. The name of a file into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7730 "which to write an error log. By default, the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7731 "serve</command> command writes this information to standard error, not to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7732 "file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7733 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7734
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7735 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7736 #: ../en/ch05-collab.xml:1394
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7737 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7738 "<envar role=\"rc-item-web\">ipv6</envar>: Boolean. Whether to use the IPv6 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7739 "protocol. By default, IPv6 is not used."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7740 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7741
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7742 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7743 #: ../en/ch05-collab.xml:1398
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7744 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7745 "<envar role=\"rc-item-web\">port</envar>: Integer. The TCP port number on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7746 "which the server should listen. The default port number used is 8000."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7747 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7748
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7749 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7750 #: ../en/ch05-collab.xml:1405
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7751 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7752 "Choosing the right <filename role=\"special\">~/.hgrc</filename> file to add "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7753 "<literal role=\"rc-web\">web</literal> items to"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7754 msgstr ""
752
6b1577ef5135 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 749
diff changeset
7755 "选择正确的 <filename role=\"special\"> ~/.hgrc</filename> 文件增加到 <literal "
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7756 "role=\"rc-web\">web</literal> 条目"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7757
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7758 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7759 #: ../en/ch05-collab.xml:1409
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7760 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7761 "It is important to remember that a web server like Apache or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7762 "<literal>lighttpd</literal> will run under a user ID that is different to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7763 "yours. CGI scripts run by your server, such as <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7764 "\">hgweb.cgi</filename>, will usually also run under that user ID."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7765 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7766
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7767 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7768 #: ../en/ch05-collab.xml:1416
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7769 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7770 "If you add <literal role=\"rc-web\">web</literal> items to your own personal "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7771 "<filename role=\"special\">~/.hgrc</filename> file, CGI scripts won't read "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7772 "that <filename role=\"special\">~/.hgrc</filename> file. Those settings will "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7773 "thus only affect the behaviour of the <command role=\"hg-cmd\">hg serve</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7774 "command> command when you run it. To cause CGI scripts to see your settings, "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7775 "either create a <filename role=\"special\">~/.hgrc</filename> file in the "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7776 "home directory of the user ID that runs your web server, or add those "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7777 "settings to a system-wide <filename role=\"special\">~/.hgrc</filename> file."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7778 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7779
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7780 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7781 #: ../en/ch06-filenames.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7782 msgid "File names and pattern matching"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7783 msgstr "文件名称与模式匹配"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7784
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7785 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7786 #: ../en/ch06-filenames.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7787 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7788 "Mercurial provides mechanisms that let you work with file names in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7789 "consistent and expressive way."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7790 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7791
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7792 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7793 #: ../en/ch06-filenames.xml:11
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7794 msgid "Simple file naming"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7795 msgstr "简单文件名称"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7796
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7797 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7798 #: ../en/ch06-filenames.xml:13
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7799 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7800 "Mercurial uses a unified piece of machinery <quote>under the hood</quote> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7801 "handle file names. Every command behaves uniformly with respect to file "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7802 "names. The way in which commands work with file names is as follows."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7803 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7804
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7805 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7806 #: ../en/ch06-filenames.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7807 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7808 "If you explicitly name real files on the command line, Mercurial works with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7809 "exactly those files, as you would expect. &interaction.filenames.files;"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7810 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7811
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7812 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7813 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7814 #: ../en/ch06-filenames.xml:22
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7815 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7816 "When you provide a directory name, Mercurial will interpret this as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7817 "<quote>operate on every file in this directory and its subdirectories</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7818 "quote>. Mercurial traverses the files and subdirectories in a directory in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7819 "alphabetical order. When it encounters a subdirectory, it will traverse that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7820 "subdirectory before continuing with the current directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7821 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7822
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7823 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7824 #: ../en/ch06-filenames.xml:33
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7825 msgid "Running commands without any file names"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7826 msgstr "不提供文件名称的执行命令"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7827
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7828 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7829 #: ../en/ch06-filenames.xml:35
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7830 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7831 "Mercurial's commands that work with file names have useful default behaviours "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7832 "when you invoke them without providing any file names or patterns. What kind "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7833 "of behaviour you should expect depends on what the command does. Here are a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7834 "few rules of thumb you can use to predict what a command is likely to do if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7835 "you don't give it any names to work with."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7836 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7837
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7838 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7839 #: ../en/ch06-filenames.xml:42
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7840 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7841 "Most commands will operate on the entire working directory. This is what the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7842 "<command role=\"hg-cmd\">hg add</command> command does, for example."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7843 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7844
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7845 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7846 #: ../en/ch06-filenames.xml:46
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7847 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7848 "If the command has effects that are difficult or impossible to reverse, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7849 "will force you to explicitly provide at least one name or pattern (see "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7850 "below). This protects you from accidentally deleting files by running "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7851 "<command role=\"hg-cmd\">hg remove</command> with no arguments, for example."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7852 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7853
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7854 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7855 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7856 #: ../en/ch06-filenames.xml:54
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7857 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7858 "It's easy to work around these default behaviours if they don't suit you. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7859 "a command normally operates on the whole working directory, you can invoke it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7860 "on just the current directory and its subdirectories by giving it the name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7861 "<quote><filename class=\"directory\">.</filename></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7862 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7863
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7864 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7865 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7866 #: ../en/ch06-filenames.xml:62
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7867 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7868 "Along the same lines, some commands normally print file names relative to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7869 "root of the repository, even if you're invoking them from a subdirectory. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7870 "Such a command will print file names relative to your subdirectory if you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7871 "give it explicit names. Here, we're going to run <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7872 "status</command> from a subdirectory, and get it to operate on the entire "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7873 "working directory while printing file names relative to our subdirectory, by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7874 "passing it the output of the <command role=\"hg-cmd\">hg root</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7875 "command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7876 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7877
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7878 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7879 #: ../en/ch06-filenames.xml:76
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7880 msgid "Telling you what's going on"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7881 msgstr "告诉你正在做什么"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7882
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7883 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7884 #: ../en/ch06-filenames.xml:78
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7885 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7886 "The <command role=\"hg-cmd\">hg add</command> example in the preceding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7887 "section illustrates something else that's helpful about Mercurial commands. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7888 "If a command operates on a file that you didn't name explicitly on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7889 "command line, it will usually print the name of the file, so that you will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7890 "not be surprised what's going on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7891 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7892
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7893 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7894 #: ../en/ch06-filenames.xml:85
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7895 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7896 "The principle here is of <emphasis>least surprise</emphasis>. If you've "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7897 "exactly named a file on the command line, there's no point in repeating it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7898 "back at you. If Mercurial is acting on a file <emphasis>implicitly</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7899 "emphasis>, because you provided no names, or a directory, or a pattern (see "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7900 "below), it's safest to tell you what it's doing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7901 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7902
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7903 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7904 #: ../en/ch06-filenames.xml:92
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7905 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7906 "For commands that behave this way, you can silence them using the <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7907 "role=\"hg-opt-global\">-q</option> option. You can also get them to print "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7908 "the name of every file, even those you've named explicitly, using the <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7909 "role=\"hg-opt-global\">-v</option> option."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7910 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7911
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7912 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7913 #: ../en/ch06-filenames.xml:100
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7914 msgid "Using patterns to identify files"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7915 msgstr "使用模式标识文件"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7916
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7917 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7918 #: ../en/ch06-filenames.xml:102
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7919 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7920 "In addition to working with file and directory names, Mercurial lets you use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7921 "<emphasis>patterns</emphasis> to identify files. Mercurial's pattern "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7922 "handling is expressive."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7923 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7924
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7925 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7926 #: ../en/ch06-filenames.xml:106
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7927 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7928 "On Unix-like systems (Linux, MacOS, etc.), the job of matching file names to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7929 "patterns normally falls to the shell. On these systems, you must explicitly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7930 "tell Mercurial that a name is a pattern. On Windows, the shell does not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7931 "expand patterns, so Mercurial will automatically identify names that are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7932 "patterns, and expand them for you."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7933 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7934
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7935 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7936 #: ../en/ch06-filenames.xml:113
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7937 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7938 "To provide a pattern in place of a regular name on the command line, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7939 "mechanism is simple:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7940 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7941
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7942 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7943 #: ../en/ch06-filenames.xml:116
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7944 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7945 "That is, a pattern is identified by a short text string that says what kind "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7946 "of pattern this is, followed by a colon, followed by the actual pattern."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7947 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7948
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7949 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7950 #: ../en/ch06-filenames.xml:120
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7951 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7952 "Mercurial supports two kinds of pattern syntax. The most frequently used is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7953 "called <literal>glob</literal>; this is the same kind of pattern matching "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7954 "used by the Unix shell, and should be familiar to Windows command prompt "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7955 "users, too."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7956 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7957
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7958 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7959 #: ../en/ch06-filenames.xml:125
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7960 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7961 "When Mercurial does automatic pattern matching on Windows, it uses "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7962 "<literal>glob</literal> syntax. You can thus omit the <quote><literal>glob:</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7963 "literal></quote> prefix on Windows, but it's safe to use it, too."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7964 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7965
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7966 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7967 #: ../en/ch06-filenames.xml:130
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7968 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7969 "The <literal>re</literal> syntax is more powerful; it lets you specify "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7970 "patterns using regular expressions, also known as regexps."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7971 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7972
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7973 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7974 #: ../en/ch06-filenames.xml:134
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7975 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7976 "By the way, in the examples that follow, notice that I'm careful to wrap all "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7977 "of my patterns in quote characters, so that they won't get expanded by the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7978 "shell before Mercurial sees them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7979 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7980
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7981 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7982 #: ../en/ch06-filenames.xml:140
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7983 msgid "Shell-style <literal>glob</literal> patterns"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
7984 msgstr "外壳风格的 <literal>glob</literal> 模式"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7985
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7986 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7987 #: ../en/ch06-filenames.xml:142
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7988 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7989 "This is an overview of the kinds of patterns you can use when you're matching "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7990 "on glob patterns."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7991 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7992
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7993 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7994 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
7995 #: ../en/ch06-filenames.xml:145
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7996 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7997 "The <quote><literal>*</literal></quote> character matches any string, within "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7998 "a single directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
7999 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8000
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8001 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8002 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8003 #: ../en/ch06-filenames.xml:150
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8004 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8005 "The <quote><literal>**</literal></quote> pattern matches any string, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8006 "crosses directory boundaries. It's not a standard Unix glob token, but it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8007 "accepted by several popular Unix shells, and is very useful."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8008 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8009
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8010 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8011 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8012 #: ../en/ch06-filenames.xml:157
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8013 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8014 "The <quote><literal>?</literal></quote> pattern matches any single character."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8015 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8016
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8017 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8018 #: ../en/ch06-filenames.xml:162
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8019 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8020 "The <quote><literal>[</literal></quote> character begins a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8021 "<emphasis>character class</emphasis>. This matches any single character "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8022 "within the class. The class ends with a <quote><literal>]</literal></quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8023 "character. A class may contain multiple <emphasis>range</emphasis>s of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8024 "form <quote><literal>a-f</literal></quote>, which is shorthand for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8025 "<quote><literal>abcdef</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8026 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8027
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8028 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8029 #: ../en/ch06-filenames.xml:172
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8030 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8031 "If the first character after the <quote><literal>[</literal></quote> in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8032 "character class is a <quote><literal>!</literal></quote>, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8033 "<emphasis>negates</emphasis> the class, making it match any single character "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8034 "not in the class."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8035 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8036
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8037 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8038 #: ../en/ch06-filenames.xml:178
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8039 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8040 "A <quote><literal>{</literal></quote> begins a group of subpatterns, where "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8041 "the whole group matches if any subpattern in the group matches. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8042 "<quote><literal>,</literal></quote> character separates subpatterns, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8043 "<quote><literal>}</literal></quote> ends the group."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8044 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8045
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8046 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8047 #: ../en/ch06-filenames.xml:187
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8048 msgid "Watch out!"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8049 msgstr "千万小心!"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8050
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8051 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8052 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8053 #: ../en/ch06-filenames.xml:189
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8054 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8055 "Don't forget that if you want to match a pattern in any directory, you should "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8056 "not be using the <quote><literal>*</literal></quote> match-any token, as this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8057 "will only match within one directory. Instead, use the <quote><literal>**</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8058 "literal></quote> token. This small example illustrates the difference "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8059 "between the two."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8060 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8061
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8062 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8063 #: ../en/ch06-filenames.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8064 msgid "Regular expression matching with <literal>re</literal> patterns"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8065 msgstr "使用 <literal>re</literal> 模式的正则表达式匹配"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8066
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8067 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8068 #: ../en/ch06-filenames.xml:204
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8069 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8070 "Mercurial accepts the same regular expression syntax as the Python "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8071 "programming language (it uses Python's regexp engine internally). This is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8072 "based on the Perl language's regexp syntax, which is the most popular dialect "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8073 "in use (it's also used in Java, for example)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8074 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8075
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8076 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8077 #: ../en/ch06-filenames.xml:210
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8078 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8079 "I won't discuss Mercurial's regexp dialect in any detail here, as regexps are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8080 "not often used. Perl-style regexps are in any case already exhaustively "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8081 "documented on a multitude of web sites, and in many books. Instead, I will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8082 "focus here on a few things you should know if you find yourself needing to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8083 "use regexps with Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8084 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8085
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8086 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8087 #: ../en/ch06-filenames.xml:217
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8088 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8089 "A regexp is matched against an entire file name, relative to the root of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8090 "repository. In other words, even if you're already in subbdirectory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8091 "<filename class=\"directory\">foo</filename>, if you want to match files "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8092 "under this directory, your pattern must start with <quote><literal>foo/</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8093 "literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8094 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8095
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8096 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8097 #: ../en/ch06-filenames.xml:224
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8098 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8099 "One thing to note, if you're familiar with Perl-style regexps, is that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8100 "Mercurial's are <emphasis>rooted</emphasis>. That is, a regexp starts "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8101 "matching against the beginning of a string; it doesn't look for a match "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8102 "anywhere within the string. To match anywhere in a string, start your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8103 "pattern with <quote><literal>.*</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8104 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8105
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8106 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8107 #: ../en/ch06-filenames.xml:234
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8108 msgid "Filtering files"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8109 msgstr "过滤文件"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8110
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8111 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8112 #: ../en/ch06-filenames.xml:236
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8113 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8114 "Not only does Mercurial give you a variety of ways to specify files; it lets "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8115 "you further winnow those files using <emphasis>filters</emphasis>. Commands "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8116 "that work with file names accept two filtering options."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8117 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8118
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8119 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8120 #: ../en/ch06-filenames.xml:241
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8121 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8122 "<option role=\"hg-opt-global\">-I</option>, or <option role=\"hg-opt-global"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8123 "\">--include</option>, lets you specify a pattern that file names must match "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8124 "in order to be processed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8125 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8126
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8127 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8128 #: ../en/ch06-filenames.xml:246
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8129 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8130 "<option role=\"hg-opt-global\">-X</option>, or <option role=\"hg-opt-global"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8131 "\">--exclude</option>, gives you a way to <emphasis>avoid</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8132 "processing files, if they match this pattern."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8133 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8134
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8135 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8136 #: ../en/ch06-filenames.xml:251
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8137 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8138 "You can provide multiple <option role=\"hg-opt-global\">-I</option> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8139 "<option role=\"hg-opt-global\">-X</option> options on the command line, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8140 "intermix them as you please. Mercurial interprets the patterns you provide "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8141 "using glob syntax by default (but you can use regexps if you need to)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8142 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8143
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8144 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8145 #: ../en/ch06-filenames.xml:258
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8146 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8147 "You can read a <option role=\"hg-opt-global\">-I</option> filter as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8148 "<quote>process only the files that match this filter</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8149 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8150
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8151 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8152 #: ../en/ch06-filenames.xml:264
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8153 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8154 "The <option role=\"hg-opt-global\">-X</option> filter is best read as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8155 "<quote>process only the files that don't match this pattern</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8156 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8157
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8158 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8159 #: ../en/ch06-filenames.xml:272
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8160 msgid "Ignoring unwanted files and directories"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8161 msgstr "忽略不需要的文件和目录"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8162
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8163 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8164 #: ../en/ch06-filenames.xml:274
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8165 msgid "XXX."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8166 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8167
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8168 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8169 #: ../en/ch06-filenames.xml:278
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8170 msgid "Case sensitivity"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8171 msgstr "大小写敏感性"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8172
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8173 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8174 #: ../en/ch06-filenames.xml:280
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8175 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8176 "If you're working in a mixed development environment that contains both Linux "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8177 "(or other Unix) systems and Macs or Windows systems, you should keep in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8178 "back of your mind the knowledge that they treat the case (<quote>N</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8179 "versus <quote>n</quote>) of file names in incompatible ways. This is not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8180 "very likely to affect you, and it's easy to deal with if it does, but it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8181 "could surprise you if you don't know about it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8182 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8183
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8184 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8185 #: ../en/ch06-filenames.xml:289
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8186 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8187 "Operating systems and filesystems differ in the way they handle the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8188 "<emphasis>case</emphasis> of characters in file and directory names. There "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8189 "are three common ways to handle case in names."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8190 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8191
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8192 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8193 #: ../en/ch06-filenames.xml:294
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8194 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8195 "Completely case insensitive. Uppercase and lowercase versions of a letter "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8196 "are treated as identical, both when creating a file and during subsequent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8197 "accesses. This is common on older DOS-based systems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8198 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8199
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8200 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8201 #: ../en/ch06-filenames.xml:299
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8202 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8203 "Case preserving, but insensitive. When a file or directory is created, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8204 "case of its name is stored, and can be retrieved and displayed by the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8205 "operating system. When an existing file is being looked up, its case is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8206 "ignored. This is the standard arrangement on Windows and MacOS. The names "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8207 "<filename>foo</filename> and <filename>FoO</filename> identify the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8208 "file. This treatment of uppercase and lowercase letters as interchangeable "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8209 "is also referred to as <emphasis>case folding</emphasis>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8210 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8211
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8212 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8213 #: ../en/ch06-filenames.xml:310
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8214 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8215 "Case sensitive. The case of a name is significant at all times. The names "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8216 "<filename>foo</filename> and {FoO} identify different files. This is the way "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8217 "Linux and Unix systems normally work."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8218 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8219
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8220 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8221 #: ../en/ch06-filenames.xml:316
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8222 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8223 "On Unix-like systems, it is possible to have any or all of the above ways of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8224 "handling case in action at once. For example, if you use a USB thumb drive "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8225 "formatted with a FAT32 filesystem on a Linux system, Linux will handle names "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8226 "on that filesystem in a case preserving, but insensitive, way."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8227 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8228
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8229 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8230 #: ../en/ch06-filenames.xml:323
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8231 msgid "Safe, portable repository storage"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8232 msgstr "安全,可移植的版本库存储"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8233
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8234 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8235 #: ../en/ch06-filenames.xml:325
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8236 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8237 "Mercurial's repository storage mechanism is <emphasis>case safe</emphasis>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8238 "It translates file names so that they can be safely stored on both case "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8239 "sensitive and case insensitive filesystems. This means that you can use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8240 "normal file copying tools to transfer a Mercurial repository onto, for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8241 "example, a USB thumb drive, and safely move that drive and repository back "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8242 "and forth between a Mac, a PC running Windows, and a Linux box."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8243 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8244
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8245 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8246 #: ../en/ch06-filenames.xml:336
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8247 msgid "Detecting case conflicts"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8248 msgstr "检测大小写冲突"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8249
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8250 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8251 #: ../en/ch06-filenames.xml:338
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8252 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8253 "When operating in the working directory, Mercurial honours the naming policy "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8254 "of the filesystem where the working directory is located. If the filesystem "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8255 "is case preserving, but insensitive, Mercurial will treat names that differ "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8256 "only in case as the same."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8257 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8258
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8259 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8260 #: ../en/ch06-filenames.xml:344
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8261 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8262 "An important aspect of this approach is that it is possible to commit a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8263 "changeset on a case sensitive (typically Linux or Unix) filesystem that will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8264 "cause trouble for users on case insensitive (usually Windows and MacOS) "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8265 "users. If a Linux user commits changes to two files, one named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8266 "<filename>myfile.c</filename> and the other named <filename>MyFile.C</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8267 "filename>, they will be stored correctly in the repository. And in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8268 "working directories of other Linux users, they will be correctly represented "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8269 "as separate files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8270 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8271
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8272 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8273 #: ../en/ch06-filenames.xml:355
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8274 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8275 "If a Windows or Mac user pulls this change, they will not initially have a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8276 "problem, because Mercurial's repository storage mechanism is case safe. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8277 "However, once they try to <command role=\"hg-cmd\">hg update</command> the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8278 "working directory to that changeset, or <command role=\"hg-cmd\">hg merge</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8279 "command> with that changeset, Mercurial will spot the conflict between the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8280 "two file names that the filesystem would treat as the same, and forbid the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8281 "update or merge from occurring."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8282 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8283
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8284 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8285 #: ../en/ch06-filenames.xml:367
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8286 msgid "Fixing a case conflict"
729
ccda4952e5f3 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 726
diff changeset
8287 msgstr "修正大小写冲突"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8288
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8289 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8290 #: ../en/ch06-filenames.xml:369
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8291 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8292 "If you are using Windows or a Mac in a mixed environment where some of your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8293 "collaborators are using Linux or Unix, and Mercurial reports a case folding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8294 "conflict when you try to <command role=\"hg-cmd\">hg update</command> or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8295 "<command role=\"hg-cmd\">hg merge</command>, the procedure to fix the problem "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8296 "is simple."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8297 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8298
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8299 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8300 #: ../en/ch06-filenames.xml:376
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8301 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8302 "Just find a nearby Linux or Unix box, clone the problem repository onto it, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8303 "and use Mercurial's <command role=\"hg-cmd\">hg rename</command> command to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8304 "change the names of any offending files or directories so that they will no "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8305 "longer cause case folding conflicts. Commit this change, <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8306 "cmd\">hg pull</command> or <command role=\"hg-cmd\">hg push</command> it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8307 "across to your Windows or MacOS system, and <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8308 "update</command> to the revision with the non-conflicting names."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8309 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8310
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8311 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8312 #: ../en/ch06-filenames.xml:386
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8313 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8314 "The changeset with case-conflicting names will remain in your project's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8315 "history, and you still won't be able to <command role=\"hg-cmd\">hg update</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8316 "command> your working directory to that changeset on a Windows or MacOS "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8317 "system, but you can continue development unimpeded."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8318 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8319
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8320 #. type: Content of: <book><chapter><sect1><sect2><note><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8321 #: ../en/ch06-filenames.xml:393
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8322 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8323 "Prior to version 0.9.3, Mercurial did not use a case safe repository storage "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8324 "mechanism, and did not detect case folding conflicts. If you are using an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8325 "older version of Mercurial on Windows or MacOS, I strongly recommend that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8326 "upgrade."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8327 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8328
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8329 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8330 #: ../en/ch07-branch.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8331 msgid "Managing releases and branchy development"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8332 msgstr "发布管理与分支开发"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8333
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8334 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8335 #: ../en/ch07-branch.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8336 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8337 "Mercurial provides several mechanisms for you to manage a project that is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8338 "making progress on multiple fronts at once. To understand these mechanisms, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8339 "let's first take a brief look at a fairly normal software project structure."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8340 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8341
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8342 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8343 #: ../en/ch07-branch.xml:12
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8344 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8345 "Many software projects issue periodic <quote>major</quote> releases that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8346 "contain substantial new features. In parallel, they may issue <quote>minor</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8347 "quote> releases. These are usually identical to the major releases off which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8348 "they're based, but with a few bugs fixed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8349 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8350
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8351 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8352 #: ../en/ch07-branch.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8353 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8354 "In this chapter, we'll start by talking about how to keep records of project "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8355 "milestones such as releases. We'll then continue on to talk about the flow "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8356 "of work between different phases of a project, and how Mercurial can help you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8357 "to isolate and manage this work."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8358 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8359
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8360 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8361 #: ../en/ch07-branch.xml:25
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8362 msgid "Giving a persistent name to a revision"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8363 msgstr "给版本指定一个永久的名称"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8364
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8365 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8366 #: ../en/ch07-branch.xml:27
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8367 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8368 "Once you decide that you'd like to call a particular revision a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8369 "<quote>release</quote>, it's a good idea to record the identity of that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8370 "revision. This will let you reproduce that release at a later date, for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8371 "whatever purpose you might need at the time (reproducing a bug, porting to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8372 "new platform, etc). &interaction.tag.init;"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8373 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8374
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8375 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8376 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8377 #: ../en/ch07-branch.xml:34
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8378 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8379 "Mercurial lets you give a permanent name to any revision using the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8380 "role=\"hg-cmd\">hg tag</command> command. Not surprisingly, these names are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8381 "called <quote>tags</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8382 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8383
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8384 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8385 #: ../en/ch07-branch.xml:40
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8386 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8387 "A tag is nothing more than a <quote>symbolic name</quote> for a revision. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8388 "Tags exist purely for your convenience, so that you have a handy permanent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8389 "way to refer to a revision; Mercurial doesn't interpret the tag names you use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8390 "in any way. Neither does Mercurial place any restrictions on the name of a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8391 "tag, beyond a few that are necessary to ensure that a tag can be parsed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8392 "unambiguously. A tag name cannot contain any of the following characters:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8393 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8394
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8395 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8396 #: ../en/ch07-branch.xml:49
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8397 msgid "Colon (ASCII 58, <quote><literal>:</literal></quote>)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8398 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8399
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8400 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8401 #: ../en/ch07-branch.xml:52
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8402 msgid "Carriage return (ASCII 13, <quote><literal>\\r</literal></quote>)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8403 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8404
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8405 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8406 #: ../en/ch07-branch.xml:55
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8407 msgid "Newline (ASCII 10, <quote><literal>\\n</literal></quote>)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8408 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8409
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8410 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8411 #: ../en/ch07-branch.xml:59
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8412 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8413 "You can use the <command role=\"hg-cmd\">hg tags</command> command to display "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8414 "the tags present in your repository. In the output, each tagged revision is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8415 "identified first by its name, then by revision number, and finally by the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8416 "unique hash of the revision."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8417 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8418
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8419 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8420 #: ../en/ch07-branch.xml:67
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8421 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8422 "Notice that <literal>tip</literal> is listed in the output of <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8423 "\"hg-cmd\">hg tags</command>. The <literal>tip</literal> tag is a special "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8424 "<quote>floating</quote> tag, which always identifies the newest revision in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8425 "the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8426 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8427
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8428 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8429 #: ../en/ch07-branch.xml:73
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8430 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8431 "In the output of the <command role=\"hg-cmd\">hg tags</command> command, tags "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8432 "are listed in reverse order, by revision number. This usually means that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8433 "recent tags are listed before older tags. It also means that <literal>tip</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8434 "literal> is always going to be the first tag listed in the output of <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8435 "role=\"hg-cmd\">hg tags</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8436 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8437
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8438 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8439 #: ../en/ch07-branch.xml:80
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8440 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8441 "When you run <command role=\"hg-cmd\">hg log</command>, if it displays a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8442 "revision that has tags associated with it, it will print those tags."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8443 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8444
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8445 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8446 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8447 #: ../en/ch07-branch.xml:86
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8448 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8449 "Any time you need to provide a revision ID to a Mercurial command, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8450 "command will accept a tag name in its place. Internally, Mercurial will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8451 "translate your tag name into the corresponding revision ID, then use that."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8452 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8453
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8454 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8455 #: ../en/ch07-branch.xml:93
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8456 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8457 "There's no limit on the number of tags you can have in a repository, or on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8458 "the number of tags that a single revision can have. As a practical matter, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8459 "it's not a great idea to have <quote>too many</quote> (a number which will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8460 "vary from project to project), simply because tags are supposed to help you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8461 "to find revisions. If you have lots of tags, the ease of using them to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8462 "identify revisions diminishes rapidly."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8463 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8464
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8465 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8466 #: ../en/ch07-branch.xml:101
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8467 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8468 "For example, if your project has milestones as frequent as every few days, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8469 "it's perfectly reasonable to tag each one of those. But if you have a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8470 "continuous build system that makes sure every revision can be built cleanly, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8471 "you'd be introducing a lot of noise if you were to tag every clean build. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8472 "Instead, you could tag failed builds (on the assumption that they're rare!), "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8473 "or simply not use tags to track buildability."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8474 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8475
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8476 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8477 #: ../en/ch07-branch.xml:109
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8478 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8479 "If you want to remove a tag that you no longer want, use <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8480 "cmd\">hg tag --remove</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8481 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8482
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8483 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8484 #: ../en/ch07-branch.xml:114
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8485 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8486 "You can also modify a tag at any time, so that it identifies a different "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8487 "revision, by simply issuing a new <command role=\"hg-cmd\">hg tag</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8488 "command. You'll have to use the <option role=\"hg-opt-tag\">-f</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8489 "option to tell Mercurial that you <emphasis>really</emphasis> want to update "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8490 "the tag."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8491 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8492
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8493 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8494 #: ../en/ch07-branch.xml:123
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8495 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8496 "There will still be a permanent record of the previous identity of the tag, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8497 "but Mercurial will no longer use it. There's thus no penalty to tagging the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8498 "wrong revision; all you have to do is turn around and tag the correct "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8499 "revision once you discover your error."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8500 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8501
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8502 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8503 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8504 #: ../en/ch07-branch.xml:129
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8505 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8506 "Mercurial stores tags in a normal revision-controlled file in your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8507 "repository. If you've created any tags, you'll find them in a file named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8508 "<filename role=\"special\">.hgtags</filename>. When you run the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8509 "role=\"hg-cmd\">hg tag</command> command, Mercurial modifies this file, then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8510 "automatically commits the change to it. This means that every time you run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8511 "<command role=\"hg-cmd\">hg tag</command>, you'll see a corresponding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8512 "changeset in the output of <command role=\"hg-cmd\">hg log</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8513 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8514
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8515 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8516 #: ../en/ch07-branch.xml:142
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8517 msgid "Handling tag conflicts during a merge"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8518 msgstr "在合并期间处理标签冲突"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8519
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8520 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8521 #: ../en/ch07-branch.xml:144
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8522 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8523 "You won't often need to care about the <filename role=\"special\">.hgtags</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8524 "filename> file, but it sometimes makes its presence known during a merge. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8525 "The format of the file is simple: it consists of a series of lines. Each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8526 "line starts with a changeset hash, followed by a space, followed by the name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8527 "of a tag."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8528 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8529
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8530 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8531 #: ../en/ch07-branch.xml:151
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8532 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8533 "If you're resolving a conflict in the <filename role=\"special\">.hgtags</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8534 "filename> file during a merge, there's one twist to modifying the <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8535 "role=\"special\">.hgtags</filename> file: when Mercurial is parsing the tags "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8536 "in a repository, it <emphasis>never</emphasis> reads the working copy of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8537 "<filename role=\"special\">.hgtags</filename> file. Instead, it reads the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8538 "<emphasis>most recently committed</emphasis> revision of the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8539 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8540
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8541 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8542 #: ../en/ch07-branch.xml:161
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8543 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8544 "An unfortunate consequence of this design is that you can't actually verify "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8545 "that your merged <filename role=\"special\">.hgtags</filename> file is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8546 "correct until <emphasis>after</emphasis> you've committed a change. So if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8547 "you find yourself resolving a conflict on <filename role=\"special\">.hgtags</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8548 "filename> during a merge, be sure to run <command role=\"hg-cmd\">hg tags</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8549 "command> after you commit. If it finds an error in the <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8550 "\"special\">.hgtags</filename> file, it will report the location of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8551 "error, which you can then fix and commit. You should then run <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8552 "\"hg-cmd\">hg tags</command> again, just to be sure that your fix is correct."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8553 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8554
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8555 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8556 #: ../en/ch07-branch.xml:176
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8557 msgid "Tags and cloning"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8558 msgstr "标签与克隆"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8559
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8560 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8561 #: ../en/ch07-branch.xml:178
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8562 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8563 "You may have noticed that the <command role=\"hg-cmd\">hg clone</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8564 "command has a <option role=\"hg-opt-clone\">-r</option> option that lets you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8565 "clone an exact copy of the repository as of a particular changeset. The new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8566 "clone will not contain any project history that comes after the revision you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8567 "specified. This has an interaction with tags that can surprise the unwary."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8568 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8569
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8570 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8571 #: ../en/ch07-branch.xml:186
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8572 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8573 "Recall that a tag is stored as a revision to the <filename role=\"special\">."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8574 "hgtags</filename> file, so that when you create a tag, the changeset in which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8575 "it's recorded necessarily refers to an older changeset. When you run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8576 "<command role=\"hg-cmd\">hg clone -r foo</command> to clone a repository as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8577 "of tag <literal>foo</literal>, the new clone <emphasis>will not contain the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8578 "history that created the tag</emphasis> that you used to clone the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8579 "repository. The result is that you'll get exactly the right subset of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8580 "project's history in the new repository, but <emphasis>not</emphasis> the tag "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8581 "you might have expected."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8582 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8583
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8584 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8585 #: ../en/ch07-branch.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8586 msgid "When permanent tags are too much"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8587 msgstr "当永久标签太多的时候"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8588
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8589 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8590 #: ../en/ch07-branch.xml:203
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8591 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8592 "Since Mercurial's tags are revision controlled and carried around with a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8593 "project's history, everyone you work with will see the tags you create. But "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8594 "giving names to revisions has uses beyond simply noting that revision "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8595 "<literal>4237e45506ee</literal> is really <literal>v2.0.2</literal>. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8596 "you're trying to track down a subtle bug, you might want a tag to remind you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8597 "of something like <quote>Anne saw the symptoms with this revision</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8598 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8599
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8600 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8601 #: ../en/ch07-branch.xml:213
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8602 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8603 "For cases like this, what you might want to use are <emphasis>local</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8604 "emphasis> tags. You can create a local tag with the <option role=\"hg-opt-tag"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8605 "\">-l</option> option to the <command role=\"hg-cmd\">hg tag</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8606 "command. This will store the tag in a file called <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8607 "\">.hg/localtags</filename>. Unlike <filename role=\"special\">.hgtags</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8608 "filename>, <filename role=\"special\">.hg/localtags</filename> is not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8609 "revision controlled. Any tags you create using <option role=\"hg-opt-tag\">-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8610 "l</option> remain strictly local to the repository you're currently working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8611 "in."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8612 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8613
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8614 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8615 #: ../en/ch07-branch.xml:228
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
8616 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
8617 msgid "The flow of changes—big picture vs. little"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
8618 msgstr "修改流程—宏观与微观"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8619
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8620 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8621 #: ../en/ch07-branch.xml:230
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8622 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8623 "To return to the outline I sketched at the beginning of a chapter, let's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8624 "think about a project that has multiple concurrent pieces of work under "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8625 "development at once."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8626 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8627
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8628 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8629 #: ../en/ch07-branch.xml:234
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8630 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8631 "There might be a push for a new <quote>main</quote> release; a new minor "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8632 "bugfix release to the last main release; and an unexpected <quote>hot fix</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8633 "quote> to an old release that is now in maintenance mode."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8634 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8635
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8636 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8637 #: ../en/ch07-branch.xml:239
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8638 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8639 "The usual way people refer to these different concurrent directions of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8640 "development is as <quote>branches</quote>. However, we've already seen "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8641 "numerous times that Mercurial treats <emphasis>all of history</emphasis> as a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8642 "series of branches and merges. Really, what we have here is two ideas that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8643 "are peripherally related, but which happen to share a name."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8644 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8645
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8646 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8647 #: ../en/ch07-branch.xml:246
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8648 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8649 "<quote>Big picture</quote> branches represent the sweep of a project's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8650 "evolution; people give them names, and talk about them in conversation."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8651 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8652
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8653 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8654 #: ../en/ch07-branch.xml:250
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8655 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8656 "<quote>Little picture</quote> branches are artefacts of the day-to-day "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8657 "activity of developing and merging changes. They expose the narrative of how "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8658 "the code was developed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8659 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8660
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8661 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8662 #: ../en/ch07-branch.xml:258
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8663 msgid "Managing big-picture branches in repositories"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8664 msgstr "在版本库中管理分支"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8665
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8666 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8667 #: ../en/ch07-branch.xml:260
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8668 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8669 "The easiest way to isolate a <quote>big picture</quote> branch in Mercurial "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
8670 "is in a dedicated repository. If you have an existing shared repository—"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
8671 "let's call it <literal>myproject</literal>&emdash;that reaches a <quote>1.0</"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
8672 "quote> milestone, you can start to prepare for future maintenance releases on "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
8673 "top of version 1.0 by tagging the revision from which you prepared the 1.0 "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
8674 "release."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8675 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8676
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8677 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8678 #: ../en/ch07-branch.xml:270
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8679 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8680 "You can then clone a new shared <literal>myproject-1.0.1</literal> repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8681 "as of that tag."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8682 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8683
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8684 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8685 #: ../en/ch07-branch.xml:276
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8686 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8687 "Afterwards, if someone needs to work on a bug fix that ought to go into an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8688 "upcoming 1.0.1 minor release, they clone the <literal>myproject-1.0.1</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8689 "literal> repository, make their changes, and push them back."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8690 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8691
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8692 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8693 #: ../en/ch07-branch.xml:283
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8694 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8695 "Meanwhile, development for the next major release can continue, isolated and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8696 "unabated, in the <literal>myproject</literal> repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8697 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8698
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8699 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8700 #: ../en/ch07-branch.xml:291
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8701 msgid "Don't repeat yourself: merging across branches"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8702 msgstr "不要重复劳动:在分支间合并"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8703
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8704 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8705 #: ../en/ch07-branch.xml:293
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8706 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8707 "In many cases, if you have a bug to fix on a maintenance branch, the chances "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8708 "are good that the bug exists on your project's main branch (and possibly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8709 "other maintenance branches, too). It's a rare developer who wants to fix the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8710 "same bug multiple times, so let's look at a few ways that Mercurial can help "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8711 "you to manage these bugfixes without duplicating your work."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8712 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8713
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8714 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8715 #: ../en/ch07-branch.xml:301
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8716 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8717 "In the simplest instance, all you need to do is pull changes from your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8718 "maintenance branch into your local clone of the target branch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8719 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8720
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8721 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8722 #: ../en/ch07-branch.xml:307
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8723 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8724 "You'll then need to merge the heads of the two branches, and push back to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8725 "main branch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8726 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8727
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8728 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8729 #: ../en/ch07-branch.xml:314
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8730 msgid "Naming branches within one repository"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8731 msgstr "版本库中的命名分支"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8732
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8733 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8734 #: ../en/ch07-branch.xml:316
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8735 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8736 "In most instances, isolating branches in repositories is the right approach. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8737 "Its simplicity makes it easy to understand; and so it's hard to make "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8738 "mistakes. There's a one-to-one relationship between branches you're working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8739 "in and directories on your system. This lets you use normal (non-Mercurial-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8740 "aware) tools to work on files within a branch/repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8741 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8742
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8743 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8744 #: ../en/ch07-branch.xml:323
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8745 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8746 "If you're more in the <quote>power user</quote> category (<emphasis>and</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8747 "emphasis> your collaborators are too), there is an alternative way of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8748 "handling branches that you can consider. I've already mentioned the human-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8749 "level distinction between <quote>small picture</quote> and <quote>big "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8750 "picture</quote> branches. While Mercurial works with multiple <quote>small "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8751 "picture</quote> branches in a repository all the time (for example after you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8752 "pull changes in, but before you merge them), it can <emphasis>also</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8753 "work with multiple <quote>big picture</quote> branches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8754 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8755
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8756 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8757 #: ../en/ch07-branch.xml:334
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8758 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8759 "The key to working this way is that Mercurial lets you assign a persistent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8760 "<emphasis>name</emphasis> to a branch. There always exists a branch named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8761 "<literal>default</literal>. Even before you start naming branches yourself, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8762 "you can find traces of the <literal>default</literal> branch if you look for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8763 "them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8764 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8765
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8766 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8767 #: ../en/ch07-branch.xml:341
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8768 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8769 "As an example, when you run the <command role=\"hg-cmd\">hg commit</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8770 "command, and it pops up your editor so that you can enter a commit message, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8771 "look for a line that contains the text <quote><literal>HG: branch default</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8772 "literal></quote> at the bottom. This is telling you that your commit will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8773 "occur on the branch named <literal>default</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8774 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8775
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8776 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8777 #: ../en/ch07-branch.xml:348
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8778 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8779 "To start working with named branches, use the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8780 "branches</command> command. This command lists the named branches already "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8781 "present in your repository, telling you which changeset is the tip of each."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8782 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8783
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8784 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8785 #: ../en/ch07-branch.xml:355
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8786 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8787 "Since you haven't created any named branches yet, the only one that exists is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8788 "<literal>default</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8789 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8790
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8791 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8792 #: ../en/ch07-branch.xml:358
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8793 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8794 "To find out what the <quote>current</quote> branch is, run the <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8795 "\"hg-cmd\">hg branch</command> command, giving it no arguments. This tells "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8796 "you what branch the parent of the current changeset is on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8797 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8798
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8799 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8800 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8801 #: ../en/ch07-branch.xml:365
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8802 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8803 "To create a new branch, run the <command role=\"hg-cmd\">hg branch</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8804 "command again. This time, give it one argument: the name of the branch you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8805 "want to create."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8806 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8807
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8808 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8809 #: ../en/ch07-branch.xml:371
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8810 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8811 "After you've created a branch, you might wonder what effect the <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8812 "\"hg-cmd\">hg branch</command> command has had. What do the <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8813 "\"hg-cmd\">hg status</command> and <command role=\"hg-cmd\">hg tip</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8814 "commands report?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8815 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8816
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8817 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8818 #: ../en/ch07-branch.xml:378
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8819 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8820 "Nothing has changed in the working directory, and there's been no new history "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8821 "created. As this suggests, running the <command role=\"hg-cmd\">hg branch</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8822 "command> command has no permanent effect; it only tells Mercurial what branch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8823 "name to use the <emphasis>next</emphasis> time you commit a changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8824 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8825
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8826 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8827 #: ../en/ch07-branch.xml:385
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8828 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8829 "When you commit a change, Mercurial records the name of the branch on which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8830 "you committed. Once you've switched from the <literal>default</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8831 "branch to another and committed, you'll see the name of the new branch show "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8832 "up in the output of <command role=\"hg-cmd\">hg log</command>, <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8833 "\"hg-cmd\">hg tip</command>, and other commands that display the same kind of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8834 "output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8835 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8836
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8837 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8838 #: ../en/ch07-branch.xml:395
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8839 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8840 "The <command role=\"hg-cmd\">hg log</command>-like commands will print the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8841 "branch name of every changeset that's not on the <literal>default</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8842 "branch. As a result, if you never use named branches, you'll never see this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8843 "information."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8844 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8845
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8846 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8847 #: ../en/ch07-branch.xml:400
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8848 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8849 "Once you've named a branch and committed a change with that name, every "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8850 "subsequent commit that descends from that change will inherit the same branch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8851 "name. You can change the name of a branch at any time, using the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8852 "role=\"hg-cmd\">hg branch</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8853 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8854
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8855 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8856 #: ../en/ch07-branch.xml:408
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8857 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8858 "In practice, this is something you won't do very often, as branch names tend "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8859 "to have fairly long lifetimes. (This isn't a rule, just an observation.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8860 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8861
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8862 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8863 #: ../en/ch07-branch.xml:414
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8864 msgid "Dealing with multiple named branches in a repository"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8865 msgstr "在版本库中处理多个命名分支"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8866
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8867 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8868 #: ../en/ch07-branch.xml:417
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8869 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8870 "If you have more than one named branch in a repository, Mercurial will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8871 "remember the branch that your working directory on when you start a command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8872 "like <command role=\"hg-cmd\">hg update</command> or <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8873 "\">hg pull -u</command>. It will update the working directory to the tip of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8874 "this branch, no matter what the <quote>repo-wide</quote> tip is. To update "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8875 "to a revision that's on a different named branch, you may need to use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8876 "<option role=\"hg-opt-update\">-C</option> option to <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8877 "\">hg update</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8878 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8879
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8880 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8881 #: ../en/ch07-branch.xml:427
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8882 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8883 "This behaviour is a little subtle, so let's see it in action. First, let's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8884 "remind ourselves what branch we're currently on, and what branches are in our "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8885 "repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8886 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8887
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8888 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8889 #: ../en/ch07-branch.xml:433
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8890 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8891 "We're on the <literal>bar</literal> branch, but there also exists an older "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8892 "<command role=\"hg-cmd\">hg foo</command> branch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8893 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8894
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8895 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8896 #: ../en/ch07-branch.xml:437
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8897 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8898 "We can <command role=\"hg-cmd\">hg update</command> back and forth between "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8899 "the tips of the <literal>foo</literal> and <literal>bar</literal> branches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8900 "without needing to use the <option role=\"hg-opt-update\">-C</option> option, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8901 "because this only involves going backwards and forwards linearly through our "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8902 "change history."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8903 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8904
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8905 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8906 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8907 #: ../en/ch07-branch.xml:446
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8908 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8909 "If we go back to the <literal>foo</literal> branch and then run <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8910 "\"hg-cmd\">hg update</command>, it will keep us on <literal>foo</literal>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8911 "not move us to the tip of <literal>bar</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8912 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8913
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8914 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8915 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8916 #: ../en/ch07-branch.xml:453
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8917 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8918 "Committing a new change on the <literal>foo</literal> branch introduces a new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8919 "head."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8920 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8921
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8922 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8923 #: ../en/ch07-branch.xml:460
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8924 msgid "Branch names and merging"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8925 msgstr "分支名称与合并"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8926
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8927 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8928 #: ../en/ch07-branch.xml:462
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8929 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8930 "As you've probably noticed, merges in Mercurial are not symmetrical. Let's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8931 "say our repository has two heads, 17 and 23. If I <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8932 "\">hg update</command> to 17 and then <command role=\"hg-cmd\">hg merge</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8933 "command> with 23, Mercurial records 17 as the first parent of the merge, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8934 "23 as the second. Whereas if I <command role=\"hg-cmd\">hg update</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8935 "to 23 and then <command role=\"hg-cmd\">hg merge</command> with 17, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8936 "records 23 as the first parent, and 17 as the second."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8937 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8938
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8939 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8940 #: ../en/ch07-branch.xml:472
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8941 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8942 "This affects Mercurial's choice of branch name when you merge. After a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8943 "merge, Mercurial will retain the branch name of the first parent when you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8944 "commit the result of the merge. If your first parent's branch name is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8945 "<literal>foo</literal>, and you merge with <literal>bar</literal>, the branch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8946 "name will still be <literal>foo</literal> after you merge."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8947 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8948
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8949 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8950 #: ../en/ch07-branch.xml:479
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8951 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8952 "It's not unusual for a repository to contain multiple heads, each with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8953 "same branch name. Let's say I'm working on the <literal>foo</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8954 "branch, and so are you. We commit different changes; I pull your changes; I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8955 "now have two heads, each claiming to be on the <literal>foo</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8956 "branch. The result of a merge will be a single head on the <literal>foo</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8957 "literal> branch, as you might hope."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8958 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8959
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8960 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8961 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8962 #: ../en/ch07-branch.xml:487
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8963 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8964 "But if I'm working on the <literal>bar</literal> branch, and I merge work "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8965 "from the <literal>foo</literal> branch, the result will remain on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8966 "<literal>bar</literal> branch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8967 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8968
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8969 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8970 #: ../en/ch07-branch.xml:493
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8971 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8972 "To give a more concrete example, if I'm working on the <literal>bleeding-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8973 "edge</literal> branch, and I want to bring in the latest fixes from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8974 "<literal>stable</literal> branch, Mercurial will choose the <quote>right</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8975 "quote> (<literal>bleeding-edge</literal>) branch name when I pull and merge "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8976 "from <literal>stable</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8977 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8978
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8979 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8980 #: ../en/ch07-branch.xml:502
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8981 msgid "Branch naming is generally useful"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
8982 msgstr "分支名称通常都很有用"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8983
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8984 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8985 #: ../en/ch07-branch.xml:504
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8986 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8987 "You shouldn't think of named branches as applicable only to situations where "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8988 "you have multiple long-lived branches cohabiting in a single repository. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8989 "They're very useful even in the one-branch-per-repository case."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8990 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8991
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8992 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
8993 #: ../en/ch07-branch.xml:509
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8994 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8995 "In the simplest case, giving a name to each branch gives you a permanent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8996 "record of which branch a changeset originated on. This gives you more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8997 "context when you're trying to follow the history of a long-lived branchy "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8998 "project."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
8999 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9000
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9001 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9002 #: ../en/ch07-branch.xml:514
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9003 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9004 "If you're working with shared repositories, you can set up a <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9005 "\"hook\">pretxnchangegroup</literal> hook on each that will block incoming "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9006 "changes that have the <quote>wrong</quote> branch name. This provides a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9007 "simple, but effective, defence against people accidentally pushing changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9008 "from a <quote>bleeding edge</quote> branch to a <quote>stable</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9009 "branch. Such a hook might look like this inside the shared repo's <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9010 "role=\"special\"> /.hgrc</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9011 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9012
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9013 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9014 #: ../en/ch08-undo.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9015 msgid "Finding and fixing mistakes"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9016 msgstr "查找和修改错误"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9017
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9018 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9019 #: ../en/ch08-undo.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9020 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9021 "To err might be human, but to really handle the consequences well takes a top-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9022 "notch revision control system. In this chapter, we'll discuss some of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9023 "techniques you can use when you find that a problem has crept into your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9024 "project. Mercurial has some highly capable features that will help you to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9025 "isolate the sources of problems, and to handle them appropriately."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9026 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9027
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9028 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9029 #: ../en/ch08-undo.xml:15
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9030 msgid "Erasing local history"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9031 msgstr "销毁本地历史"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9032
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9033 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9034 #: ../en/ch08-undo.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9035 msgid "The accidental commit"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9036 msgstr "意外的提交"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9037
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9038 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9039 #: ../en/ch08-undo.xml:20
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9040 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9041 "I have the occasional but persistent problem of typing rather more quickly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9042 "than I can think, which sometimes results in me committing a changeset that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9043 "is either incomplete or plain wrong. In my case, the usual kind of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9044 "incomplete changeset is one in which I've created a new source file, but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9045 "forgotten to <command role=\"hg-cmd\">hg add</command> it. A <quote>plain "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9046 "wrong</quote> changeset is not as common, but no less annoying."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9047 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9048
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9049 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9050 #: ../en/ch08-undo.xml:31
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9051 msgid "Rolling back a transaction"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9052 msgstr "回滚一个事务"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9053
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9054 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9055 #: ../en/ch08-undo.xml:33
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9056 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9057 "In <xref linkend=\"sec:concepts:txn\"/>, I mentioned that Mercurial treats "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9058 "each modification of a repository as a <emphasis>transaction</emphasis>. "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9059 "Every time you commit a changeset or pull changes from another repository, "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9060 "Mercurial remembers what you did. You can undo, or <emphasis>roll back</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9061 "emphasis>, exactly one of these actions using the <command role=\"hg-cmd\">hg "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9062 "rollback</command> command. (See <xref linkend=\"sec:undo:rollback-after-push"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9063 "\"/> for an important caveat about the use of this command.)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9064 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9065
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9066 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9067 #: ../en/ch08-undo.xml:43
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9068 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9069 "Here's a mistake that I often find myself making: committing a change in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9070 "which I've created a new file, but forgotten to <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9071 "add</command> it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9072 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9073
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9074 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9075 #: ../en/ch08-undo.xml:50
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9076 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9077 "Looking at the output of <command role=\"hg-cmd\">hg status</command> after "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9078 "the commit immediately confirms the error."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9079 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9080
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9081 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9082 #: ../en/ch08-undo.xml:56
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9083 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9084 "The commit captured the changes to the file <filename>a</filename>, but not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9085 "the new file <filename>b</filename>. If I were to push this changeset to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9086 "repository that I shared with a colleague, the chances are high that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9087 "something in <filename>a</filename> would refer to <filename>b</filename>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9088 "which would not be present in their repository when they pulled my changes. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9089 "I would thus become the object of some indignation."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9090 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9091
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9092 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9093 #: ../en/ch08-undo.xml:65
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9094 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9095 "However, luck is with me—I've caught my error before I pushed the changeset. "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9096 "I use the <command role=\"hg-cmd\">hg rollback</command> command, and "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9097 "Mercurial makes that last changeset vanish."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9098 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9099
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9100 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9101 #: ../en/ch08-undo.xml:72
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9102 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9103 "Notice that the changeset is no longer present in the repository's history, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9104 "and the working directory once again thinks that the file <filename>a</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9105 "filename> is modified. The commit and rollback have left the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9106 "directory exactly as it was prior to the commit; the changeset has been "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9107 "completely erased. I can now safely <command role=\"hg-cmd\">hg add</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9108 "command> the file <filename>b</filename>, and rerun my commit."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9109 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9110
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9111 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9112 #: ../en/ch08-undo.xml:85
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9113 msgid "The erroneous pull"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9114 msgstr "错误的抓取"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9115
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9116 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9117 #: ../en/ch08-undo.xml:87
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9118 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9119 "It's common practice with Mercurial to maintain separate development branches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9120 "of a project in different repositories. Your development team might have one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9121 "shared repository for your project's <quote>0.9</quote> release, and another, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9122 "containing different changes, for the <quote>1.0</quote> release."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9123 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9124
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9125 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9126 #: ../en/ch08-undo.xml:94
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9127 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9128 "Given this, you can imagine that the consequences could be messy if you had a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9129 "local <quote>0.9</quote> repository, and accidentally pulled changes from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9130 "shared <quote>1.0</quote> repository into it. At worst, you could be paying "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9131 "insufficient attention, and push those changes into the shared <quote>0.9</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9132 "quote> tree, confusing your entire team (but don't worry, we'll return to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9133 "this horror scenario later). However, it's more likely that you'll notice "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9134 "immediately, because Mercurial will display the URL it's pulling from, or you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9135 "will see it pull a suspiciously large number of changes into the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9136 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9137
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9138 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9139 #: ../en/ch08-undo.xml:106
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9140 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9141 "The <command role=\"hg-cmd\">hg rollback</command> command will work nicely "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9142 "to expunge all of the changesets that you just pulled. Mercurial groups all "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9143 "changes from one <command role=\"hg-cmd\">hg pull</command> into a single "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9144 "transaction, so one <command role=\"hg-cmd\">hg rollback</command> is all you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9145 "need to undo this mistake."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9146 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9147
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9148 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9149 #: ../en/ch08-undo.xml:115
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9150 msgid "Rolling back is useless once you've pushed"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9151 msgstr "当完成推送后,回滚是无效的"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9152
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9153 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9154 #: ../en/ch08-undo.xml:117
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9155 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9156 "The value of the <command role=\"hg-cmd\">hg rollback</command> command drops "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9157 "to zero once you've pushed your changes to another repository. Rolling back "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9158 "a change makes it disappear entirely, but <emphasis>only</emphasis> in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9159 "repository in which you perform the <command role=\"hg-cmd\">hg rollback</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9160 "command>. Because a rollback eliminates history, there's no way for the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9161 "disappearance of a change to propagate between repositories."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9162 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9163
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9164 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9165 #: ../en/ch08-undo.xml:126
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9166 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9167 "If you've pushed a change to another repository—particularly if it's a shared "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9168 "repository—it has essentially <quote>escaped into the wild,</quote> and "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9169 "you'll have to recover from your mistake in a different way. What will "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9170 "happen if you push a changeset somewhere, then roll it back, then pull from "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9171 "the repository you pushed to, is that the changeset will reappear in your "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9172 "repository."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9173 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9174
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9175 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9176 #: ../en/ch08-undo.xml:135
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9177 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9178 "(If you absolutely know for sure that the change you want to roll back is the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9179 "most recent change in the repository that you pushed to, <emphasis>and</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9180 "emphasis> you know that nobody else could have pulled it from that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9181 "repository, you can roll back the changeset there, too, but you really should "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9182 "really not rely on this working reliably. If you do this, sooner or later a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9183 "change really will make it into a repository that you don't directly control "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9184 "(or have forgotten about), and come back to bite you.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9185 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9186
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9187 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9188 #: ../en/ch08-undo.xml:147
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9189 msgid "You can only roll back once"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9190 msgstr "你只能回滚一次"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9191
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9192 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9193 #: ../en/ch08-undo.xml:149
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9194 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9195 "Mercurial stores exactly one transaction in its transaction log; that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9196 "transaction is the most recent one that occurred in the repository. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9197 "means that you can only roll back one transaction. If you expect to be able "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9198 "to roll back one transaction, then its predecessor, this is not the behaviour "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9199 "you will get."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9200 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9201
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9202 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9203 #: ../en/ch08-undo.xml:158
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9204 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9205 "Once you've rolled back one transaction in a repository, you can't roll back "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9206 "again in that repository until you perform another commit or pull."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9207 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9208
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9209 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9210 #: ../en/ch08-undo.xml:165
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9211 msgid "Reverting the mistaken change"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9212 msgstr "撤销错误的修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9213
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9214 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9215 #: ../en/ch08-undo.xml:167
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9216 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9217 "If you make a modification to a file, and decide that you really didn't want "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9218 "to change the file at all, and you haven't yet committed your changes, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9219 "<command role=\"hg-cmd\">hg revert</command> command is the one you'll need. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9220 "It looks at the changeset that's the parent of the working directory, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9221 "restores the contents of the file to their state as of that changeset. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9222 "(That's a long-winded way of saying that, in the normal case, it undoes your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9223 "modifications.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9224 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9225
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9226 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9227 #: ../en/ch08-undo.xml:176
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9228 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9229 "Let's illustrate how the <command role=\"hg-cmd\">hg revert</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9230 "works with yet another small example. We'll begin by modifying a file that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9231 "Mercurial is already tracking."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9232 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9233
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9234 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9235 #: ../en/ch08-undo.xml:183
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9236 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9237 "If we don't want that change, we can simply <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9238 "revert</command> the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9239 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9240
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9241 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9242 #: ../en/ch08-undo.xml:189
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9243 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9244 "The <command role=\"hg-cmd\">hg revert</command> command provides us with an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9245 "extra degree of safety by saving our modified file with a <filename>.orig</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9246 "filename> extension."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9247 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9248
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9249 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9250 #: ../en/ch08-undo.xml:196
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9251 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9252 "Here is a summary of the cases that the <command role=\"hg-cmd\">hg revert</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9253 "command> command can deal with. We will describe each of these in more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9254 "detail in the section that follows."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9255 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9256
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9257 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9258 #: ../en/ch08-undo.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9259 msgid "If you modify a file, it will restore the file to its unmodified state."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9260 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9261
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9262 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9263 #: ../en/ch08-undo.xml:204
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9264 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9265 "If you <command role=\"hg-cmd\">hg add</command> a file, it will undo the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9266 "<quote>added</quote> state of the file, but leave the file itself untouched."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9267 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9268
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9269 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9270 #: ../en/ch08-undo.xml:208
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9271 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9272 "If you delete a file without telling Mercurial, it will restore the file to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9273 "its unmodified contents."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9274 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9275
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9276 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9277 #: ../en/ch08-undo.xml:211
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9278 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9279 "If you use the <command role=\"hg-cmd\">hg remove</command> command to remove "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9280 "a file, it will undo the <quote>removed</quote> state of the file, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9281 "restore the file to its unmodified contents."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9282 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9283
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9284 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9285 #: ../en/ch08-undo.xml:218
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9286 msgid "File management errors"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9287 msgstr "文件管理错误"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9288
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9289 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9290 #: ../en/ch08-undo.xml:220
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9291 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9292 "The <command role=\"hg-cmd\">hg revert</command> command is useful for more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9293 "than just modified files. It lets you reverse the results of all of "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9294 "Mercurial's file management commands—<command role=\"hg-cmd\">hg add</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9295 "command>, <command role=\"hg-cmd\">hg remove</command>, and so on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9296 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9297
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9298 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9299 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9300 #: ../en/ch08-undo.xml:226
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9301 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9302 "If you <command role=\"hg-cmd\">hg add</command> a file, then decide that in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9303 "fact you don't want Mercurial to track it, use <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9304 "revert</command> to undo the add. Don't worry; Mercurial will not modify the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9305 "file in any way. It will just <quote>unmark</quote> the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9306 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9307
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9308 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9309 #: ../en/ch08-undo.xml:234
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9310 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9311 "Similarly, if you ask Mercurial to <command role=\"hg-cmd\">hg remove</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9312 "command> a file, you can use <command role=\"hg-cmd\">hg revert</command> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9313 "restore it to the contents it had as of the parent of the working directory. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9314 "&interaction.daily.revert.remove; This works just as well for a file that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9315 "deleted by hand, without telling Mercurial (recall that in Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9316 "terminology, this kind of file is called <quote>missing</quote>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9317 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9318
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9319 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9320 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9321 #: ../en/ch08-undo.xml:245
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9322 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9323 "If you revert a <command role=\"hg-cmd\">hg copy</command>, the copied-to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9324 "file remains in your working directory afterwards, untracked. Since a copy "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9325 "doesn't affect the copied-from file in any way, Mercurial doesn't do anything "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9326 "with the copied-from file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9327 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9328
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9329 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9330 #: ../en/ch08-undo.xml:254
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9331 msgid "A slightly special case: reverting a rename"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9332 msgstr "一个稍微特别的案例:撤销改名"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9333
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9334 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9335 #: ../en/ch08-undo.xml:256
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9336 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9337 "If you <command role=\"hg-cmd\">hg rename</command> a file, there is one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9338 "small detail that you should remember. When you <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9339 "revert</command> a rename, it's not enough to provide the name of the renamed-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9340 "to file, as you can see here."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9341 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9342
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9343 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9344 #: ../en/ch08-undo.xml:264
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9345 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9346 "As you can see from the output of <command role=\"hg-cmd\">hg status</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9347 "command>, the renamed-to file is no longer identified as added, but the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9348 "renamed-<emphasis>from</emphasis> file is still removed! This is counter-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9349 "intuitive (at least to me), but at least it's easy to deal with."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9350 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9351
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9352 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9353 #: ../en/ch08-undo.xml:273
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9354 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9355 "So remember, to revert a <command role=\"hg-cmd\">hg rename</command>, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9356 "must provide <emphasis>both</emphasis> the source and destination names."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9357 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9358
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9359 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9360 #: ../en/ch08-undo.xml:278
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9361 msgid "% TODO: the output doesn't look like it will be removed!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9362 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9363
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9364 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9365 #: ../en/ch08-undo.xml:281
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9366 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9367 "(By the way, if you rename a file, then modify the renamed-to file, then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9368 "revert both components of the rename, when Mercurial restores the file that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9369 "was removed as part of the rename, it will be unmodified. If you need the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9370 "modifications in the renamed-to file to show up in the renamed-from file, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9371 "don't forget to copy them over.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9372 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9373
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9374 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9375 #: ../en/ch08-undo.xml:288
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9376 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9377 "These fiddly aspects of reverting a rename arguably constitute a small bug in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9378 "Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9379 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9380
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9381 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9382 #: ../en/ch08-undo.xml:295
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9383 msgid "Dealing with committed changes"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9384 msgstr "处理已经提交的修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9385
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9386 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9387 #: ../en/ch08-undo.xml:297
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9388 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9389 "Consider a case where you have committed a change $a$, and another change $b$ "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9390 "on top of it; you then realise that change $a$ was incorrect. Mercurial lets "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9391 "you <quote>back out</quote> an entire changeset automatically, and building "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9392 "blocks that let you reverse part of a changeset by hand."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9393 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9394
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9395 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9396 #: ../en/ch08-undo.xml:303
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9397 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9398 "Before you read this section, here's something to keep in mind: the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9399 "role=\"hg-cmd\">hg backout</command> command undoes changes by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9400 "<emphasis>adding</emphasis> history, not by modifying or erasing it. It's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9401 "the right tool to use if you're fixing bugs, but not if you're trying to undo "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9402 "some change that has catastrophic consequences. To deal with those, see "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9403 "<xref linkend=\"sec:undo:aaaiiieee\"/>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9404 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9405
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9406 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9407 #: ../en/ch08-undo.xml:312
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9408 msgid "Backing out a changeset"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9409 msgstr "恢复一个修改集"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9410
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9411 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9412 #: ../en/ch08-undo.xml:314
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9413 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9414 "The <command role=\"hg-cmd\">hg backout</command> command lets you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9415 "<quote>undo</quote> the effects of an entire changeset in an automated "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9416 "fashion. Because Mercurial's history is immutable, this command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9417 "<emphasis>does not</emphasis> get rid of the changeset you want to undo. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9418 "Instead, it creates a new changeset that <emphasis>reverses</emphasis> the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9419 "effect of the to-be-undone changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9420 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9421
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9422 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9423 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9424 #: ../en/ch08-undo.xml:323
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9425 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9426 "The operation of the <command role=\"hg-cmd\">hg backout</command> command is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9427 "a little intricate, so let's illustrate it with some examples. First, we'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9428 "create a repository with some simple changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9429 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9430
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9431 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9432 #: ../en/ch08-undo.xml:330
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9433 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9434 "The <command role=\"hg-cmd\">hg backout</command> command takes a single "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9435 "changeset ID as its argument; this is the changeset to back out. Normally, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9436 "<command role=\"hg-cmd\">hg backout</command> will drop you into a text "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9437 "editor to write a commit message, so you can record why you're backing the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9438 "change out. In this example, we provide a commit message on the command line "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9439 "using the <option role=\"hg-opt-backout\">-m</option> option."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9440 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9441
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9442 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9443 #: ../en/ch08-undo.xml:341
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9444 msgid "Backing out the tip changeset"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9445 msgstr "恢复顶点修改集"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9446
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9447 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9448 #: ../en/ch08-undo.xml:343
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9449 msgid "We're going to start by backing out the last changeset we committed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9450 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9451
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9452 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9453 #: ../en/ch08-undo.xml:348
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9454 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9455 "You can see that the second line from <filename>myfile</filename> is no "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9456 "longer present. Taking a look at the output of <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9457 "log</command> gives us an idea of what the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9458 "backout</command> command has done. &interaction.backout.simple.log; Notice "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9459 "that the new changeset that <command role=\"hg-cmd\">hg backout</command> has "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9460 "created is a child of the changeset we backed out. It's easier to see this "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9461 "in <xref linkend=\"fig:undo:backout\"/>, which presents a graphical view of "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9462 "the change history. As you can see, the history is nice and linear."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9463 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9464
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9465 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9466 #: ../en/ch08-undo.xml:361 ../en/ch08-undo.xml:473
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9467 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9468 "Backing out a change using the <command role=\"hg-cmd\">hg backout</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9469 "command"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
9470 msgstr "使用 <command role=\"hg-cmd\">hg backout</command> 恢复一个修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9471
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9472 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9473 #: ../en/ch08-undo.xml:364
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9474 msgid "<imageobject><imagedata fileref=\"figs/undo-simple.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9475 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9476
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9477 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9478 #: ../en/ch08-undo.xml:371
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9479 msgid "Backing out a non-tip change"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9480 msgstr "恢复非顶点的修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9481
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9482 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9483 #: ../en/ch08-undo.xml:373
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9484 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9485 "If you want to back out a change other than the last one you committed, pass "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9486 "the <option role=\"hg-opt-backout\">--merge</option> option to the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9487 "role=\"hg-cmd\">hg backout</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9488 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9489
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9490 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9491 #: ../en/ch08-undo.xml:380
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9492 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9493 "This makes backing out any changeset a <quote>one-shot</quote> operation "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9494 "that's usually simple and fast."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9495 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9496
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9497 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9498 #: ../en/ch08-undo.xml:386
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9499 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9500 "If you take a look at the contents of <filename>myfile</filename> after the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9501 "backout finishes, you'll see that the first and third changes are present, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9502 "but not the second."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9503 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9504
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9505 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9506 #: ../en/ch08-undo.xml:393
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9507 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9508 "As the graphical history in <xref linkend=\"fig:undo:backout-non-tip\"/> "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9509 "illustrates, Mercurial actually commits <emphasis>two</emphasis> changes in "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9510 "this kind of situation (the box-shaped nodes are the ones that Mercurial "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9511 "commits automatically). Before Mercurial begins the backout process, it "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9512 "first remembers what the current parent of the working directory is. It then "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9513 "backs out the target changeset, and commits that as a changeset. Finally, it "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9514 "merges back to the previous parent of the working directory, and commits the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9515 "result of the merge."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9516 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9517
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9518 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9519 #: ../en/ch08-undo.xml:404
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9520 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9521 "% TODO: to me it looks like mercurial doesn't commit the second merge "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9522 "automatically!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9523 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9524
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9525 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9526 #: ../en/ch08-undo.xml:408
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9527 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9528 "Automated backout of a non-tip change using the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9529 "backout</command> command"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
9530 msgstr "使用 <command role=\"hg-cmd\">hg backout</command> 自动恢复非顶点的修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9531
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9532 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9533 #: ../en/ch08-undo.xml:411
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9534 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9535 "<imageobject><imagedata fileref=\"figs/undo-non-tip.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9536 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9537
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9538 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9539 #: ../en/ch08-undo.xml:416
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9540 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9541 "The result is that you end up <quote>back where you were</quote>, only with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9542 "some extra history that undoes the effect of the changeset you wanted to back "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9543 "out."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9544 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9545
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9546 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9547 #: ../en/ch08-undo.xml:421
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9548 msgid "Always use the <option role=\"hg-opt-backout\">--merge</option> option"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9549 msgstr "始终使用选项 <option role=\"hg-opt-backout\">--merge</option>"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9550
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9551 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9552 #: ../en/ch08-undo.xml:424
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9553 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9554 "In fact, since the <option role=\"hg-opt-backout\">--merge</option> option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9555 "will do the <quote>right thing</quote> whether or not the changeset you're "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9556 "backing out is the tip (i.e. it won't try to merge if it's backing out the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9557 "tip, since there's no need), you should <emphasis>always</emphasis> use this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9558 "option when you run the <command role=\"hg-cmd\">hg backout</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9559 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9560
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9561 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9562 #: ../en/ch08-undo.xml:435
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9563 msgid "Gaining more control of the backout process"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9564 msgstr "在恢复处理中获得更多控制"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9565
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9566 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9567 #: ../en/ch08-undo.xml:437
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9568 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9569 "While I've recommended that you always use the <option role=\"hg-opt-backout"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9570 "\">--merge</option> option when backing out a change, the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9571 "cmd\">hg backout</command> command lets you decide how to merge a backout "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9572 "changeset. Taking control of the backout process by hand is something you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9573 "will rarely need to do, but it can be useful to understand what the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9574 "role=\"hg-cmd\">hg backout</command> command is doing for you automatically. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9575 "To illustrate this, let's clone our first repository, but omit the backout "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9576 "change that it contains."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9577 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9578
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9579 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9580 #: ../en/ch08-undo.xml:450
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9581 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9582 "As with our earlier example, We'll commit a third changeset, then back out "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9583 "its parent, and see what happens."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9584 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9585
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9586 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9587 #: ../en/ch08-undo.xml:456
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9588 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9589 "Our new changeset is again a descendant of the changeset we backout out; it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9590 "thus a new head, <emphasis>not</emphasis> a descendant of the changeset that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9591 "was the tip. The <command role=\"hg-cmd\">hg backout</command> command was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9592 "quite explicit in telling us this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9593 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9594
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9595 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9596 #: ../en/ch08-undo.xml:464
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9597 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9598 "Again, it's easier to see what has happened by looking at a graph of the "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9599 "revision history, in <xref linkend=\"fig:undo:backout-manual\"/>. This makes "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9600 "it clear that when we use <command role=\"hg-cmd\">hg backout</command> to "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9601 "back out a change other than the tip, Mercurial adds a new head to the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9602 "repository (the change it committed is box-shaped)."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9603 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9604
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9605 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9606 #: ../en/ch08-undo.xml:476
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9607 msgid "<imageobject><imagedata fileref=\"figs/undo-manual.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9608 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9609
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9610 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9611 #: ../en/ch08-undo.xml:481
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9612 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9613 "After the <command role=\"hg-cmd\">hg backout</command> command has "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9614 "completed, it leaves the new <quote>backout</quote> changeset as the parent "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9615 "of the working directory."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9616 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9617
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9618 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9619 #: ../en/ch08-undo.xml:488
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9620 msgid "Now we have two isolated sets of changes."
740
8b73656f95c9 Update file location in po files
Dongsheng Song <dongsheng.song@gmail.com>
parents: 735
diff changeset
9621 msgstr ""
8b73656f95c9 Update file location in po files
Dongsheng Song <dongsheng.song@gmail.com>
parents: 735
diff changeset
9622
8b73656f95c9 Update file location in po files
Dongsheng Song <dongsheng.song@gmail.com>
parents: 735
diff changeset
9623 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
9624 #: ../en/ch08-undo.xml:492
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9625 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9626 "Let's think about what we expect to see as the contents of <filename>myfile</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9627 "filename> now. The first change should be present, because we've never "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9628 "backed it out. The second change should be missing, as that's the change we "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9629 "backed out. Since the history graph shows the third change as a separate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9630 "head, we <emphasis>don't</emphasis> expect to see the third change present in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9631 "<filename>myfile</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9632 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9633
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9634 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9635 #: ../en/ch08-undo.xml:502
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9636 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9637 "To get the third change back into the file, we just do a normal merge of our "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9638 "two heads."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9639 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9640
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9641 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9642 #: ../en/ch08-undo.xml:507
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9643 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9644 "Afterwards, the graphical history of our repository looks like <xref linkend="
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9645 "\"fig:undo:backout-manual-merge\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9646 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9647
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9648 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9649 #: ../en/ch08-undo.xml:512
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9650 msgid "Manually merging a backout change"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
9651 msgstr "手工合并恢复修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9652
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9653 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9654 #: ../en/ch08-undo.xml:514
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9655 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9656 "<imageobject><imagedata fileref=\"figs/undo-manual-merge.png\"/></imageobject>"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9657 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9658
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9659 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9660 #: ../en/ch08-undo.xml:521
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9661 msgid "Why <command role=\"hg-cmd\">hg backout</command> works as it does"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9662 msgstr "<command role=\"hg-cmd\">hg backout</command> 的内幕"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9663
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9664 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9665 #: ../en/ch08-undo.xml:524
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9666 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9667 "Here's a brief description of how the <command role=\"hg-cmd\">hg backout</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9668 "command> command works."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9669 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9670
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9671 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9672 #: ../en/ch08-undo.xml:527
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9673 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9674 "It ensures that the working directory is <quote>clean</quote>, i.e. that the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9675 "output of <command role=\"hg-cmd\">hg status</command> would be empty."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9676 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9677
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9678 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9679 #: ../en/ch08-undo.xml:531
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9680 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9681 "It remembers the current parent of the working directory. Let's call this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9682 "changeset <literal>orig</literal>"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9683 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9684
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9685 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9686 #: ../en/ch08-undo.xml:535
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9687 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9688 "It does the equivalent of a <command role=\"hg-cmd\">hg update</command> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9689 "sync the working directory to the changeset you want to back out. Let's call "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9690 "this changeset <literal>backout</literal>"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9691 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9692
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9693 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9694 #: ../en/ch08-undo.xml:540
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9695 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9696 "It finds the parent of that changeset. Let's call that changeset "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9697 "<literal>parent</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9698 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9699
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9700 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9701 #: ../en/ch08-undo.xml:543
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9702 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9703 "For each file that the <literal>backout</literal> changeset affected, it does "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9704 "the equivalent of a <command role=\"hg-cmd\">hg revert -r parent</command> on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9705 "that file, to restore it to the contents it had before that changeset was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9706 "committed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9707 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9708
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9709 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9710 #: ../en/ch08-undo.xml:550
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9711 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9712 "It commits the result as a new changeset. This changeset has "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9713 "<literal>backout</literal> as its parent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9714 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9715
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9716 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9717 #: ../en/ch08-undo.xml:554
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9718 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9719 "If you specify <option role=\"hg-opt-backout\">--merge</option> on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9720 "command line, it merges with <literal>orig</literal>, and commits the result "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9721 "of the merge."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9722 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9723
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9724 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9725 #: ../en/ch08-undo.xml:560
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9726 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9727 "An alternative way to implement the <command role=\"hg-cmd\">hg backout</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9728 "command> command would be to <command role=\"hg-cmd\">hg export</command> the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9729 "to-be-backed-out changeset as a diff, then use the <option role=\"cmd-opt-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9730 "patch\">--reverse</option> option to the <command>patch</command> command to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9731 "reverse the effect of the change without fiddling with the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9732 "directory. This sounds much simpler, but it would not work nearly as well."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9733 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9734
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9735 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9736 #: ../en/ch08-undo.xml:570
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9737 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9738 "The reason that <command role=\"hg-cmd\">hg backout</command> does an update, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9739 "a commit, a merge, and another commit is to give the merge machinery the best "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9740 "chance to do a good job when dealing with all the changes <emphasis>between</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9741 "emphasis> the change you're backing out and the current tip."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9742 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9743
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9744 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9745 #: ../en/ch08-undo.xml:577
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9746 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9747 "If you're backing out a changeset that's 100 revisions back in your project's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9748 "history, the chances that the <command>patch</command> command will be able "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9749 "to apply a reverse diff cleanly are not good, because intervening changes are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9750 "likely to have <quote>broken the context</quote> that <command>patch</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9751 "command> uses to determine whether it can apply a patch (if this sounds like "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9752 "gibberish, see <xref linkend=\"sec:mq:patch\"/> for a discussion of the "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9753 "<command>patch</command> command). Also, Mercurial's merge machinery will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9754 "handle files and directories being renamed, permission changes, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9755 "modifications to binary files, none of which <command>patch</command> can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9756 "deal with."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9757 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9758
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9759 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9760 #: ../en/ch08-undo.xml:594
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9761 msgid "Changes that should never have been"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9762 msgstr "不该发生的修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9763
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9764 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9765 #: ../en/ch08-undo.xml:596
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9766 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9767 "Most of the time, the <command role=\"hg-cmd\">hg backout</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9768 "is exactly what you need if you want to undo the effects of a change. It "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9769 "leaves a permanent record of exactly what you did, both when committing the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9770 "original changeset and when you cleaned up after it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9771 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9772
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9773 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9774 #: ../en/ch08-undo.xml:602
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9775 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9776 "On rare occasions, though, you may find that you've committed a change that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9777 "really should not be present in the repository at all. For example, it would "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9778 "be very unusual, and usually considered a mistake, to commit a software "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9779 "project's object files as well as its source files. Object files have almost "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9780 "no intrinsic value, and they're <emphasis>big</emphasis>, so they increase "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9781 "the size of the repository and the amount of time it takes to clone or pull "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9782 "changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9783 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9784
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9785 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9786 #: ../en/ch08-undo.xml:611
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9787 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9788 "Before I discuss the options that you have if you commit a <quote>brown paper "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9789 "bag</quote> change (the kind that's so bad that you want to pull a brown "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9790 "paper bag over your head), let me first discuss some approaches that probably "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9791 "won't work."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9792 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9793
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9794 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9795 #: ../en/ch08-undo.xml:616
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9796 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9797 "Since Mercurial treats history as accumulative—every change builds on top of "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9798 "all changes that preceded it—you generally can't just make disastrous changes "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9799 "disappear. The one exception is when you've just committed a change, and it "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9800 "hasn't been pushed or pulled into another repository. That's when you can "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9801 "safely use the <command role=\"hg-cmd\">hg rollback</command> command, as I "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
9802 "detailed in <xref linkend=\"sec:undo:rollback\"/>."
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9803 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9804
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9805 #. type: Content of: <book><chapter><sect1><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9806 #: ../en/ch08-undo.xml:625
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9807 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9808 "After you've pushed a bad change to another repository, you <emphasis>could</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9809 "emphasis> still use <command role=\"hg-cmd\">hg rollback</command> to make "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9810 "your local copy of the change disappear, but it won't have the consequences "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9811 "you want. The change will still be present in the remote repository, so it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9812 "will reappear in your local repository the next time you pull."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9813 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9814
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9815 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9816 #: ../en/ch08-undo.xml:633
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9817 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9818 "If a situation like this arises, and you know which repositories your bad "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9819 "change has propagated into, you can <emphasis>try</emphasis> to get rid of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9820 "the changeefrom <emphasis>every</emphasis> one of those repositories. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9821 "is, of course, not a satisfactory solution: if you miss even a single "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9822 "repository while you're expunging, the change is still <quote>in the wild</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9823 "quote>, and could propagate further."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9824 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9825
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9826 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9827 #: ../en/ch08-undo.xml:641
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9828 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9829 "If you've committed one or more changes <emphasis>after</emphasis> the change "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9830 "that you'd like to see disappear, your options are further reduced. Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9831 "doesn't provide a way to <quote>punch a hole</quote> in history, leaving "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9832 "changesets intact."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9833 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9834
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9835 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9836 #: ../en/ch08-undo.xml:647
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9837 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9838 "XXX This needs filling out. The <literal>hg-replay</literal> script in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9839 "<literal>examples</literal> directory works, but doesn't handle merge "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9840 "changesets. Kind of an important omission."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9841 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9842
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9843 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9844 #: ../en/ch08-undo.xml:653
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9845 msgid "Protect yourself from <quote>escaped</quote> changes"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9846 msgstr "使用<quote>校验</quote>修改来保护你自己"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9847
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9848 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9849 #: ../en/ch08-undo.xml:656
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9850 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9851 "If you've committed some changes to your local repository and they've been "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9852 "pushed or pulled somewhere else, this isn't necessarily a disaster. You can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9853 "protect yourself ahead of time against some classes of bad changeset. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9854 "is particularly easy if your team usually pulls changes from a central "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9855 "repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9856 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9857
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9858 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9859 #: ../en/ch08-undo.xml:663
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9860 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9861 "By configuring some hooks on that repository to validate incoming changesets "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9862 "(see chapter <xref linkend=\"chap:hook\"/>), you can automatically prevent "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9863 "some kinds of bad changeset from being pushed to the central repository at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9864 "all. With such a configuration in place, some kinds of bad changeset will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9865 "naturally tend to <quote>die out</quote> because they can't propagate into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9866 "the central repository. Better yet, this happens without any need for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9867 "explicit intervention."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9868 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9869
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9870 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9871 #: ../en/ch08-undo.xml:673
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9872 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9873 "For instance, an incoming change hook that verifies that a changeset will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9874 "actually compile can prevent people from inadvertantly <quote>breaking the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9875 "build</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9876 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9877
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9878 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9879 #: ../en/ch08-undo.xml:680
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9880 msgid "Finding the source of a bug"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
9881 msgstr "查找问题的根源"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9882
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9883 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9884 #: ../en/ch08-undo.xml:682
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9885 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9886 "While it's all very well to be able to back out a changeset that introduced a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9887 "bug, this requires that you know which changeset to back out. Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9888 "provides an invaluable command, called <command role=\"hg-cmd\">hg bisect</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9889 "command>, that helps you to automate this process and accomplish it very "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9890 "efficiently."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9891 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9892
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9893 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9894 #: ../en/ch08-undo.xml:689
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9895 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9896 "The idea behind the <command role=\"hg-cmd\">hg bisect</command> command is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9897 "that a changeset has introduced some change of behaviour that you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9898 "identify with a simple binary test. You don't know which piece of code "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9899 "introduced the change, but you know how to test for the presence of the bug. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9900 "The <command role=\"hg-cmd\">hg bisect</command> command uses your test to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9901 "direct its search for the changeset that introduced the code that caused the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9902 "bug."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9903 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9904
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9905 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9906 #: ../en/ch08-undo.xml:698
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9907 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9908 "Here are a few scenarios to help you understand how you might apply this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9909 "command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9910 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9911
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9912 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9913 #: ../en/ch08-undo.xml:701
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9914 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9915 "The most recent version of your software has a bug that you remember wasn't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9916 "present a few weeks ago, but you don't know when it was introduced. Here, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9917 "your binary test checks for the presence of that bug."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9918 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9919
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9920 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9921 #: ../en/ch08-undo.xml:706
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9922 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9923 "You fixed a bug in a rush, and now it's time to close the entry in your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9924 "team's bug database. The bug database requires a changeset ID when you close "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9925 "an entry, but you don't remember which changeset you fixed the bug in. Once "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9926 "again, your binary test checks for the presence of the bug."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9927 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9928
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9929 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9930 #: ../en/ch08-undo.xml:713
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9931 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9932 "Your software works correctly, but runs 15% slower than the last time you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9933 "measured it. You want to know which changeset introduced the performance "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9934 "regression. In this case, your binary test measures the performance of your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9935 "software, to see whether it's <quote>fast</quote> or <quote>slow</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9936 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9937
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9938 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9939 #: ../en/ch08-undo.xml:720
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9940 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9941 "The sizes of the components of your project that you ship exploded recently, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9942 "and you suspect that something changed in the way you build your project."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9943 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9944
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9945 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9946 #: ../en/ch08-undo.xml:725
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9947 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9948 "From these examples, it should be clear that the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9949 "bisect</command> command is not useful only for finding the sources of bugs. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9950 "You can use it to find any <quote>emergent property</quote> of a repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9951 "(anything that you can't find from a simple text search of the files in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9952 "tree) for which you can write a binary test."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9953 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9954
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9955 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9956 #: ../en/ch08-undo.xml:732
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9957 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9958 "We'll introduce a little bit of terminology here, just to make it clear which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9959 "parts of the search process are your responsibility, and which are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9960 "Mercurial's. A <emphasis>test</emphasis> is something that <emphasis>you</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9961 "emphasis> run when <command role=\"hg-cmd\">hg bisect</command> chooses a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9962 "changeset. A <emphasis>probe</emphasis> is what <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9963 "bisect</command> runs to tell whether a revision is good. Finally, we'll use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9964 "the word <quote>bisect</quote>, as both a noun and a verb, to stand in for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9965 "the phrase <quote>search using the <command role=\"hg-cmd\">hg bisect</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9966 "command> command</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9967 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9968
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9969 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9970 #: ../en/ch08-undo.xml:745
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9971 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9972 "One simple way to automate the searching process would be simply to probe "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9973 "every changeset. However, this scales poorly. If it took ten minutes to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9974 "test a single changeset, and you had 10,000 changesets in your repository, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9975 "the exhaustive approach would take on average 35 <emphasis>days</emphasis> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9976 "find the changeset that introduced a bug. Even if you knew that the bug was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9977 "introduced by one of the last 500 changesets, and limited your search to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9978 "those, you'd still be looking at over 40 hours to find the changeset that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9979 "introduced your bug."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9980 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9981
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9982 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9983 #: ../en/ch08-undo.xml:755
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9984 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9985 "What the <command role=\"hg-cmd\">hg bisect</command> command does is use its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9986 "knowledge of the <quote>shape</quote> of your project's revision history to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9987 "perform a search in time proportional to the <emphasis>logarithm</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9988 "of the number of changesets to check (the kind of search it performs is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9989 "called a dichotomic search). With this approach, searching through 10,000 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9990 "changesets will take less than three hours, even at ten minutes per test (the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9991 "search will require about 14 tests). Limit your search to the last hundred "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9992 "changesets, and it will take only about an hour (roughly seven tests)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9993 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9994
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9995 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
9996 #: ../en/ch08-undo.xml:766
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9997 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9998 "The <command role=\"hg-cmd\">hg bisect</command> command is aware of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
9999 "<quote>branchy</quote> nature of a Mercurial project's revision history, so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10000 "it has no problems dealing with branches, merges, or multiple heads in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10001 "repository. It can prune entire branches of history with a single probe, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10002 "which is how it operates so efficiently."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10003 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10004
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10005 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10006 #: ../en/ch08-undo.xml:774
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10007 msgid "Using the <command role=\"hg-cmd\">hg bisect</command> command"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10008 msgstr "使用命令 <command role=\"hg-cmd\">hg bisect</command>"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10009
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10010 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10011 #: ../en/ch08-undo.xml:777
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10012 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10013 "Here's an example of <command role=\"hg-cmd\">hg bisect</command> in action."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10014 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10015
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10016 #. type: Content of: <book><chapter><sect1><sect2><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10017 #: ../en/ch08-undo.xml:781
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10018 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10019 "In versions 0.9.5 and earlier of Mercurial, <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10020 "bisect</command> was not a core command: it was distributed with Mercurial as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10021 "an extension. This section describes the built-in command, not the old "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10022 "extension."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10023 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10024
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10025 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10026 #: ../en/ch08-undo.xml:788
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10027 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10028 "Now let's create a repository, so that we can try out the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10029 "cmd\">hg bisect</command> command in isolation."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10030 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10031
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10032 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10033 #: ../en/ch08-undo.xml:794
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10034 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10035 "We'll simulate a project that has a bug in it in a simple-minded way: create "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10036 "trivial changes in a loop, and nominate one specific change that will have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10037 "the <quote>bug</quote>. This loop creates 35 changesets, each adding a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10038 "single file to the repository. We'll represent our <quote>bug</quote> with a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10039 "file that contains the text <quote>i have a gub</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10040 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10041
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10042 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10043 #: ../en/ch08-undo.xml:804
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10044 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10045 "The next thing that we'd like to do is figure out how to use the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10046 "role=\"hg-cmd\">hg bisect</command> command. We can use Mercurial's normal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10047 "built-in help mechanism for this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10048 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10049
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10050 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10051 #: ../en/ch08-undo.xml:811
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10052 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10053 "The <command role=\"hg-cmd\">hg bisect</command> command works in steps. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10054 "Each step proceeds as follows."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10055 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10056
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10057 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10058 #: ../en/ch08-undo.xml:814
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10059 msgid "You run your binary test."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10060 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10061
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10062 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10063 #: ../en/ch08-undo.xml:816
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10064 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10065 "If the test succeeded, you tell <command role=\"hg-cmd\">hg bisect</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10066 "by running the <command role=\"hg-cmd\">hg bisect good</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10067 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10068
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10069 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10070 #: ../en/ch08-undo.xml:821
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10071 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10072 "If it failed, run the <command role=\"hg-cmd\">hg bisect bad</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10073 "command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10074 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10075
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10076 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10077 #: ../en/ch08-undo.xml:825
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10078 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10079 "The command uses your information to decide which changeset to test next."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10080 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10081
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10082 #. type: Content of: <book><chapter><sect1><sect2><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10083 #: ../en/ch08-undo.xml:828
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10084 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10085 "It updates the working directory to that changeset, and the process begins "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10086 "again."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10087 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10088
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10089 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10090 #: ../en/ch08-undo.xml:831
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10091 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10092 "The process ends when <command role=\"hg-cmd\">hg bisect</command> identifies "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10093 "a unique changeset that marks the point where your test transitioned from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10094 "<quote>succeeding</quote> to <quote>failing</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10095 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10096
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10097 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10098 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10099 #: ../en/ch08-undo.xml:836
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10100 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10101 "To start the search, we must run the <command role=\"hg-cmd\">hg bisect --"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10102 "reset</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10103 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10104
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10105 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10106 #: ../en/ch08-undo.xml:841
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10107 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10108 "In our case, the binary test we use is simple: we check to see if any file in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10109 "the repository contains the string <quote>i have a gub</quote>. If it does, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10110 "this changeset contains the change that <quote>caused the bug</quote>. By "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10111 "convention, a changeset that has the property we're searching for is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10112 "<quote>bad</quote>, while one that doesn't is <quote>good</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10113 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10114
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10115 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10116 #: ../en/ch08-undo.xml:849
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10117 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10118 "Most of the time, the revision to which the working directory is synced "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10119 "(usually the tip) already exhibits the problem introduced by the buggy "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10120 "change, so we'll mark it as <quote>bad</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10121 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10122
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10123 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10124 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10125 #: ../en/ch08-undo.xml:856
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10126 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10127 "Our next task is to nominate a changeset that we know <emphasis>doesn't</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10128 "emphasis> have the bug; the <command role=\"hg-cmd\">hg bisect</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10129 "command will <quote>bracket</quote> its search between the first pair of good "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10130 "and bad changesets. In our case, we know that revision 10 didn't have the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10131 "bug. (I'll have more words about choosing the first <quote>good</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10132 "changeset later.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10133 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10134
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10135 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10136 #: ../en/ch08-undo.xml:866
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10137 msgid "Notice that this command printed some output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10138 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10139
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10140 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10141 #: ../en/ch08-undo.xml:868
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10142 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10143 "It told us how many changesets it must consider before it can identify the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10144 "one that introduced the bug, and how many tests that will require."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10145 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10146
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10147 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10148 #: ../en/ch08-undo.xml:872
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10149 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10150 "It updated the working directory to the next changeset to test, and told us "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10151 "which changeset it's testing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10152 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10153
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10154 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10155 #: ../en/ch08-undo.xml:877
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10156 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10157 "We now run our test in the working directory. We use the <command>grep</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10158 "command> command to see if our <quote>bad</quote> file is present in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10159 "working directory. If it is, this revision is bad; if not, this revision is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10160 "good. &interaction.bisect.search.step1;"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10161 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10162
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10163 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10164 #: ../en/ch08-undo.xml:883
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10165 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10166 "This test looks like a perfect candidate for automation, so let's turn it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10167 "into a shell function."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10168 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10169
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10170 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10171 #: ../en/ch08-undo.xml:887
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10172 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10173 "We can now run an entire test step with a single command, <literal>mytest</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10174 "literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10175 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10176
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10177 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10178 #: ../en/ch08-undo.xml:892
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10179 msgid "A few more invocations of our canned test step command, and we're done."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10180 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10181
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10182 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10183 #: ../en/ch08-undo.xml:897
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10184 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10185 "Even though we had 40 changesets to search through, the <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10186 "\">hg bisect</command> command let us find the changeset that introduced our "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10187 "<quote>bug</quote> with only five tests. Because the number of tests that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10188 "the <command role=\"hg-cmd\">hg bisect</command> command performs grows "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10189 "logarithmically with the number of changesets to search, the advantage that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10190 "it has over the <quote>brute force</quote> search approach increases with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10191 "every changeset you add."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10192 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10193
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10194 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10195 #: ../en/ch08-undo.xml:908
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10196 msgid "Cleaning up after your search"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10197 msgstr "搜索后的清理"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10198
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10199 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10200 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10201 #: ../en/ch08-undo.xml:910
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10202 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10203 "When you're finished using the <command role=\"hg-cmd\">hg bisect</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10204 "command in a repository, you can use the <command role=\"hg-cmd\">hg bisect "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10205 "reset</command> command to drop the information it was using to drive your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10206 "search. The command doesn't use much space, so it doesn't matter if you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10207 "forget to run this command. However, <command role=\"hg-cmd\">hg bisect</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10208 "command> won't let you start a new search in that repository until you do a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10209 "<command role=\"hg-cmd\">hg bisect reset</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10210 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10211
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10212 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10213 #: ../en/ch08-undo.xml:925
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10214 msgid "Tips for finding bugs effectively"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10215 msgstr "有效查找问题的技巧"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10216
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10217 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10218 #: ../en/ch08-undo.xml:928
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10219 msgid "Give consistent input"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10220 msgstr "给出一致的输入"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10221
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10222 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10223 #: ../en/ch08-undo.xml:930
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10224 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10225 "The <command role=\"hg-cmd\">hg bisect</command> command requires that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10226 "correctly report the result of every test you perform. If you tell it that a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10227 "test failed when it really succeeded, it <emphasis>might</emphasis> be able "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10228 "to detect the inconsistency. If it can identify an inconsistency in your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10229 "reports, it will tell you that a particular changeset is both good and bad. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10230 "However, it can't do this perfectly; it's about as likely to report the wrong "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10231 "changeset as the source of the bug."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10232 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10233
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10234 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10235 #: ../en/ch08-undo.xml:942
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10236 msgid "Automate as much as possible"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10237 msgstr "尽量自动"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10238
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10239 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10240 #: ../en/ch08-undo.xml:944
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10241 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10242 "When I started using the <command role=\"hg-cmd\">hg bisect</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10243 "command, I tried a few times to run my tests by hand, on the command line. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10244 "This is an approach that I, at least, am not suited to. After a few tries, I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10245 "found that I was making enough mistakes that I was having to restart my "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10246 "searches several times before finally getting correct results."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10247 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10248
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10249 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10250 #: ../en/ch08-undo.xml:952
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10251 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10252 "My initial problems with driving the <command role=\"hg-cmd\">hg bisect</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10253 "command> command by hand occurred even with simple searches on small "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10254 "repositories; if the problem you're looking for is more subtle, or the number "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10255 "of tests that <command role=\"hg-cmd\">hg bisect</command> must perform "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10256 "increases, the likelihood of operator error ruining the search is much "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10257 "higher. Once I started automating my tests, I had much better results."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10258 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10259
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10260 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10261 #: ../en/ch08-undo.xml:961
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10262 msgid "The key to automated testing is twofold:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10263 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10264
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10265 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10266 #: ../en/ch08-undo.xml:963
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10267 msgid "always test for the same symptom, and"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10268 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10269
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10270 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10271 #: ../en/ch08-undo.xml:965
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10272 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10273 "always feed consistent input to the <command role=\"hg-cmd\">hg bisect</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10274 "command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10275 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10276
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10277 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10278 #: ../en/ch08-undo.xml:968
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10279 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10280 "In my tutorial example above, the <command>grep</command> command tests for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10281 "the symptom, and the <literal>if</literal> statement takes the result of this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10282 "check and ensures that we always feed the same input to the <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10283 "\"hg-cmd\">hg bisect</command> command. The <literal>mytest</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10284 "function marries these together in a reproducible way, so that every test is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10285 "uniform and consistent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10286 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10287
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10288 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10289 #: ../en/ch08-undo.xml:978
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10290 msgid "Check your results"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10291 msgstr "检查你的结果"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10292
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10293 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10294 #: ../en/ch08-undo.xml:980
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10295 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10296 "Because the output of a <command role=\"hg-cmd\">hg bisect</command> search "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10297 "is only as good as the input you give it, don't take the changeset it reports "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10298 "as the absolute truth. A simple way to cross-check its report is to manually "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10299 "run your test at each of the following changesets:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10300 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10301
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10302 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10303 #: ../en/ch08-undo.xml:986
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10304 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10305 "The changeset that it reports as the first bad revision. Your test should "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10306 "still report this as bad."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10307 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10308
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10309 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10310 #: ../en/ch08-undo.xml:990
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10311 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10312 "The parent of that changeset (either parent, if it's a merge). Your test "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10313 "should report this changeset as good."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10314 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10315
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10316 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10317 #: ../en/ch08-undo.xml:994
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10318 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10319 "A child of that changeset. Your test should report this changeset as bad."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10320 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10321
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10322 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10323 #: ../en/ch08-undo.xml:1000
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10324 msgid "Beware interference between bugs"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10325 msgstr "谨防问题之间的冲突"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10326
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10327 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10328 #: ../en/ch08-undo.xml:1002
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10329 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10330 "It's possible that your search for one bug could be disrupted by the presence "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10331 "of another. For example, let's say your software crashes at revision 100, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10332 "and worked correctly at revision 50. Unknown to you, someone else introduced "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10333 "a different crashing bug at revision 60, and fixed it at revision 80. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10334 "could distort your results in one of several ways."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10335 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10336
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10337 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10338 #: ../en/ch08-undo.xml:1010
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10339 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10340 "It is possible that this other bug completely <quote>masks</quote> yours, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10341 "which is to say that it occurs before your bug has a chance to manifest "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10342 "itself. If you can't avoid that other bug (for example, it prevents your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10343 "project from building), and so can't tell whether your bug is present in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10344 "particular changeset, the <command role=\"hg-cmd\">hg bisect</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10345 "command cannot help you directly. Instead, you can mark a changeset as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10346 "untested by running <command role=\"hg-cmd\">hg bisect --skip</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10347 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10348
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10349 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10350 #: ../en/ch08-undo.xml:1020
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10351 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10352 "A different problem could arise if your test for a bug's presence is not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10353 "specific enough. If you check for <quote>my program crashes</quote>, then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10354 "both your crashing bug and an unrelated crashing bug that masks it will look "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10355 "like the same thing, and mislead <command role=\"hg-cmd\">hg bisect</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10356 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10357
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10358 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10359 #: ../en/ch08-undo.xml:1027
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10360 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10361 "Another useful situation in which to use <command role=\"hg-cmd\">hg bisect --"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10362 "skip</command> is if you can't test a revision because your project was in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10363 "broken and hence untestable state at that revision, perhaps because someone "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10364 "checked in a change that prevented the project from building."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10365 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10366
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10367 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10368 #: ../en/ch08-undo.xml:1036
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10369 msgid "Bracket your search lazily"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10370 msgstr "减少你的查找工作"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10371
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10372 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10373 #: ../en/ch08-undo.xml:1038
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10374 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10375 "Choosing the first <quote>good</quote> and <quote>bad</quote> changesets that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10376 "will mark the end points of your search is often easy, but it bears a little "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10377 "discussion nevertheless. From the perspective of <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10378 "bisect</command>, the <quote>newest</quote> changeset is conventionally "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10379 "<quote>bad</quote>, and the older changeset is <quote>good</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10380 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10381
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10382 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10383 #: ../en/ch08-undo.xml:1046
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10384 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10385 "If you're having trouble remembering when a suitable <quote>good</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10386 "change was, so that you can tell <command role=\"hg-cmd\">hg bisect</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10387 "command>, you could do worse than testing changesets at random. Just "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10388 "remember to eliminate contenders that can't possibly exhibit the bug (perhaps "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10389 "because the feature with the bug isn't present yet) and those where another "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10390 "problem masks the bug (as I discussed above)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10391 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10392
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10393 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10394 #: ../en/ch08-undo.xml:1055
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10395 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10396 "Even if you end up <quote>early</quote> by thousands of changesets or months "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10397 "of history, you will only add a handful of tests to the total number that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10398 "<command role=\"hg-cmd\">hg bisect</command> must perform, thanks to its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10399 "logarithmic behaviour."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10400 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10401
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10402 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10403 #: ../en/ch09-hook.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10404 msgid "Handling repository events with hooks"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10405 msgstr "使用钩子处理版本库事件"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10406
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10407 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10408 #: ../en/ch09-hook.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10409 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10410 "Mercurial offers a powerful mechanism to let you perform automated actions in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10411 "response to events that occur in a repository. In some cases, you can even "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10412 "control Mercurial's response to those events."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10413 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10414
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10415 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10416 #: ../en/ch09-hook.xml:12
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10417 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10418 "The name Mercurial uses for one of these actions is a <emphasis>hook</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10419 "emphasis>. Hooks are called <quote>triggers</quote> in some revision control "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10420 "systems, but the two names refer to the same idea."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10421 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10422
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10423 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10424 #: ../en/ch09-hook.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10425 msgid "An overview of hooks in Mercurial"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10426 msgstr "Mercurial 钩子概述"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10427
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10428 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10429 #: ../en/ch09-hook.xml:20
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10430 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10431 "Here is a brief list of the hooks that Mercurial supports. We will revisit "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10432 "each of these hooks in more detail later, in <xref linkend=\"sec:hook:ref\"/>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10433 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10434
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10435 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10436 #: ../en/ch09-hook.xml:25
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10437 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10438 "<literal role=\"hook\">changegroup</literal>: This is run after a group of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10439 "changesets has been brought into the repository from elsewhere."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10440 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10441
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10442 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10443 #: ../en/ch09-hook.xml:29
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10444 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10445 "<literal role=\"hook\">commit</literal>: This is run after a new changeset "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10446 "has been created in the local repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10447 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10448
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10449 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10450 #: ../en/ch09-hook.xml:33
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10451 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10452 "<literal role=\"hook\">incoming</literal>: This is run once for each new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10453 "changeset that is brought into the repository from elsewhere. Notice the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10454 "difference from <literal role=\"hook\">changegroup</literal>, which is run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10455 "once per <emphasis>group</emphasis> of changesets brought in."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10456 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10457
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10458 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10459 #: ../en/ch09-hook.xml:40
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10460 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10461 "<literal role=\"hook\">outgoing</literal>: This is run after a group of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10462 "changesets has been transmitted from this repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10463 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10464
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10465 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10466 #: ../en/ch09-hook.xml:44
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10467 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10468 "<literal role=\"hook\">prechangegroup</literal>: This is run before starting "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10469 "to bring a group of changesets into the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10470 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10471
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10472 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10473 #: ../en/ch09-hook.xml:49
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10474 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10475 "<literal role=\"hook\">precommit</literal>: Controlling. This is run before "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10476 "starting a commit."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10477 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10478
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10479 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10480 #: ../en/ch09-hook.xml:53
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10481 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10482 "<literal role=\"hook\">preoutgoing</literal>: Controlling. This is run before "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10483 "starting to transmit a group of changesets from this repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10484 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10485
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10486 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10487 #: ../en/ch09-hook.xml:58
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10488 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10489 "<literal role=\"hook\">pretag</literal>: Controlling. This is run before "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10490 "creating a tag."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10491 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10492
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10493 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10494 #: ../en/ch09-hook.xml:62
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10495 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10496 "<literal role=\"hook\">pretxnchangegroup</literal>: Controlling. This is run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10497 "after a group of changesets has been brought into the local repository from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10498 "another, but before the transaction completes that will make the changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10499 "permanent in the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10500 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10501
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10502 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10503 #: ../en/ch09-hook.xml:70
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10504 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10505 "<literal role=\"hook\">pretxncommit</literal>: Controlling. This is run after "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10506 "a new changeset has been created in the local repository, but before the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10507 "transaction completes that will make it permanent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10508 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10509
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10510 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10511 #: ../en/ch09-hook.xml:76
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10512 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10513 "<literal role=\"hook\">preupdate</literal>: Controlling. This is run before "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10514 "starting an update or merge of the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10515 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10516
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10517 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10518 #: ../en/ch09-hook.xml:81
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10519 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10520 "<literal role=\"hook\">tag</literal>: This is run after a tag is created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10521 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10522
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10523 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10524 #: ../en/ch09-hook.xml:85
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10525 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10526 "<literal role=\"hook\">update</literal>: This is run after an update or merge "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10527 "of the working directory has finished."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10528 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10529
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10530 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10531 #: ../en/ch09-hook.xml:90
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10532 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10533 "Each of the hooks whose description begins with the word <quote>Controlling</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10534 "quote> has the ability to determine whether an activity can proceed. If the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10535 "hook succeeds, the activity may proceed; if it fails, the activity is either "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10536 "not permitted or undone, depending on the hook."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10537 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10538
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10539 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10540 #: ../en/ch09-hook.xml:99
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10541 msgid "Hooks and security"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10542 msgstr "钩子与安全性"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10543
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10544 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10545 #: ../en/ch09-hook.xml:102
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10546 msgid "Hooks are run with your privileges"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10547 msgstr "钩子以你的特权执行"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10548
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10549 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10550 #: ../en/ch09-hook.xml:104
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10551 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10552 "When you run a Mercurial command in a repository, and the command causes a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10553 "hook to run, that hook runs on <emphasis>your</emphasis> system, under "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10554 "<emphasis>your</emphasis> user account, with <emphasis>your</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10555 "privilege level. Since hooks are arbitrary pieces of executable code, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10556 "should treat them with an appropriate level of suspicion. Do not install a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10557 "hook unless you are confident that you know who created it and what it does."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10558 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10559
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10560 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10561 #: ../en/ch09-hook.xml:115
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10562 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10563 "In some cases, you may be exposed to hooks that you did not install "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10564 "yourself. If you work with Mercurial on an unfamiliar system, Mercurial will "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10565 "run hooks defined in that system's global <filename role=\"special\">~/.hgrc</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10566 "filename> file."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10567 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10568
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10569 #. type: Content of: <book><chapter><sect1><sect2><para>
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10570 #: ../en/ch09-hook.xml:122
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10571 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10572 "If you are working with a repository owned by another user, Mercurial can run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10573 "hooks defined in that user's repository, but it will still run them as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10574 "<quote>you</quote>. For example, if you <command role=\"hg-cmd\">hg pull</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10575 "command> from that repository, and its <filename role=\"special\">.hg/hgrc</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10576 "filename> defines a local <literal role=\"hook\">outgoing</literal> hook, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10577 "that hook will run under your user account, even though you don't own that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10578 "repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10579 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10580
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10581 #. type: Content of: <book><chapter><sect1><sect2><note><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10582 #: ../en/ch09-hook.xml:134
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10583 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10584 "This only applies if you are pulling from a repository on a local or network "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10585 "filesystem. If you're pulling over http or ssh, any <literal role=\"hook"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10586 "\">outgoing</literal> hook will run under whatever account is executing the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10587 "server process, on the server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10588 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10589
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10590 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10591 #: ../en/ch09-hook.xml:142
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10592 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10593 "XXX To see what hooks are defined in a repository, use the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10594 "cmd\">hg config hooks</command> command. If you are working in one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10595 "repository, but talking to another that you do not own (e.g. using <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10596 "role=\"hg-cmd\">hg pull</command> or <command role=\"hg-cmd\">hg incoming</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10597 "command>), remember that it is the other repository's hooks you should be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10598 "checking, not your own."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10599 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10600
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10601 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10602 #: ../en/ch09-hook.xml:153
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10603 msgid "Hooks do not propagate"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10604 msgstr "钩子不会传播"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10605
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10606 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10607 #: ../en/ch09-hook.xml:155
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10608 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10609 "In Mercurial, hooks are not revision controlled, and do not propagate when "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10610 "you clone, or pull from, a repository. The reason for this is simple: a hook "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10611 "is a completely arbitrary piece of executable code. It runs under your user "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10612 "identity, with your privilege level, on your machine."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10613 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10614
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10615 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10616 #: ../en/ch09-hook.xml:162
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10617 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10618 "It would be extremely reckless for any distributed revision control system to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10619 "implement revision-controlled hooks, as this would offer an easily "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10620 "exploitable way to subvert the accounts of users of the revision control "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10621 "system."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10622 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10623
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10624 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10625 #: ../en/ch09-hook.xml:168
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10626 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10627 "Since Mercurial does not propagate hooks, if you are collaborating with other "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10628 "people on a common project, you should not assume that they are using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10629 "same Mercurial hooks as you are, or that theirs are correctly configured. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10630 "You should document the hooks you expect people to use."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10631 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10632
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10633 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10634 #: ../en/ch09-hook.xml:175
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10635 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10636 "In a corporate intranet, this is somewhat easier to control, as you can for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10637 "example provide a <quote>standard</quote> installation of Mercurial on an NFS "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10638 "filesystem, and use a site-wide <filename role=\"special\">~/.hgrc</filename> "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10639 "file to define hooks that all users will see. However, this too has its "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10640 "limits; see below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10641 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10642
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10643 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10644 #: ../en/ch09-hook.xml:184
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10645 msgid "Hooks can be overridden"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10646 msgstr "钩子可以被覆盖"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10647
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10648 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10649 #: ../en/ch09-hook.xml:186
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10650 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10651 "Mercurial allows you to override a hook definition by redefining the hook. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10652 "You can disable it by setting its value to the empty string, or change its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10653 "behaviour as you wish."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10654 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10655
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10656 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10657 #: ../en/ch09-hook.xml:191
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10658 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10659 "If you deploy a system- or site-wide <filename role=\"special\">~/.hgrc</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10660 "filename> file that defines some hooks, you should thus understand that your "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10661 "users can disable or override those hooks."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10662 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10663
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10664 #. type: Content of: <book><chapter><sect1><sect2><title>
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10665 #: ../en/ch09-hook.xml:199
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10666 msgid "Ensuring that critical hooks are run"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10667 msgstr "确保关键钩子的执行"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10668
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10669 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10670 #: ../en/ch09-hook.xml:201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10671 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10672 "Sometimes you may want to enforce a policy that you do not want others to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10673 "able to work around. For example, you may have a requirement that every "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10674 "changeset must pass a rigorous set of tests. Defining this requirement via a "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10675 "hook in a site-wide <filename role=\"special\">~/.hgrc</filename> won't work "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10676 "for remote users on laptops, and of course local users can subvert it at will "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10677 "by overriding the hook."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10678 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10679
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10680 #. type: Content of: <book><chapter><sect1><sect2><para>
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10681 #: ../en/ch09-hook.xml:210
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10682 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10683 "Instead, you can set up your policies for use of Mercurial so that people are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10684 "expected to propagate changes through a well-known <quote>canonical</quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10685 "server that you have locked down and configured appropriately."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10686 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10687
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10688 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10689 #: ../en/ch09-hook.xml:216
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10690 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10691 "One way to do this is via a combination of social engineering and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10692 "technology. Set up a restricted-access account; users can push changes over "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10693 "the network to repositories managed by this account, but they cannot log into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10694 "the account and run normal shell commands. In this scenario, a user can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10695 "commit a changeset that contains any old garbage they want."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10696 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10697
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10698 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10699 #: ../en/ch09-hook.xml:225
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10700 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10701 "When someone pushes a changeset to the server that everyone pulls from, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10702 "server will test the changeset before it accepts it as permanent, and reject "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10703 "it if it fails to pass the test suite. If people only pull changes from this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10704 "filtering server, it will serve to ensure that all changes that people pull "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10705 "have been automatically vetted."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10706 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10707
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10708 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10709 #: ../en/ch09-hook.xml:236
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10710 msgid "Care with <literal>pretxn</literal> hooks in a shared-access repository"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10711 msgstr "在共享版本库中注意 <literal>pretxn</literal> 钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10712
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10713 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10714 #: ../en/ch09-hook.xml:239
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10715 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10716 "If you want to use hooks to do some automated work in a repository that a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10717 "number of people have shared access to, you need to be careful in how you do "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10718 "this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10719 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10720
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10721 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10722 #: ../en/ch09-hook.xml:244
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10723 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10724 "Mercurial only locks a repository when it is writing to the repository, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10725 "only the parts of Mercurial that write to the repository pay attention to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10726 "locks. Write locks are necessary to prevent multiple simultaneous writers "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10727 "from scribbling on each other's work, corrupting the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10728 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10729
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10730 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10731 #: ../en/ch09-hook.xml:251
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10732 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10733 "Because Mercurial is careful with the order in which it reads and writes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10734 "data, it does not need to acquire a lock when it wants to read data from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10735 "repository. The parts of Mercurial that read from the repository never pay "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10736 "attention to locks. This lockless reading scheme greatly increases "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10737 "performance and concurrency."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10738 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10739
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10740 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10741 #: ../en/ch09-hook.xml:259
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10742 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10743 "With great performance comes a trade-off, though, one which has the potential "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10744 "to cause you trouble unless you're aware of it. To describe this requires a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10745 "little detail about how Mercurial adds changesets to a repository and reads "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10746 "those changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10747 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10748
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10749 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10750 #: ../en/ch09-hook.xml:266
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10751 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10752 "When Mercurial <emphasis>writes</emphasis> metadata, it writes it straight "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10753 "into the destination file. It writes file data first, then manifest data "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10754 "(which contains pointers to the new file data), then changelog data (which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10755 "contains pointers to the new manifest data). Before the first write to each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10756 "file, it stores a record of where the end of the file was in its transaction "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10757 "log. If the transaction must be rolled back, Mercurial simply truncates each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10758 "file back to the size it was before the transaction began."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10759 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10760
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10761 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10762 #: ../en/ch09-hook.xml:277
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10763 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10764 "When Mercurial <emphasis>reads</emphasis> metadata, it reads the changelog "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10765 "first, then everything else. Since a reader will only access parts of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10766 "manifest or file metadata that it can see in the changelog, it can never see "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10767 "partially written data."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10768 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10769
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10770 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10771 #: ../en/ch09-hook.xml:283
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10772 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10773 "Some controlling hooks (<literal role=\"hook\">pretxncommit</literal> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10774 "<literal role=\"hook\">pretxnchangegroup</literal>) run when a transaction is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10775 "almost complete. All of the metadata has been written, but Mercurial can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10776 "still roll the transaction back and cause the newly-written data to disappear."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10777 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10778
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10779 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10780 #: ../en/ch09-hook.xml:291
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10781 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10782 "If one of these hooks runs for long, it opens a window of time during which a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10783 "reader can see the metadata for changesets that are not yet permanent, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10784 "should not be thought of as <quote>really there</quote>. The longer the hook "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10785 "runs, the longer that window is open."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10786 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10787
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10788 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10789 #: ../en/ch09-hook.xml:299
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10790 msgid "The problem illustrated"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10791 msgstr "问题的演示"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10792
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10793 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10794 #: ../en/ch09-hook.xml:301
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10795 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10796 "In principle, a good use for the <literal role=\"hook\">pretxnchangegroup</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10797 "literal> hook would be to automatically build and test incoming changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10798 "before they are accepted into a central repository. This could let you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10799 "guarantee that nobody can push changes to this repository that <quote>break "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10800 "the build</quote>. But if a client can pull changes while they're being "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10801 "tested, the usefulness of the test is zero; an unsuspecting someone can pull "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10802 "untested changes, potentially breaking their build."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10803 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10804
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10805 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10806 #: ../en/ch09-hook.xml:312
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10807 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10808 "The safest technological answer to this challenge is to set up such a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10809 "<quote>gatekeeper</quote> repository as <emphasis>unidirectional</emphasis>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10810 "Let it take changes pushed in from the outside, but do not allow anyone to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10811 "pull changes from it (use the <literal role=\"hook\">preoutgoing</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10812 "hook to lock it down). Configure a <literal role=\"hook\">changegroup</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10813 "literal> hook so that if a build or test succeeds, the hook will push the new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10814 "changes out to another repository that people <emphasis>can</emphasis> pull "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10815 "from."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10816 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10817
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10818 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10819 #: ../en/ch09-hook.xml:324
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10820 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10821 "In practice, putting a centralised bottleneck like this in place is not often "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10822 "a good idea, and transaction visibility has nothing to do with the problem. "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
10823 "As the size of a project—and the time it takes to build and test—grows, you "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
10824 "rapidly run into a wall with this <quote>try before you buy</quote> approach, "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
10825 "where you have more changesets to test than time in which to deal with them. "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
10826 "The inevitable result is frustration on the part of all involved."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10827 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10828
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10829 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10830 #: ../en/ch09-hook.xml:335
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10831 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10832 "An approach that scales better is to get people to build and test before they "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10833 "push, then run automated builds and tests centrally <emphasis>after</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10834 "emphasis> a push, to be sure all is well. The advantage of this approach is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10835 "that it does not impose a limit on the rate at which the repository can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10836 "accept changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10837 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10838
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10839 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10840 #: ../en/ch09-hook.xml:346
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10841 msgid "A short tutorial on using hooks"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10842 msgstr "使用钩子的简短指南"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10843
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10844 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10845 #: ../en/ch09-hook.xml:348
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10846 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10847 "It is easy to write a Mercurial hook. Let's start with a hook that runs when "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10848 "you finish a <command role=\"hg-cmd\">hg commit</command>, and simply prints "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10849 "the hash of the changeset you just created. The hook is called <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10850 "\"hook\">commit</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10851 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10852
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10853 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10854 #: ../en/ch09-hook.xml:355
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10855 msgid "All hooks follow the pattern in this example."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10856 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10857
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10858 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10859 #: ../en/ch09-hook.xml:359
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10860 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10861 "You add an entry to the <literal role=\"rc-hooks\">hooks</literal> section of "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10862 "your <filename role=\"special\">~/.hgrc</filename>. On the left is the name "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10863 "of the event to trigger on; on the right is the action to take. As you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10864 "see, you can run an arbitrary shell command in a hook. Mercurial passes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10865 "extra information to the hook using environment variables (look for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10866 "<envar>HG_NODE</envar> in the example)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10867 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10868
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10869 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10870 #: ../en/ch09-hook.xml:369
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10871 msgid "Performing multiple actions per event"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10872 msgstr "每个事件执行多个操作"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10873
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10874 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10875 #: ../en/ch09-hook.xml:371
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10876 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10877 "Quite often, you will want to define more than one hook for a particular kind "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10878 "of event, as shown below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10879 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10880
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10881 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10882 #: ../en/ch09-hook.xml:376
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10883 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10884 "Mercurial lets you do this by adding an <emphasis>extension</emphasis> to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10885 "end of a hook's name. You extend a hook's name by giving the name of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10886 "hook, followed by a full stop (the <quote><literal>.</literal></quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10887 "character), followed by some more text of your choosing. For example, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10888 "Mercurial will run both <literal>commit.foo</literal> and <literal>commit."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10889 "bar</literal> when the <literal>commit</literal> event occurs."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10890 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10891
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10892 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10893 #: ../en/ch09-hook.xml:387
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10894 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10895 "To give a well-defined order of execution when there are multiple hooks "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10896 "defined for an event, Mercurial sorts hooks by extension, and executes the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10897 "hook commands in this sorted order. In the above example, it will execute "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10898 "<literal>commit.bar</literal> before <literal>commit.foo</literal>, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10899 "<literal>commit</literal> before both."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10900 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10901
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10902 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10903 #: ../en/ch09-hook.xml:396
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10904 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10905 "It is a good idea to use a somewhat descriptive extension when you define a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10906 "new hook. This will help you to remember what the hook was for. If the hook "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10907 "fails, you'll get an error message that contains the hook name and extension, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10908 "so using a descriptive extension could give you an immediate hint as to why "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
10909 "the hook failed (see <xref linkend=\"sec:hook:perm\"/> for an example)."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10910 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10911
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10912 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10913 #: ../en/ch09-hook.xml:407
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10914 msgid "Controlling whether an activity can proceed"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10915 msgstr "控制处理的活动"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10916
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10917 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10918 #: ../en/ch09-hook.xml:409
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10919 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10920 "In our earlier examples, we used the <literal role=\"hook\">commit</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10921 "hook, which is run after a commit has completed. This is one of several "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10922 "Mercurial hooks that run after an activity finishes. Such hooks have no way "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10923 "of influencing the activity itself."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10924 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10925
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10926 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10927 #: ../en/ch09-hook.xml:416
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10928 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10929 "Mercurial defines a number of events that occur before an activity starts; or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10930 "after it starts, but before it finishes. Hooks that trigger on these events "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10931 "have the added ability to choose whether the activity can continue, or will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10932 "abort."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10933 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10934
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10935 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10936 #: ../en/ch09-hook.xml:422
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10937 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10938 "The <literal role=\"hook\">pretxncommit</literal> hook runs after a commit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10939 "has all but completed. In other words, the metadata representing the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10940 "changeset has been written out to disk, but the transaction has not yet been "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10941 "allowed to complete. The <literal role=\"hook\">pretxncommit</literal> hook "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10942 "has the ability to decide whether the transaction can complete, or must be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10943 "rolled back."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10944 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10945
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10946 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10947 #: ../en/ch09-hook.xml:431
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10948 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10949 "If the <literal role=\"hook\">pretxncommit</literal> hook exits with a status "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10950 "code of zero, the transaction is allowed to complete; the commit finishes; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10951 "and the <literal role=\"hook\">commit</literal> hook is run. If the <literal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10952 "role=\"hook\">pretxncommit</literal> hook exits with a non-zero status code, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10953 "the transaction is rolled back; the metadata representing the changeset is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10954 "erased; and the <literal role=\"hook\">commit</literal> hook is not run."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10955 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10956
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10957 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10958 #: ../en/ch09-hook.xml:443
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10959 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10960 "The hook in the example above checks that a commit comment contains a bug "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10961 "ID. If it does, the commit can complete. If not, the commit is rolled back."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10962 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10963
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10964 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10965 #: ../en/ch09-hook.xml:451
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10966 msgid "Writing your own hooks"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10967 msgstr "编写钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10968
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10969 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10970 #: ../en/ch09-hook.xml:453
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10971 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10972 "When you are writing a hook, you might find it useful to run Mercurial either "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10973 "with the <option role=\"hg-opt-global\">-v</option> option, or the <envar "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10974 "role=\"rc-item-ui\">verbose</envar> config item set to <quote>true</quote>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10975 "When you do so, Mercurial will print a message before it calls each hook."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10976 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10977
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10978 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10979 #: ../en/ch09-hook.xml:462
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10980 msgid "Choosing how your hook should run"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
10981 msgstr "选择钩子的执行方式"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10982
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10983 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10984 #: ../en/ch09-hook.xml:464
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10985 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
10986 "You can write a hook either as a normal program—typically a shell script—or "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
10987 "as a Python function that is executed within the Mercurial process."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10988 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10989
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10990 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
10991 #: ../en/ch09-hook.xml:469
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10992 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10993 "Writing a hook as an external program has the advantage that it requires no "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10994 "knowledge of Mercurial's internals. You can call normal Mercurial commands "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10995 "to get any added information you need. The trade-off is that external hooks "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10996 "are slower than in-process hooks."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10997 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10998
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
10999 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11000 #: ../en/ch09-hook.xml:476
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11001 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11002 "An in-process Python hook has complete access to the Mercurial API, and does "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11003 "not <quote>shell out</quote> to another process, so it is inherently faster "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11004 "than an external hook. It is also easier to obtain much of the information "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11005 "that a hook requires by using the Mercurial API than by running Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11006 "commands."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11007 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11008
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11009 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11010 #: ../en/ch09-hook.xml:484
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11011 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11012 "If you are comfortable with Python, or require high performance, writing your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11013 "hooks in Python may be a good choice. However, when you have a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11014 "straightforward hook to write and you don't need to care about performance "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11015 "(probably the majority of hooks), a shell script is perfectly fine."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11016 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11017
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11018 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11019 #: ../en/ch09-hook.xml:493
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11020 msgid "Hook parameters"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11021 msgstr "钩子的参数"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11022
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11023 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11024 #: ../en/ch09-hook.xml:495
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11025 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11026 "Mercurial calls each hook with a set of well-defined parameters. In Python, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11027 "a parameter is passed as a keyword argument to your hook function. For an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11028 "external program, a parameter is passed as an environment variable."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11029 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11030
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11031 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11032 #: ../en/ch09-hook.xml:501
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11033 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11034 "Whether your hook is written in Python or as a shell script, the hook-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11035 "specific parameter names and values will be the same. A boolean parameter "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11036 "will be represented as a boolean value in Python, but as the number 1 (for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11037 "<quote>true</quote>) or 0 (for <quote>false</quote>) as an environment "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11038 "variable for an external hook. If a hook parameter is named <literal>foo</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11039 "literal>, the keyword argument for a Python hook will also be named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11040 "<literal>foo</literal>, while the environment variable for an external hook "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11041 "will be named <literal>HG_FOO</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11042 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11043
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11044 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11045 #: ../en/ch09-hook.xml:515
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11046 msgid "Hook return values and activity control"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11047 msgstr "钩子的返回值与活动控制"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11048
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11049 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11050 #: ../en/ch09-hook.xml:517
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11051 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11052 "A hook that executes successfully must exit with a status of zero if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11053 "external, or return boolean <quote>false</quote> if in-process. Failure is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11054 "indicated with a non-zero exit status from an external hook, or an in-process "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11055 "hook returning boolean <quote>true</quote>. If an in-process hook raises an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11056 "exception, the hook is considered to have failed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11057 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11058
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11059 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11060 #: ../en/ch09-hook.xml:525
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11061 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11062 "For a hook that controls whether an activity can proceed, zero/false means "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11063 "<quote>allow</quote>, while non-zero/true/exception means <quote>deny</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11064 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11065
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11066 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11067 #: ../en/ch09-hook.xml:532
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11068 msgid "Writing an external hook"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11069 msgstr "编写外部钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11070
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11071 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11072 #: ../en/ch09-hook.xml:534
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11073 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11074 "When you define an external hook in your <filename role=\"special\">~/.hgrc</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11075 "filename> and the hook is run, its value is passed to your shell, which "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11076 "interprets it. This means that you can use normal shell constructs in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11077 "body of the hook."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11078 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11079
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11080 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11081 #: ../en/ch09-hook.xml:541
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11082 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11083 "An executable hook is always run with its current directory set to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11084 "repository's root directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11085 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11086
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11087 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11088 #: ../en/ch09-hook.xml:545
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11089 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11090 "Each hook parameter is passed in as an environment variable; the name is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11091 "upper-cased, and prefixed with the string <quote><literal>HG_</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11092 "quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11093 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11094
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11095 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11096 #: ../en/ch09-hook.xml:550
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11097 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11098 "With the exception of hook parameters, Mercurial does not set or modify any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11099 "environment variables when running a hook. This is useful to remember if you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11100 "are writing a site-wide hook that may be run by a number of different users "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11101 "with differing environment variables set. In multi-user situations, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11102 "should not rely on environment variables being set to the values you have in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11103 "your environment when testing the hook."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11104 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11105
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11106 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11107 #: ../en/ch09-hook.xml:561
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11108 msgid "Telling Mercurial to use an in-process hook"
741
a4b71115602d Typo fix
Dongsheng Song <dongsheng.song@gmail.com>
parents: 740
diff changeset
11109 msgstr "让 Mercurial 使用进程内钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11110
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11111 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11112 #: ../en/ch09-hook.xml:563
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11113 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11114 "The <filename role=\"special\">~/.hgrc</filename> syntax for defining an in-"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11115 "process hook is slightly different than for an executable hook. The value of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11116 "the hook must start with the text <quote><literal>python:</literal></quote>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11117 "and continue with the fully-qualified name of a callable object to use as the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11118 "hook's value."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11119 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11120
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11121 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11122 #: ../en/ch09-hook.xml:571
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11123 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11124 "The module in which a hook lives is automatically imported when a hook is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11125 "run. So long as you have the module name and <envar>PYTHONPATH</envar> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11126 "right, it should <quote>just work</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11127 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11128
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11129 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11130 #: ../en/ch09-hook.xml:577
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11131 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11132 "The following <filename role=\"special\">~/.hgrc</filename> example snippet "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11133 "illustrates the syntax and meaning of the notions we just described."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11134 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11135
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11136 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11137 #: ../en/ch09-hook.xml:583
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11138 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11139 "When Mercurial runs the <literal>commit.example</literal> hook, it imports "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11140 "<literal>mymodule.submodule</literal>, looks for the callable object named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11141 "<literal>myhook</literal>, and calls it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11142 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11143
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11144 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11145 #: ../en/ch09-hook.xml:591
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11146 msgid "Writing an in-process hook"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11147 msgstr "编写进程内钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11148
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11149 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11150 #: ../en/ch09-hook.xml:593
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11151 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11152 "The simplest in-process hook does nothing, but illustrates the basic shape of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11153 "the hook API:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11154 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11155
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11156 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11157 #: ../en/ch09-hook.xml:598
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11158 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11159 "The first argument to a Python hook is always a <literal role=\"py-mod-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11160 "mercurial.ui\">ui</literal> object. The second is a repository object; at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11161 "the moment, it is always an instance of <literal role=\"py-mod-mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11162 "localrepo\">localrepository</literal>. Following these two arguments are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11163 "other keyword arguments. Which ones are passed in depends on the hook being "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11164 "called, but a hook can ignore arguments it doesn't care about by dropping "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11165 "them into a keyword argument dict, as with <literal>**kwargs</literal> above."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11166 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11167
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11168 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11169 #: ../en/ch09-hook.xml:613
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11170 msgid "Some hook examples"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11171 msgstr "钩子样例"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11172
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11173 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11174 #: ../en/ch09-hook.xml:616
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11175 msgid "Writing meaningful commit messages"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11176 msgstr "编写有意义的提交日志"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11177
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11178 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11179 #: ../en/ch09-hook.xml:618
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11180 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11181 "It's hard to imagine a useful commit message being very short. The simple "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11182 "<literal role=\"hook\">pretxncommit</literal> hook of the example below will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11183 "prevent you from committing a changeset with a message that is less than ten "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11184 "bytes long."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11185 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11186
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11187 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11188 #: ../en/ch09-hook.xml:628
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11189 msgid "Checking for trailing whitespace"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11190 msgstr "检查行尾空格"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11191
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11192 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11193 #: ../en/ch09-hook.xml:630
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11194 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11195 "An interesting use of a commit-related hook is to help you to write cleaner "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11196 "code. A simple example of <quote>cleaner code</quote> is the dictum that a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11197 "change should not add any new lines of text that contain <quote>trailing "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11198 "whitespace</quote>. Trailing whitespace is a series of space and tab "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11199 "characters at the end of a line of text. In most cases, trailing whitespace "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11200 "is unnecessary, invisible noise, but it is occasionally problematic, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11201 "people often prefer to get rid of it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11202 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11203
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11204 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11205 #: ../en/ch09-hook.xml:641
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11206 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11207 "You can use either the <literal role=\"hook\">precommit</literal> or <literal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11208 "role=\"hook\">pretxncommit</literal> hook to tell whether you have a trailing "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11209 "whitespace problem. If you use the <literal role=\"hook\">precommit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11210 "literal> hook, the hook will not know which files you are committing, so it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11211 "will have to check every modified file in the repository for trailing white "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11212 "space. If you want to commit a change to just the file <filename>foo</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11213 "filename>, but the file <filename>bar</filename> contains trailing "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11214 "whitespace, doing a check in the <literal role=\"hook\">precommit</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11215 "hook will prevent you from committing <filename>foo</filename> due to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11216 "problem with <filename>bar</filename>. This doesn't seem right."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11217 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11218
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11219 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11220 #: ../en/ch09-hook.xml:657
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11221 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11222 "Should you choose the <literal role=\"hook\">pretxncommit</literal> hook, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11223 "check won't occur until just before the transaction for the commit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11224 "completes. This will allow you to check for problems only the exact files "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11225 "that are being committed. However, if you entered the commit message "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11226 "interactively and the hook fails, the transaction will roll back; you'll have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11227 "to re-enter the commit message after you fix the trailing whitespace and run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11228 "<command role=\"hg-cmd\">hg commit</command> again."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11229 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11230
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11231 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11232 #: ../en/ch09-hook.xml:670
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11233 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11234 "In this example, we introduce a simple <literal role=\"hook\">pretxncommit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11235 "literal> hook that checks for trailing whitespace. This hook is short, but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11236 "not very helpful. It exits with an error status if a change adds a line with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11237 "trailing whitespace to any file, but does not print any information that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11238 "might help us to identify the offending file or line. It also has the nice "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11239 "property of not paying attention to unmodified lines; only lines that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11240 "introduce new trailing whitespace cause problems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11241 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11242
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11243 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11244 #: ../en/ch09-hook.xml:681
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11245 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11246 "The above version is much more complex, but also more useful. It parses a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11247 "unified diff to see if any lines add trailing whitespace, and prints the name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11248 "of the file and the line number of each such occurrence. Even better, if the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11249 "change adds trailing whitespace, this hook saves the commit comment and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11250 "prints the name of the save file before exiting and telling Mercurial to roll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11251 "the transaction back, so you can use the <option role=\"hg-opt-commit\">-l "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11252 "filename</option> option to <command role=\"hg-cmd\">hg commit</command> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11253 "reuse the saved commit message once you've corrected the problem."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11254 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11255
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11256 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11257 #: ../en/ch09-hook.xml:695
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11258 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11259 "As a final aside, note in the example above the use of <command>perl</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11260 "command>'s in-place editing feature to get rid of trailing whitespace from a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11261 "file. This is concise and useful enough that I will reproduce it here."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11262 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11263
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11264 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11265 #: ../en/ch09-hook.xml:705
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11266 msgid "Bundled hooks"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11267 msgstr "内置的钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11268
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11269 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11270 #: ../en/ch09-hook.xml:707
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11271 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11272 "Mercurial ships with several bundled hooks. You can find them in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11273 "<filename class=\"directory\">hgext</filename> directory of a Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11274 "source tree. If you are using a Mercurial binary package, the hooks will be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11275 "located in the <filename class=\"directory\">hgext</filename> directory of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11276 "wherever your package installer put Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11277 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11278
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11279 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11280 #: ../en/ch09-hook.xml:716
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
11281 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11282 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
11283 "<literal role=\"hg-ext\">acl</literal>—access control for parts of a "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11284 "repository"
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
11285 msgstr "<literal role=\"hg-ext\">acl</literal>—版本库的访问控制"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11286
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11287 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11288 #: ../en/ch09-hook.xml:719
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11289 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11290 "The <literal role=\"hg-ext\">acl</literal> extension lets you control which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11291 "remote users are allowed to push changesets to a networked server. You can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11292 "protect any portion of a repository (including the entire repo), so that a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11293 "specific remote user can push changes that do not affect the protected "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11294 "portion."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11295 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11296
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11297 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11298 #: ../en/ch09-hook.xml:727
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11299 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11300 "This extension implements access control based on the identity of the user "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11301 "performing a push, <emphasis>not</emphasis> on who committed the changesets "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11302 "they're pushing. It makes sense to use this hook only if you have a locked-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11303 "down server environment that authenticates remote users, and you want to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11304 "sure that only specific users are allowed to push changes to that server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11305 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11306
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11307 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11308 #: ../en/ch09-hook.xml:737
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11309 msgid "Configuring the <literal role=\"hook\">acl</literal> hook"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11310 msgstr "配置 <literal role=\"hook\">acl</literal> 钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11311
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11312 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11313 #: ../en/ch09-hook.xml:740
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11314 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11315 "In order to manage incoming changesets, the <literal role=\"hg-ext\">acl</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11316 "literal> hook must be used as a <literal role=\"hook\">pretxnchangegroup</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11317 "literal> hook. This lets it see which files are modified by each incoming "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11318 "changeset, and roll back a group of changesets if they modify "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11319 "<quote>forbidden</quote> files. Example:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11320 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11321
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11322 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11323 #: ../en/ch09-hook.xml:750
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11324 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11325 "The <literal role=\"hg-ext\">acl</literal> extension is configured using "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11326 "three sections."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11327 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11328
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11329 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11330 #: ../en/ch09-hook.xml:754
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11331 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11332 "The <literal role=\"rc-acl\">acl</literal> section has only one entry, <envar "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11333 "role=\"rc-item-acl\">sources</envar>, which lists the sources of incoming "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11334 "changesets that the hook should pay attention to. You don't normally need to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11335 "configure this section."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11336 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11337
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11338 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11339 #: ../en/ch09-hook.xml:761
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11340 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11341 "<envar role=\"rc-item-acl\">serve</envar>: Control incoming changesets that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11342 "are arriving from a remote repository over http or ssh. This is the default "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11343 "value of <envar role=\"rc-item-acl\">sources</envar>, and usually the only "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11344 "setting you'll need for this configuration item."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11345 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11346
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11347 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11348 #: ../en/ch09-hook.xml:769
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11349 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11350 "<envar role=\"rc-item-acl\">pull</envar>: Control incoming changesets that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11351 "are arriving via a pull from a local repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11352 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11353
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11354 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11355 #: ../en/ch09-hook.xml:774
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11356 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11357 "<envar role=\"rc-item-acl\">push</envar>: Control incoming changesets that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11358 "are arriving via a push from a local repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11359 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11360
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11361 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11362 #: ../en/ch09-hook.xml:779
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11363 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11364 "<envar role=\"rc-item-acl\">bundle</envar>: Control incoming changesets that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11365 "are arriving from another repository via a bundle."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11366 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11367
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11368 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11369 #: ../en/ch09-hook.xml:785
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11370 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11371 "The <literal role=\"rc-acl.allow\">acl.allow</literal> section controls the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11372 "users that are allowed to add changesets to the repository. If this section "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11373 "is not present, all users that are not explicitly denied are allowed. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11374 "this section is present, all users that are not explicitly allowed are denied "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11375 "(so an empty section means that all users are denied)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11376 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11377
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11378 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11379 #: ../en/ch09-hook.xml:794
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11380 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11381 "The <literal role=\"rc-acl.deny\">acl.deny</literal> section determines which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11382 "users are denied from adding changesets to the repository. If this section "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11383 "is not present or is empty, no users are denied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11384 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11385
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11386 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11387 #: ../en/ch09-hook.xml:800
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11388 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11389 "The syntaxes for the <literal role=\"rc-acl.allow\">acl.allow</literal> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11390 "<literal role=\"rc-acl.deny\">acl.deny</literal> sections are identical. On "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11391 "the left of each entry is a glob pattern that matches files or directories, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11392 "relative to the root of the repository; on the right, a user name."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11393 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11394
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11395 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11396 #: ../en/ch09-hook.xml:808
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11397 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11398 "In the following example, the user <literal>docwriter</literal> can only push "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11399 "changes to the <filename class=\"directory\">docs</filename> subtree of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11400 "repository, while <literal>intern</literal> can push changes to any file or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11401 "directory except <filename class=\"directory\">source/sensitive</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11402 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11403
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11404 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11405 #: ../en/ch09-hook.xml:822 ../en/ch09-hook.xml:1089 ../en/ch09-hook.xml:1279
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11406 msgid "Testing and troubleshooting"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11407 msgstr "测试与问题处理"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11408
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11409 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11410 #: ../en/ch09-hook.xml:824
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11411 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11412 "If you want to test the <literal role=\"hg-ext\">acl</literal> hook, run it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11413 "with Mercurial's debugging output enabled. Since you'll probably be running "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11414 "it on a server where it's not convenient (or sometimes possible) to pass in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11415 "the <option role=\"hg-opt-global\">--debug</option> option, don't forget that "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11416 "you can enable debugging output in your <filename role=\"special\">~/.hgrc</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11417 "filename>:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11418 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11419
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11420 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11421 #: ../en/ch09-hook.xml:835
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11422 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11423 "With this enabled, the <literal role=\"hg-ext\">acl</literal> hook will print "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11424 "enough information to let you figure out why it is allowing or forbidding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11425 "pushes from specific users."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11426 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11427
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11428 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11429 #: ../en/ch09-hook.xml:844
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
11430 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
11431 msgid "<literal role=\"hg-ext\">bugzilla</literal>—integration with Bugzilla"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
11432 msgstr "<literal role=\"hg-ext\">bugzilla</literal>—与 Bugzilla 的集成"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11433
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11434 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11435 #: ../en/ch09-hook.xml:848
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11436 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11437 "The <literal role=\"hg-ext\">bugzilla</literal> extension adds a comment to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11438 "Bugzilla bug whenever it finds a reference to that bug ID in a commit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11439 "comment. You can install this hook on a shared server, so that any time a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11440 "remote user pushes changes to this server, the hook gets run."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11441 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11442
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11443 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11444 #: ../en/ch09-hook.xml:855
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11445 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11446 "It adds a comment to the bug that looks like this (you can configure the "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
11447 "contents of the comment—see below):"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11448 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11449
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11450 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11451 #: ../en/ch09-hook.xml:864
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11452 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11453 "The value of this hook is that it automates the process of updating a bug any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11454 "time a changeset refers to it. If you configure the hook properly, it makes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11455 "it easy for people to browse straight from a Bugzilla bug to a changeset that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11456 "refers to that bug."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11457 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11458
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11459 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11460 #: ../en/ch09-hook.xml:871
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11461 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11462 "You can use the code in this hook as a starting point for some more exotic "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11463 "Bugzilla integration recipes. Here are a few possibilities:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11464 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11465
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11466 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11467 #: ../en/ch09-hook.xml:876
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11468 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11469 "Require that every changeset pushed to the server have a valid bug ID in its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11470 "commit comment. In this case, you'd want to configure the hook as a <literal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11471 "role=\"hook\">pretxncommit</literal> hook. This would allow the hook to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11472 "reject changes that didn't contain bug IDs."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11473 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11474
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11475 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11476 #: ../en/ch09-hook.xml:884
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11477 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11478 "Allow incoming changesets to automatically modify the <emphasis>state</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11479 "emphasis> of a bug, as well as simply adding a comment. For example, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11480 "hook could recognise the string <quote>fixed bug 31337</quote> as indicating "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11481 "that it should update the state of bug 31337 to <quote>requires testing</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11482 "quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11483 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11484
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11485 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11486 #: ../en/ch09-hook.xml:894
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11487 msgid "Configuring the <literal role=\"hook\">bugzilla</literal> hook"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11488 msgstr "配置 <literal role=\"hook\">bugzilla</literal> 钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11489
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11490 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11491 #: ../en/ch09-hook.xml:897
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11492 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11493 "You should configure this hook in your server's <filename role=\"special\">~/."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11494 "hgrc</filename> as an <literal role=\"hook\">incoming</literal> hook, for "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11495 "example as follows:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11496 msgstr ""
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11497
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11498 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11499 #: ../en/ch09-hook.xml:905
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11500 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11501 "Because of the specialised nature of this hook, and because Bugzilla was not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11502 "written with this kind of integration in mind, configuring this hook is a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11503 "somewhat involved process."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11504 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11505
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11506 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11507 #: ../en/ch09-hook.xml:911
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11508 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11509 "Before you begin, you must install the MySQL bindings for Python on the host"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11510 "(s) where you'll be running the hook. If this is not available as a binary "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11511 "package for your system, you can download it from <citation>web:mysql-python</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11512 "citation>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11513 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11514
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11515 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11516 #: ../en/ch09-hook.xml:918
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11517 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11518 "Configuration information for this hook lives in the <literal role=\"rc-"
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11519 "bugzilla\">bugzilla</literal> section of your <filename role=\"special\">~/."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11520 "hgrc</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11521 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11522
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11523 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11524 #: ../en/ch09-hook.xml:923
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11525 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11526 "<envar role=\"rc-item-bugzilla\">version</envar>: The version of Bugzilla "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11527 "installed on the server. The database schema that Bugzilla uses changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11528 "occasionally, so this hook has to know exactly which schema to use. At the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11529 "moment, the only version supported is <literal>2.16</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11530 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11531
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11532 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11533 #: ../en/ch09-hook.xml:932
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11534 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11535 "<envar role=\"rc-item-bugzilla\">host</envar>: The hostname of the MySQL "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11536 "server that stores your Bugzilla data. The database must be configured to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11537 "allow connections from whatever host you are running the <literal role=\"hook"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11538 "\">bugzilla</literal> hook on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11539 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11540
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11541 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11542 #: ../en/ch09-hook.xml:939
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11543 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11544 "<envar role=\"rc-item-bugzilla\">user</envar>: The username with which to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11545 "connect to the MySQL server. The database must be configured to allow this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11546 "user to connect from whatever host you are running the <literal role=\"hook"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11547 "\">bugzilla</literal> hook on. This user must be able to access and modify "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11548 "Bugzilla tables. The default value of this item is <literal>bugs</literal>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11549 "which is the standard name of the Bugzilla user in a MySQL database."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11550 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11551
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11552 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11553 #: ../en/ch09-hook.xml:950
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11554 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11555 "<envar role=\"rc-item-bugzilla\">password</envar>: The MySQL password for the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11556 "user you configured above. This is stored as plain text, so you should make "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11557 "sure that unauthorised users cannot read the <filename role=\"special\">~/."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11558 "hgrc</filename> file where you store this information."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11559 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11560
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11561 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11562 #: ../en/ch09-hook.xml:959
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11563 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11564 "<envar role=\"rc-item-bugzilla\">db</envar>: The name of the Bugzilla "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11565 "database on the MySQL server. The default value of this item is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11566 "<literal>bugs</literal>, which is the standard name of the MySQL database "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11567 "where Bugzilla stores its data."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11568 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11569
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11570 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11571 #: ../en/ch09-hook.xml:966
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11572 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11573 "<envar role=\"rc-item-bugzilla\">notify</envar>: If you want Bugzilla to send "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11574 "out a notification email to subscribers after this hook has added a comment "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11575 "to a bug, you will need this hook to run a command whenever it updates the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11576 "database. The command to run depends on where you have installed Bugzilla, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11577 "but it will typically look something like this, if you have Bugzilla "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11578 "installed in <filename class=\"directory\">/var/www/html/bugzilla</filename>:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11579 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11580
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11581 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11582 #: ../en/ch09-hook.xml:979
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11583 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11584 "The Bugzilla <literal>processmail</literal> program expects to be given a bug "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11585 "ID (the hook replaces <quote><literal>%s</literal></quote> with the bug ID) "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11586 "and an email address. It also expects to be able to write to some files in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11587 "the directory that it runs in. If Bugzilla and this hook are not installed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11588 "on the same machine, you will need to find a way to run <literal>processmail</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11589 "literal> on the server where Bugzilla is installed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11590 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11591
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11592 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11593 #: ../en/ch09-hook.xml:994
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11594 msgid "Mapping committer names to Bugzilla user names"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11595 msgstr "提交者的名称与 Bugzilla 用户名称的映射"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11596
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11597 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11598 #: ../en/ch09-hook.xml:996
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11599 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11600 "By default, the <literal role=\"hg-ext\">bugzilla</literal> hook tries to use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11601 "the email address of a changeset's committer as the Bugzilla user name with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11602 "which to update a bug. If this does not suit your needs, you can map "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11603 "committer email addresses to Bugzilla user names using a <literal role=\"rc-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11604 "usermap\">usermap</literal> section."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11605 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11606
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11607 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11608 #: ../en/ch09-hook.xml:1005
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11609 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11610 "Each item in the <literal role=\"rc-usermap\">usermap</literal> section "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11611 "contains an email address on the left, and a Bugzilla user name on the right."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11612 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11613
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11614 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11615 #: ../en/ch09-hook.xml:1012
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11616 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11617 "You can either keep the <literal role=\"rc-usermap\">usermap</literal> data "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11618 "in a normal <filename role=\"special\">~/.hgrc</filename>, or tell the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11619 "<literal role=\"hg-ext\">bugzilla</literal> hook to read the information from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11620 "an external <filename>usermap</filename> file. In the latter case, you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11621 "store <filename>usermap</filename> data by itself in (for example) a user-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11622 "modifiable repository. This makes it possible to let your users maintain "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11623 "their own <envar role=\"rc-item-bugzilla\">usermap</envar> entries. The main "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11624 "<filename role=\"special\">~/.hgrc</filename> file might look like this:"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11625 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11626
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11627 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11628 #: ../en/ch09-hook.xml:1028
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11629 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11630 "While the <filename>usermap</filename> file that it refers to might look like "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11631 "this:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11632 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11633
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11634 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11635 #: ../en/ch09-hook.xml:1036
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11636 msgid "Configuring the text that gets added to a bug"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11637 msgstr "配置增加到问题中的正文"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11638
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11639 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11640 #: ../en/ch09-hook.xml:1038
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11641 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11642 "You can configure the text that this hook adds as a comment; you specify it "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11643 "in the form of a Mercurial template. Several <filename role=\"special\">~/."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11644 "hgrc</filename> entries (still in the <literal role=\"rc-bugzilla\">bugzilla</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11645 "literal> section) control this behaviour."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11646 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11647
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11648 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11649 #: ../en/ch09-hook.xml:1045
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11650 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11651 "<literal>strip</literal>: The number of leading path elements to strip from a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11652 "repository's path name to construct a partial path for a URL. For example, if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11653 "the repositories on your server live under <filename class=\"directory\">/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11654 "home/hg/repos</filename>, and you have a repository whose path is <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11655 "class=\"directory\">/home/hg/repos/app/tests</filename>, then setting "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11656 "<literal>strip</literal> to <literal>4</literal> will give a partial path of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11657 "<filename class=\"directory\">app/tests</filename>. The hook will make this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11658 "partial path available when expanding a template, as <literal>webroot</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11659 "literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11660 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11661
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11662 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11663 #: ../en/ch09-hook.xml:1059
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11664 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11665 "<literal>template</literal>: The text of the template to use. In addition to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11666 "the usual changeset-related variables, this template can use <literal>hgweb</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11667 "literal> (the value of the <literal>hgweb</literal> configuration item above) "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11668 "and <literal>webroot</literal> (the path constructed using <literal>strip</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11669 "literal> above)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11670 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11671
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11672 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11673 #: ../en/ch09-hook.xml:1069
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11674 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11675 "In addition, you can add a <envar role=\"rc-item-web\">baseurl</envar> item "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11676 "to the <literal role=\"rc-web\">web</literal> section of your <filename role="
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11677 "\"special\">~/.hgrc</filename>. The <literal role=\"hg-ext\">bugzilla</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11678 "literal> hook will make this available when expanding a template, as the base "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11679 "string to use when constructing a URL that will let users browse from a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11680 "Bugzilla comment to view a changeset. Example:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11681 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11682
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11683 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11684 #: ../en/ch09-hook.xml:1081
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11685 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11686 "Here is an example set of <literal role=\"hg-ext\">bugzilla</literal> hook "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11687 "config information."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11688 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11689
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11690 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11691 #: ../en/ch09-hook.xml:1091
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11692 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11693 "The most common problems with configuring the <literal role=\"hg-ext"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11694 "\">bugzilla</literal> hook relate to running Bugzilla's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11695 "<filename>processmail</filename> script and mapping committer names to user "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11696 "names."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11697 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11698
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11699 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11700 #: ../en/ch09-hook.xml:1097
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11701 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11702 "Recall from <xref linkend=\"sec:hook:bugzilla:config\"/> above that the user "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11703 "that runs the Mercurial process on the server is also the one that will run "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11704 "the <filename>processmail</filename> script. The <filename>processmail</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11705 "filename> script sometimes causes Bugzilla to write to files in its "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11706 "configuration directory, and Bugzilla's configuration files are usually owned "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11707 "by the user that your web server runs under."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11708 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11709
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11710 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11711 #: ../en/ch09-hook.xml:1108
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11712 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11713 "You can cause <filename>processmail</filename> to be run with the suitable "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11714 "user's identity using the <command>sudo</command> command. Here is an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11715 "example entry for a <filename>sudoers</filename> file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11716 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11717
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11718 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11719 #: ../en/ch09-hook.xml:1115
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11720 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11721 "This allows the <literal>hg_user</literal> user to run a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11722 "<filename>processmail-wrapper</filename> program under the identity of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11723 "<literal>httpd_user</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11724 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11725
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11726 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11727 #: ../en/ch09-hook.xml:1120
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11728 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11729 "This indirection through a wrapper script is necessary, because "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11730 "<filename>processmail</filename> expects to be run with its current directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11731 "set to wherever you installed Bugzilla; you can't specify that kind of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11732 "constraint in a <filename>sudoers</filename> file. The contents of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11733 "wrapper script are simple:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11734 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11735
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11736 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11737 #: ../en/ch09-hook.xml:1129
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11738 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11739 "It doesn't seem to matter what email address you pass to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11740 "<filename>processmail</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11741 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11742
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11743 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11744 #: ../en/ch09-hook.xml:1133
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11745 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11746 "If your <literal role=\"rc-usermap\">usermap</literal> is not set up "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11747 "correctly, users will see an error message from the <literal role=\"hg-ext"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11748 "\">bugzilla</literal> hook when they push changes to the server. The error "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11749 "message will look like this:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11750 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11751
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11752 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11753 #: ../en/ch09-hook.xml:1140
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11754 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11755 "What this means is that the committer's address, <literal>john.q."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11756 "public@example.com</literal>, is not a valid Bugzilla user name, nor does it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11757 "have an entry in your <literal role=\"rc-usermap\">usermap</literal> that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11758 "maps it to a valid Bugzilla user name."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11759 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11760
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11761 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11762 #: ../en/ch09-hook.xml:1150
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
11763 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
11764 msgid "<literal role=\"hg-ext\">notify</literal>—send email notifications"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
11765 msgstr "<literal role=\"hg-ext\">notify</literal>—邮件通知"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11766
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11767 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11768 #: ../en/ch09-hook.xml:1153
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11769 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11770 "Although Mercurial's built-in web server provides RSS feeds of changes in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11771 "every repository, many people prefer to receive change notifications via "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11772 "email. The <literal role=\"hg-ext\">notify</literal> hook lets you send out "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11773 "notifications to a set of email addresses whenever changesets arrive that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11774 "those subscribers are interested in."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11775 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11776
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11777 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11778 #: ../en/ch09-hook.xml:1161
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11779 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11780 "As with the <literal role=\"hg-ext\">bugzilla</literal> hook, the <literal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11781 "role=\"hg-ext\">notify</literal> hook is template-driven, so you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11782 "customise the contents of the notification messages that it sends."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11783 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11784
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11785 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11786 #: ../en/ch09-hook.xml:1167
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11787 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11788 "By default, the <literal role=\"hg-ext\">notify</literal> hook includes a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11789 "diff of every changeset that it sends out; you can limit the size of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11790 "diff, or turn this feature off entirely. It is useful for letting "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11791 "subscribers review changes immediately, rather than clicking to follow a URL."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11792 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11793
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11794 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11795 #: ../en/ch09-hook.xml:1175
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11796 msgid "Configuring the <literal role=\"hg-ext\">notify</literal> hook"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11797 msgstr "配置 <literal role=\"hg-ext\">notify</literal> 钩子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11798
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11799 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11800 #: ../en/ch09-hook.xml:1178
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11801 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11802 "You can set up the <literal role=\"hg-ext\">notify</literal> hook to send one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11803 "email message per incoming changeset, or one per incoming group of changesets "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11804 "(all those that arrived in a single pull or push)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11805 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11806
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11807 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11808 #: ../en/ch09-hook.xml:1190
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11809 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11810 "Configuration information for this hook lives in the <literal role=\"rc-notify"
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11811 "\">notify</literal> section of a <filename role=\"special\">~/.hgrc</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11812 "filename> file."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11813 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11814
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11815 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11816 #: ../en/ch09-hook.xml:1195
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11817 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11818 "<envar role=\"rc-item-notify\">test</envar>: By default, this hook does not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11819 "send out email at all; instead, it prints the message that it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11820 "<emphasis>would</emphasis> send. Set this item to <literal>false</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11821 "to allow email to be sent. The reason that sending of email is turned off by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11822 "default is that it takes several tries to configure this extension exactly as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11823 "you would like, and it would be bad form to spam subscribers with a number of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11824 "<quote>broken</quote> notifications while you debug your configuration."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11825 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11826
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11827 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11828 #: ../en/ch09-hook.xml:1207
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11829 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11830 "<envar role=\"rc-item-notify\">config</envar>: The path to a configuration "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11831 "file that contains subscription information. This is kept separate from the "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11832 "main <filename role=\"special\">~/.hgrc</filename> so that you can maintain "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11833 "it in a repository of its own. People can then clone that repository, update "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11834 "their subscriptions, and push the changes back to your server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11835 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11836
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11837 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11838 #: ../en/ch09-hook.xml:1216
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11839 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11840 "<envar role=\"rc-item-notify\">strip</envar>: The number of leading path "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11841 "separator characters to strip from a repository's path, when deciding whether "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11842 "a repository has subscribers. For example, if the repositories on your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11843 "server live in <filename class=\"directory\">/home/hg/repos</filename>, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11844 "<literal role=\"hg-ext\">notify</literal> is considering a repository named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11845 "<filename class=\"directory\">/home/hg/repos/shared/test</filename>, setting "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11846 "<envar role=\"rc-item-notify\">strip</envar> to <literal>4</literal> will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11847 "cause <literal role=\"hg-ext\">notify</literal> to trim the path it considers "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11848 "down to <filename class=\"directory\">shared/test</filename>, and it will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11849 "match subscribers against that."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11850 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11851
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11852 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11853 #: ../en/ch09-hook.xml:1233
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11854 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11855 "<envar role=\"rc-item-notify\">template</envar>: The template text to use "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11856 "when sending messages. This specifies both the contents of the message "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11857 "header and its body."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11858 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11859
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11860 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11861 #: ../en/ch09-hook.xml:1239
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11862 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11863 "<envar role=\"rc-item-notify\">maxdiff</envar>: The maximum number of lines "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11864 "of diff data to append to the end of a message. If a diff is longer than "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11865 "this, it is truncated. By default, this is set to 300. Set this to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11866 "<literal>0</literal> to omit diffs from notification emails."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11867 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11868
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11869 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11870 #: ../en/ch09-hook.xml:1248
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11871 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11872 "<envar role=\"rc-item-notify\">sources</envar>: A list of sources of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11873 "changesets to consider. This lets you limit <literal role=\"hg-ext\">notify</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11874 "literal> to only sending out email about changes that remote users pushed "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11875 "into this repository via a server, for example. See <xref linkend=\"sec:hook:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11876 "sources\"/> for the sources you can specify here."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11877 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11878
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11879 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11880 #: ../en/ch09-hook.xml:1259
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11881 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11882 "If you set the <envar role=\"rc-item-web\">baseurl</envar> item in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11883 "<literal role=\"rc-web\">web</literal> section, you can use it in a template; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11884 "it will be available as <literal>webroot</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11885 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11886
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11887 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11888 #: ../en/ch09-hook.xml:1265
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11889 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11890 "Here is an example set of <literal role=\"hg-ext\">notify</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11891 "configuration information."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11892 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11893
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11894 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11895 #: ../en/ch09-hook.xml:1271
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11896 msgid "This will produce a message that looks like the following:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11897 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11898
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11899 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11900 #: ../en/ch09-hook.xml:1281
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11901 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11902 "Do not forget that by default, the <literal role=\"hg-ext\">notify</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11903 "extension <emphasis>will not send any mail</emphasis> until you explicitly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11904 "configure it to do so, by setting <envar role=\"rc-item-notify\">test</envar> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11905 "to <literal>false</literal>. Until you do that, it simply prints the message "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11906 "it <emphasis>would</emphasis> send."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11907 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11908
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11909 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11910 #: ../en/ch09-hook.xml:1293
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11911 msgid "Information for writers of hooks"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11912 msgstr "编写钩子的信息"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11913
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11914 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11915 #: ../en/ch09-hook.xml:1296
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11916 msgid "In-process hook execution"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11917 msgstr "进程内钩子的执行"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11918
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11919 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11920 #: ../en/ch09-hook.xml:1298
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11921 msgid "An in-process hook is called with arguments of the following form:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11922 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11923
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11924 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11925 #: ../en/ch09-hook.xml:1302
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11926 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11927 "The <literal>ui</literal> parameter is a <literal role=\"py-mod-mercurial.ui"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11928 "\">ui</literal> object. The <literal>repo</literal> parameter is a <literal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11929 "role=\"py-mod-mercurial.localrepo\">localrepository</literal> object. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11930 "names and values of the <literal>**kwargs</literal> parameters depend on the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11931 "hook being invoked, with the following common features:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11932 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11933
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11934 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11935 #: ../en/ch09-hook.xml:1311
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11936 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11937 "If a parameter is named <literal>node</literal> or <literal>parentN</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11938 "literal>, it will contain a hexadecimal changeset ID. The empty string is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11939 "used to represent <quote>null changeset ID</quote> instead of a string of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11940 "zeroes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11941 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11942
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11943 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11944 #: ../en/ch09-hook.xml:1318
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11945 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11946 "If a parameter is named <literal>url</literal>, it will contain the URL of a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11947 "remote repository, if that can be determined."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11948 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11949
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11950 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11951 #: ../en/ch09-hook.xml:1323
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11952 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11953 "Boolean-valued parameters are represented as Python <literal>bool</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11954 "objects."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11955 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11956
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11957 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11958 #: ../en/ch09-hook.xml:1328
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11959 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11960 "An in-process hook is called without a change to the process's working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11961 "directory (unlike external hooks, which are run in the root of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11962 "repository). It must not change the process's working directory, or it will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11963 "cause any calls it makes into the Mercurial API to fail."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11964 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11965
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11966 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11967 #: ../en/ch09-hook.xml:1335
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11968 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11969 "If a hook returns a boolean <quote>false</quote> value, it is considered to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11970 "have succeeded. If it returns a boolean <quote>true</quote> value or raises "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11971 "an exception, it is considered to have failed. A useful way to think of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11972 "calling convention is <quote>tell me if you fail</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11973 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11974
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11975 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11976 #: ../en/ch09-hook.xml:1342
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11977 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11978 "Note that changeset IDs are passed into Python hooks as hexadecimal strings, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11979 "not the binary hashes that Mercurial's APIs normally use. To convert a hash "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11980 "from hex to binary, use the <literal>bin</literal> function."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11981 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11982
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
11983 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11984 #: ../en/ch09-hook.xml:1350
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11985 msgid "External hook execution"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
11986 msgstr "外部钩子的执行"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11987
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11988 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11989 #: ../en/ch09-hook.xml:1352
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11990 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11991 "An external hook is passed to the shell of the user running Mercurial. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11992 "Features of that shell, such as variable substitution and command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11993 "redirection, are available. The hook is run in the root directory of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11994 "repository (unlike in-process hooks, which are run in the same directory that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11995 "Mercurial was run in)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11996 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11997
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
11998 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
11999 #: ../en/ch09-hook.xml:1360
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12000 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12001 "Hook parameters are passed to the hook as environment variables. Each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12002 "environment variable's name is converted in upper case and prefixed with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12003 "string <quote><literal>HG_</literal></quote>. For example, if the name of a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12004 "parameter is <quote><literal>node</literal></quote>, the name of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12005 "environment variable representing that parameter will be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12006 "<quote><literal>HG_NODE</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12007 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12008
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12009 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12010 #: ../en/ch09-hook.xml:1369
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12011 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12012 "A boolean parameter is represented as the string <quote><literal>1</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12013 "quote> for <quote>true</quote>, <quote><literal>0</literal></quote> for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12014 "<quote>false</quote>. If an environment variable is named <envar>HG_NODE</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12015 "envar>, <envar>HG_PARENT1</envar> or <envar>HG_PARENT2</envar>, it contains a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12016 "changeset ID represented as a hexadecimal string. The empty string is used "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12017 "to represent <quote>null changeset ID</quote> instead of a string of zeroes. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12018 "If an environment variable is named <envar>HG_URL</envar>, it will contain "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12019 "the URL of a remote repository, if that can be determined."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12020 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12021
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12022 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12023 #: ../en/ch09-hook.xml:1381
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12024 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12025 "If a hook exits with a status of zero, it is considered to have succeeded. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12026 "If it exits with a non-zero status, it is considered to have failed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12027 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12028
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12029 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12030 #: ../en/ch09-hook.xml:1388
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12031 msgid "Finding out where changesets come from"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
12032 msgstr "检查修改集来自何处"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12033
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12034 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12035 #: ../en/ch09-hook.xml:1390
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12036 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12037 "A hook that involves the transfer of changesets between a local repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12038 "and another may be able to find out information about the <quote>far side</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12039 "quote>. Mercurial knows <emphasis>how</emphasis> changes are being "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12040 "transferred, and in many cases <emphasis>where</emphasis> they are being "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12041 "transferred to or from."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12042 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12043
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12044 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12045 #: ../en/ch09-hook.xml:1399
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12046 msgid "Sources of changesets"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
12047 msgstr "修改集的来源"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12048
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12049 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12050 #: ../en/ch09-hook.xml:1401
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12051 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12052 "Mercurial will tell a hook what means are, or were, used to transfer "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12053 "changesets between repositories. This is provided by Mercurial in a Python "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12054 "parameter named <literal>source</literal>, or an environment variable named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12055 "<envar>HG_SOURCE</envar>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12056 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12057
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12058 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12059 #: ../en/ch09-hook.xml:1409
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12060 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12061 "<literal>serve</literal>: Changesets are transferred to or from a remote "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12062 "repository over http or ssh."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12063 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12064
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12065 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12066 #: ../en/ch09-hook.xml:1414
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12067 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12068 "<literal>pull</literal>: Changesets are being transferred via a pull from one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12069 "repository into another."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12070 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12071
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12072 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12073 #: ../en/ch09-hook.xml:1419
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12074 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12075 "<literal>push</literal>: Changesets are being transferred via a push from one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12076 "repository into another."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12077 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12078
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12079 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12080 #: ../en/ch09-hook.xml:1424
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12081 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12082 "<literal>bundle</literal>: Changesets are being transferred to or from a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12083 "bundle."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12084 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12085
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12086 #. type: Content of: <book><chapter><sect1><sect2><sect3><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12087 #: ../en/ch09-hook.xml:1431
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12088 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12089 msgid "Where changes are going—remote repository URLs"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12090 msgstr "修改集要到哪里—远程版本库的地址"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12091
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12092 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12093 #: ../en/ch09-hook.xml:1434
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12094 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12095 "When possible, Mercurial will tell a hook the location of the <quote>far "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12096 "side</quote> of an activity that transfers changeset data between "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12097 "repositories. This is provided by Mercurial in a Python parameter named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12098 "<literal>url</literal>, or an environment variable named <envar>HG_URL</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12099 "envar>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12100 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12101
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12102 #. type: Content of: <book><chapter><sect1><sect2><sect3><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12103 #: ../en/ch09-hook.xml:1442
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12104 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12105 "This information is not always known. If a hook is invoked in a repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12106 "that is being served via http or ssh, Mercurial cannot tell where the remote "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12107 "repository is, but it may know where the client is connecting from. In such "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12108 "cases, the URL will take one of the following forms:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12109 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12110
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12111 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12112 #: ../en/ch09-hook.xml:1449
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12113 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12114 "<literal>remote:ssh:1.2.3.4</literal>—remote ssh client, at the IP address "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12115 "<literal>1.2.3.4</literal>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12116 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12117
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12118 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12119 #: ../en/ch09-hook.xml:1454
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12120 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12121 "<literal>remote:http:1.2.3.4</literal>—remote http client, at the IP address "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12122 "<literal>1.2.3.4</literal>. If the client is using SSL, this will be of the "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12123 "form <literal>remote:https:1.2.3.4</literal>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12124 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12125
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12126 #. type: Content of: <book><chapter><sect1><sect2><sect3><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12127 #: ../en/ch09-hook.xml:1461
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12128 msgid "Empty—no information could be discovered about the remote client."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12129 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12130
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12131 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12132 #: ../en/ch09-hook.xml:1470
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12133 msgid "Hook reference"
734
fa8a143923ae Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 729
diff changeset
12134 msgstr "钩子参考"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12135
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12136 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12137 #: ../en/ch09-hook.xml:1473
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12138 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12139 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12140 "<literal role=\"hook\">changegroup</literal>—after remote changesets added"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12141 msgstr "<literal role=\"hook\">changegroup</literal>—增加远程修改集之后"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12142
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12143 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12144 #: ../en/ch09-hook.xml:1476
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12145 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12146 "This hook is run after a group of pre-existing changesets has been added to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12147 "the repository, for example via a <command role=\"hg-cmd\">hg pull</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12148 "or <command role=\"hg-cmd\">hg unbundle</command>. This hook is run once per "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12149 "operation that added one or more changesets. This is in contrast to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12150 "<literal role=\"hook\">incoming</literal> hook, which is run once per "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12151 "changeset, regardless of whether the changesets arrive in a group."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12152 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12153
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12154 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12155 #: ../en/ch09-hook.xml:1486
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12156 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12157 "Some possible uses for this hook include kicking off an automated build or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12158 "test of the added changesets, updating a bug database, or notifying "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12159 "subscribers that a repository contains new changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12160 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12161
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12162 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12163 #: ../en/ch09-hook.xml:1492 ../en/ch09-hook.xml:1532 ../en/ch09-hook.xml:1576
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12164 #: ../en/ch09-hook.xml:1618 ../en/ch09-hook.xml:1673 ../en/ch09-hook.xml:1713
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12165 #: ../en/ch09-hook.xml:1749 ../en/ch09-hook.xml:1783 ../en/ch09-hook.xml:1846
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12166 #: ../en/ch09-hook.xml:1904 ../en/ch09-hook.xml:1940 ../en/ch09-hook.xml:1967
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12167 msgid "Parameters to this hook:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12168 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12169
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12170 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12171 #: ../en/ch09-hook.xml:1495 ../en/ch09-hook.xml:1849
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12172 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12173 "<literal>node</literal>: A changeset ID. The changeset ID of the first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12174 "changeset in the group that was added. All changesets between this and "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12175 "<literal role=\"tag\">tip</literal>, inclusive, were added by a single "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12176 "<command role=\"hg-cmd\">hg pull</command>, <command role=\"hg-cmd\">hg push</"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12177 "command> or <command role=\"hg-cmd\">hg unbundle</command>."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12178 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12179
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12180 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12181 #: ../en/ch09-hook.xml:1504 ../en/ch09-hook.xml:1583 ../en/ch09-hook.xml:1676
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12182 #: ../en/ch09-hook.xml:1859
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12183 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12184 "<literal>source</literal>: A string. The source of these changes. See <xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12185 "linkend=\"sec:hook:sources\"/> for details."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12186 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12187
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12188 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12189 #: ../en/ch09-hook.xml:1509 ../en/ch09-hook.xml:1588 ../en/ch09-hook.xml:1639
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12190 #: ../en/ch09-hook.xml:1681 ../en/ch09-hook.xml:1762 ../en/ch09-hook.xml:1864
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12191 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12192 "<literal>url</literal>: A URL. The location of the remote repository, if "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12193 "known. See <xref linkend=\"sec:hook:url\"/> for more information."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12194 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12195
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12196 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12197 #: ../en/ch09-hook.xml:1515
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12198 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12199 "See also: <literal role=\"hook\">incoming</literal> (<xref linkend=\"sec:hook:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12200 "incoming\"/>), <literal role=\"hook\">prechangegroup</literal> (<xref linkend="
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12201 "\"sec:hook:prechangegroup\"/>), <literal role=\"hook\">pretxnchangegroup</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12202 "literal> (<xref linkend=\"sec:hook:pretxnchangegroup\"/>)"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12203 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12204
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12205 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12206 #: ../en/ch09-hook.xml:1526
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12207 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12208 msgid "<literal role=\"hook\">commit</literal>—after a new changeset is created"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12209 msgstr "<literal role=\"hook\">commit</literal>—创建新修改集之后"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12210
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12211 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12212 #: ../en/ch09-hook.xml:1529
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12213 msgid "This hook is run after a new changeset has been created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12214 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12215
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12216 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12217 #: ../en/ch09-hook.xml:1535 ../en/ch09-hook.xml:1907
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12218 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12219 "<literal>node</literal>: A changeset ID. The changeset ID of the newly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12220 "committed changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12221 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12222
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12223 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12224 #: ../en/ch09-hook.xml:1539 ../en/ch09-hook.xml:1911
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12225 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12226 "<literal>parent1</literal>: A changeset ID. The changeset ID of the first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12227 "parent of the newly committed changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12228 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12229
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12230 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12231 #: ../en/ch09-hook.xml:1544 ../en/ch09-hook.xml:1916
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12232 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12233 "<literal>parent2</literal>: A changeset ID. The changeset ID of the second "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12234 "parent of the newly committed changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12235 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12236
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12237 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12238 #: ../en/ch09-hook.xml:1550
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12239 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12240 "See also: <literal role=\"hook\">precommit</literal> (<xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12241 "hook:precommit\"/>), <literal role=\"hook\">pretxncommit</literal> (<xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12242 "linkend=\"sec:hook:pretxncommit\"/>)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12243 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12244
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12245 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12246 #: ../en/ch09-hook.xml:1559
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12247 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12248 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12249 "<literal role=\"hook\">incoming</literal>—after one remote changeset is added"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12250 msgstr "<literal role=\"hook\">incoming</literal>—增加远程修改集之后"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12251
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12252 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12253 #: ../en/ch09-hook.xml:1562
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12254 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12255 "This hook is run after a pre-existing changeset has been added to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12256 "repository, for example via a <command role=\"hg-cmd\">hg push</command>. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12257 "a group of changesets was added in a single operation, this hook is called "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12258 "once for each added changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12259 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12260
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12261 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12262 #: ../en/ch09-hook.xml:1569
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12263 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12264 "You can use this hook for the same purposes as the <literal role=\"hook"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12265 "\">changegroup</literal> hook (<xref linkend=\"sec:hook:changegroup\"/>); "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12266 "it's simply more convenient sometimes to run a hook once per group of "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12267 "changesets, while other times it's handier once per changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12268 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12269
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12270 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12271 #: ../en/ch09-hook.xml:1579
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12272 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12273 "<literal>node</literal>: A changeset ID. The ID of the newly added changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12274 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12275
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12276 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12277 #: ../en/ch09-hook.xml:1594
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12278 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12279 "See also: <literal role=\"hook\">changegroup</literal> (<xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12280 "hook:changegroup\"/>) <literal role=\"hook\">prechangegroup</literal> (<xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12281 "linkend=\"sec:hook:prechangegroup\"/>), <literal role=\"hook"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12282 "\">pretxnchangegroup</literal> (<xref linkend=\"sec:hook:pretxnchangegroup\"/"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12283 ">)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12284 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12285
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12286 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12287 #: ../en/ch09-hook.xml:1605
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12288 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12289 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12290 "<literal role=\"hook\">outgoing</literal>—after changesets are propagated"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12291 msgstr "<literal role=\"hook\">outgoing</literal>—传播修改集之后"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12292
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12293 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12294 #: ../en/ch09-hook.xml:1608
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12295 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12296 "This hook is run after a group of changesets has been propagated out of this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12297 "repository, for example by a <command role=\"hg-cmd\">hg push</command> or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12298 "<command role=\"hg-cmd\">hg bundle</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12299 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12300
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12301 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12302 #: ../en/ch09-hook.xml:1614
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12303 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12304 "One possible use for this hook is to notify administrators that changes have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12305 "been pulled."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12306 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12307
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12308 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12309 #: ../en/ch09-hook.xml:1621
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12310 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12311 "<literal>node</literal>: A changeset ID. The changeset ID of the first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12312 "changeset of the group that was sent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12313 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12314
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12315 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12316 #: ../en/ch09-hook.xml:1626
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12317 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12318 "<literal>source</literal>: A string. The source of the of the operation (see "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12319 "<xref linkend=\"sec:hook:sources\"/>). If a remote client pulled changes "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12320 "from this repository, <literal>source</literal> will be <literal>serve</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12321 "literal>. If the client that obtained changes from this repository was "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12322 "local, <literal>source</literal> will be <literal>bundle</literal>, "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12323 "<literal>pull</literal>, or <literal>push</literal>, depending on the "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12324 "operation the client performed."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12325 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12326
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12327 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12328 #: ../en/ch09-hook.xml:1645
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12329 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12330 "See also: <literal role=\"hook\">preoutgoing</literal> (<xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12331 "hook:preoutgoing\"/>)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12332 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12333
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12334 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12335 #: ../en/ch09-hook.xml:1652
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12336 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12337 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12338 "<literal role=\"hook\">prechangegroup</literal>—before starting to add remote "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12339 "changesets"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12340 msgstr "<literal role=\"hook\">prechangegroup</literal>—增加远程修改集之前"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12341
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12342 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12343 #: ../en/ch09-hook.xml:1656
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12344 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12345 "This controlling hook is run before Mercurial begins to add a group of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12346 "changesets from another repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12347 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12348
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12349 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12350 #: ../en/ch09-hook.xml:1660
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12351 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12352 "This hook does not have any information about the changesets to be added, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12353 "because it is run before transmission of those changesets is allowed to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12354 "begin. If this hook fails, the changesets will not be transmitted."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12355 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12356
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12357 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12358 #: ../en/ch09-hook.xml:1666
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12359 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12360 "One use for this hook is to prevent external changes from being added to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12361 "repository. For example, you could use this to <quote>freeze</quote> a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12362 "server-hosted branch temporarily or permanently so that users cannot push to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12363 "it, while still allowing a local administrator to modify the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12364 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12365
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12366 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12367 #: ../en/ch09-hook.xml:1687
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12368 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12369 "See also: <literal role=\"hook\">changegroup</literal> (<xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12370 "hook:changegroup\"/>), <literal role=\"hook\">incoming</literal> (<xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12371 "linkend=\"sec:hook:incoming\"/>), <literal role=\"hook\">pretxnchangegroup</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12372 "literal> (<xref linkend=\"sec:hook:pretxnchangegroup\"/>)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12373 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12374
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12375 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12376 #: ../en/ch09-hook.xml:1698
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12377 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12378 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12379 "<literal role=\"hook\">precommit</literal>—before starting to commit a "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12380 "changeset"
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12381 msgstr "<literal role=\"hook\">precommit</literal>—提交修改集之前"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12382
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12383 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12384 #: ../en/ch09-hook.xml:1701
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12385 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12386 "This hook is run before Mercurial begins to commit a new changeset. It is run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12387 "before Mercurial has any of the metadata for the commit, such as the files to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12388 "be committed, the commit message, or the commit date."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12389 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12390
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12391 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12392 #: ../en/ch09-hook.xml:1707
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12393 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12394 "One use for this hook is to disable the ability to commit new changesets, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12395 "while still allowing incoming changesets. Another is to run a build or test, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12396 "and only allow the commit to begin if the build or test succeeds."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12397 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12398
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12399 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12400 #: ../en/ch09-hook.xml:1716
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12401 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12402 "<literal>parent1</literal>: A changeset ID. The changeset ID of the first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12403 "parent of the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12404 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12405
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12406 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12407 #: ../en/ch09-hook.xml:1721
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12408 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12409 "<literal>parent2</literal>: A changeset ID. The changeset ID of the second "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12410 "parent of the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12411 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12412
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12413 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12414 #: ../en/ch09-hook.xml:1726
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12415 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12416 "If the commit proceeds, the parents of the working directory will become the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12417 "parents of the new changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12418 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12419
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12420 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12421 #: ../en/ch09-hook.xml:1730
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12422 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12423 "See also: <literal role=\"hook\">commit</literal> (<xref linkend=\"sec:hook:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12424 "commit\"/>), <literal role=\"hook\">pretxncommit</literal> (<xref linkend="
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12425 "\"sec:hook:pretxncommit\"/>)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12426 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12427
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12428 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12429 #: ../en/ch09-hook.xml:1738
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12430 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12431 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12432 "<literal role=\"hook\">preoutgoing</literal>—before starting to propagate "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12433 "changesets"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12434 msgstr "<literal role=\"hook\">preoutgoing</literal>—传播修改集之前"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12435
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12436 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12437 #: ../en/ch09-hook.xml:1741
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12438 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12439 "This hook is invoked before Mercurial knows the identities of the changesets "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12440 "to be transmitted."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12441 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12442
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12443 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12444 #: ../en/ch09-hook.xml:1745
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12445 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12446 "One use for this hook is to prevent changes from being transmitted to another "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12447 "repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12448 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12449
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12450 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12451 #: ../en/ch09-hook.xml:1752
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12452 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12453 "<literal>source</literal>: A string. The source of the operation that is "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12454 "attempting to obtain changes from this repository (see <xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12455 "hook:sources\"/>). See the documentation for the <literal>source</literal> "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12456 "parameter to the <literal role=\"hook\">outgoing</literal> hook, in <xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12457 "linkend=\"sec:hook:outgoing\"/>, for possible values of this parameter."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12458 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12459
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12460 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12461 #: ../en/ch09-hook.xml:1768
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12462 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12463 "See also: <literal role=\"hook\">outgoing</literal> (<xref linkend=\"sec:hook:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12464 "outgoing\"/>)"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12465 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12466
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12467 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12468 #: ../en/ch09-hook.xml:1775
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12469 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12470 msgid "<literal role=\"hook\">pretag</literal>—before tagging a changeset"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12471 msgstr "<literal role=\"hook\">pretag</literal>—创建标签之前"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12472
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12473 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12474 #: ../en/ch09-hook.xml:1778
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12475 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12476 "This controlling hook is run before a tag is created. If the hook succeeds, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12477 "creation of the tag proceeds. If the hook fails, the tag is not created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12478 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12479
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12480 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12481 #: ../en/ch09-hook.xml:1786
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12482 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12483 "<literal>local</literal>: A boolean. Whether the tag is local to this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12484 "repository instance (i.e. stored in <filename role=\"special\">.hg/localtags</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12485 "filename>) or managed by Mercurial (stored in <filename role=\"special\">."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12486 "hgtags</filename>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12487 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12488
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12489 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12490 #: ../en/ch09-hook.xml:1793
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12491 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12492 "<literal>node</literal>: A changeset ID. The ID of the changeset to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12493 "tagged."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12494 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12495
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12496 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12497 #: ../en/ch09-hook.xml:1797
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12498 msgid "<literal>tag</literal>: A string. The name of the tag to be created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12499 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12500
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12501 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12502 #: ../en/ch09-hook.xml:1802
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12503 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12504 "If the tag to be created is revision-controlled, the <literal role=\"hook"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12505 "\">precommit</literal> and <literal role=\"hook\">pretxncommit</literal> "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12506 "hooks (<xref linkend=\"sec:hook:commit\"/> and <xref linkend=\"sec:hook:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12507 "pretxncommit\"/>) will also be run."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12508 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12509
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12510 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12511 #: ../en/ch09-hook.xml:1810
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12512 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12513 "See also: <literal role=\"hook\">tag</literal> (<xref linkend=\"sec:hook:tag"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12514 "\"/>)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12515 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12516
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12517 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12518 #: ../en/ch09-hook.xml:1815
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12519 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12520 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12521 "<literal role=\"hook\">pretxnchangegroup</literal>—before completing addition "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12522 "of remote changesets"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12523 msgstr ""
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12524 "<literal role=\"hook\">pretxnchangegroup</literal>—完成增加远程修改集之前"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12525
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12526 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12527 #: ../en/ch09-hook.xml:1819
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12528 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12529 "This controlling hook is run before a transaction—that manages the addition "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12530 "of a group of new changesets from outside the repository—completes. If the "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12531 "hook succeeds, the transaction completes, and all of the changesets become "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12532 "permanent within this repository. If the hook fails, the transaction is "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12533 "rolled back, and the data for the changesets is erased."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12534 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12535
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12536 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12537 #: ../en/ch09-hook.xml:1828
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12538 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12539 "This hook can access the metadata associated with the almost-added "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12540 "changesets, but it should not do anything permanent with this data. It must "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12541 "also not modify the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12542 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12543
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12544 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12545 #: ../en/ch09-hook.xml:1834
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12546 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12547 "While this hook is running, if other Mercurial processes access this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12548 "repository, they will be able to see the almost-added changesets as if they "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12549 "are permanent. This may lead to race conditions if you do not take steps to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12550 "avoid them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12551 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12552
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12553 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12554 #: ../en/ch09-hook.xml:1841
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12555 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12556 "This hook can be used to automatically vet a group of changesets. If the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12557 "hook fails, all of the changesets are <quote>rejected</quote> when the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12558 "transaction rolls back."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12559 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12560
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12561 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12562 #: ../en/ch09-hook.xml:1870
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12563 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12564 "See also: <literal role=\"hook\">changegroup</literal> (<xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12565 "hook:changegroup\"/>), <literal role=\"hook\">incoming</literal> (<xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12566 "linkend=\"sec:hook:incoming\"/>), <literal role=\"hook\">prechangegroup</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12567 "literal> (<xref linkend=\"sec:hook:prechangegroup\"/>)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12568 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12569
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12570 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12571 #: ../en/ch09-hook.xml:1881
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12572 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12573 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12574 "<literal role=\"hook\">pretxncommit</literal>—before completing commit of new "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12575 "changeset"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12576 msgstr "<literal role=\"hook\">pretxncommit</literal>—完成提交之前"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12577
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12578 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12579 #: ../en/ch09-hook.xml:1884
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12580 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12581 "This controlling hook is run before a transaction—that manages a new commit—"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12582 "completes. If the hook succeeds, the transaction completes and the changeset "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12583 "becomes permanent within this repository. If the hook fails, the transaction "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12584 "is rolled back, and the commit data is erased."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12585 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12586
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12587 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12588 #: ../en/ch09-hook.xml:1892
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12589 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12590 "This hook can access the metadata associated with the almost-new changeset, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12591 "but it should not do anything permanent with this data. It must also not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12592 "modify the working directory."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12593 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12594
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12595 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12596 #: ../en/ch09-hook.xml:1898
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12597 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12598 "While this hook is running, if other Mercurial processes access this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12599 "repository, they will be able to see the almost-new changeset as if it is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12600 "permanent. This may lead to race conditions if you do not take steps to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12601 "avoid them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12602 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12603
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12604 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12605 #: ../en/ch09-hook.xml:1922
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12606 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12607 "See also: <literal role=\"hook\">precommit</literal> (<xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12608 "hook:precommit\"/>)"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
12609 msgstr ""
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
12610 "参见: <literal role=\"hook\">precommit</literal> (<xref linkend=\"sec:hook:"
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
12611 "precommit\"/>)"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12612
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12613 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12614 #: ../en/ch09-hook.xml:1929
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12615 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12616 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12617 "<literal role=\"hook\">preupdate</literal>—before updating or merging working "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12618 "directory"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12619 msgstr "<literal role=\"hook\">preupdate</literal>—更新或合并工作目录之前"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12620
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12621 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12622 #: ../en/ch09-hook.xml:1932
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12623 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12624 "This controlling hook is run before an update or merge of the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12625 "directory begins. It is run only if Mercurial's normal pre-update checks "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12626 "determine that the update or merge can proceed. If the hook succeeds, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12627 "update or merge may proceed; if it fails, the update or merge does not start."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12628 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12629
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12630 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12631 #: ../en/ch09-hook.xml:1943
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12632 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12633 "<literal>parent1</literal>: A changeset ID. The ID of the parent that the "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12634 "working directory is to be updated to. If the working directory is being "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12635 "merged, it will not change this parent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12636 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12637
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12638 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12639 #: ../en/ch09-hook.xml:1949
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12640 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12641 "<literal>parent2</literal>: A changeset ID. Only set if the working directory "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12642 "is being merged. The ID of the revision that the working directory is being "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12643 "merged with."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12644 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12645
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12646 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12647 #: ../en/ch09-hook.xml:1956
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12648 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12649 "See also: <literal role=\"hook\">update</literal> (<xref linkend=\"sec:hook:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12650 "update\"/>)"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12651 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12652
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12653 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12654 #: ../en/ch09-hook.xml:1961
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12655 #, fuzzy
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12656 msgid "<literal role=\"hook\">tag</literal>—after tagging a changeset"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12657 msgstr "<literal role=\"hook\">tag</literal>—创建标签之后"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12658
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12659 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12660 #: ../en/ch09-hook.xml:1964
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12661 msgid "This hook is run after a tag has been created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12662 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12663
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12664 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12665 #: ../en/ch09-hook.xml:1970
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12666 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12667 "<literal>local</literal>: A boolean. Whether the new tag is local to this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12668 "repository instance (i.e. stored in <filename role=\"special\">.hg/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12669 "localtags</filename>) or managed by Mercurial (stored in <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12670 "\"special\">.hgtags</filename>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12671 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12672
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12673 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12674 #: ../en/ch09-hook.xml:1978
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12675 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12676 "<literal>node</literal>: A changeset ID. The ID of the changeset that was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12677 "tagged."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12678 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12679
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12680 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12681 #: ../en/ch09-hook.xml:1982
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12682 msgid "<literal>tag</literal>: A string. The name of the tag that was created."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12683 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12684
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12685 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12686 #: ../en/ch09-hook.xml:1987
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12687 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12688 "If the created tag is revision-controlled, the <literal role=\"hook\">commit</"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12689 "literal> hook (section <xref linkend=\"sec:hook:commit\"/>) is run before "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12690 "this hook."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12691 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12692
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12693 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12694 #: ../en/ch09-hook.xml:1992
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12695 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12696 "See also: <literal role=\"hook\">pretag</literal> (<xref linkend=\"sec:hook:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12697 "pretag\"/>)"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
12698 msgstr ""
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
12699 "参见: <literal role=\"hook\">pretag</literal> (<xref linkend=\"sec:hook:pretag"
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
12700 "\"/>)"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12701
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12702 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12703 #: ../en/ch09-hook.xml:1998
766
3b33dd6aba87 Merge with http://hg.serpentine.com/mercurial/book
Dongsheng Song <songdongsheng@live.cn>
parents: 764
diff changeset
12704 #, fuzzy
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12705 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12706 "<literal role=\"hook\">update</literal>—after updating or merging working "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12707 "directory"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12708 msgstr "<literal role=\"hook\">update</literal>—更新或合并工作目录之后"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12709
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12710 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12711 #: ../en/ch09-hook.xml:2001
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12712 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12713 "This hook is run after an update or merge of the working directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12714 "completes. Since a merge can fail (if the external <command>hgmerge</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12715 "command> command fails to resolve conflicts in a file), this hook "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12716 "communicates whether the update or merge completed cleanly."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12717 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12718
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12719 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12720 #: ../en/ch09-hook.xml:2009
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12721 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12722 "<literal>error</literal>: A boolean. Indicates whether the update or merge "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12723 "completed successfully."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12724 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12725
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12726 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12727 #: ../en/ch09-hook.xml:2014
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12728 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12729 "<literal>parent1</literal>: A changeset ID. The ID of the parent that the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12730 "working directory was updated to. If the working directory was merged, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12731 "will not have changed this parent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12732 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12733
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12734 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12735 #: ../en/ch09-hook.xml:2020
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12736 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12737 "<literal>parent2</literal>: A changeset ID. Only set if the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12738 "directory was merged. The ID of the revision that the working directory was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12739 "merged with."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12740 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12741
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12742 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12743 #: ../en/ch09-hook.xml:2026
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12744 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12745 "See also: <literal role=\"hook\">preupdate</literal> (<xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12746 "hook:preupdate\"/>)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12747 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12748
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12749 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12750 #: ../en/ch10-template.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12751 msgid "Customising the output of Mercurial"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12752 msgstr "定制 Mercurial 的输出"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12753
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12754 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12755 #: ../en/ch10-template.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12756 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12757 "Mercurial provides a powerful mechanism to let you control how it displays "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12758 "information. The mechanism is based on templates. You can use templates to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12759 "generate specific output for a single command, or to customise the entire "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12760 "appearance of the built-in web interface."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12761 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12762
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12763 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12764 #: ../en/ch10-template.xml:14
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12765 msgid "Using precanned output styles"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
12766 msgstr "使用预定义的输出样式"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12767
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12768 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12769 #: ../en/ch10-template.xml:16
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12770 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12771 "Packaged with Mercurial are some output styles that you can use immediately. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12772 "A style is simply a precanned template that someone wrote and installed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12773 "somewhere that Mercurial can find."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12774 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12775
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12776 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12777 #: ../en/ch10-template.xml:21
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12778 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12779 "Before we take a look at Mercurial's bundled styles, let's review its normal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12780 "output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12781 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12782
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12783 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12784 #: ../en/ch10-template.xml:26
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12785 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12786 "This is somewhat informative, but it takes up a lot of space—five lines of "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12787 "output per changeset. The <literal>compact</literal> style reduces this to "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
12788 "three lines, presented in a sparse manner."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12789 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12790
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12791 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12792 #: ../en/ch10-template.xml:33
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12793 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12794 "The <literal>changelog</literal> style hints at the expressive power of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12795 "Mercurial's templating engine. This style attempts to follow the GNU "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12796 "Project's changelog guidelines<citation>web:changelog</citation>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12797 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12798
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12799 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12800 #: ../en/ch10-template.xml:40
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12801 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12802 "You will not be shocked to learn that Mercurial's default output style is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12803 "named <literal>default</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12804 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12805
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12806 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12807 #: ../en/ch10-template.xml:44
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12808 msgid "Setting a default style"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
12809 msgstr "设置默认样式"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12810
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12811 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12812 #: ../en/ch10-template.xml:46
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12813 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12814 "You can modify the output style that Mercurial will use for every command by "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12815 "editing your <filename role=\"special\">~/.hgrc</filename> file, naming the "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12816 "style you would prefer to use."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12817 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12818
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12819 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12820 #: ../en/ch10-template.xml:54
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12821 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12822 "If you write a style of your own, you can use it by either providing the path "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12823 "to your style file, or copying your style file into a location where "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12824 "Mercurial can find it (typically the <literal>templates</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12825 "subdirectory of your Mercurial install directory)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12826 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12827
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12828 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12829 #: ../en/ch10-template.xml:63
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12830 msgid "Commands that support styles and templates"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
12831 msgstr "支持样式和模版的命令"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12832
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12833 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12834 #: ../en/ch10-template.xml:65
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12835 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12836 "All of Mercurial's <quote><literal>log</literal>-like</quote> commands let "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12837 "you use styles and templates: <command role=\"hg-cmd\">hg incoming</command>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12838 "<command role=\"hg-cmd\">hg log</command>, <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12839 "outgoing</command>, and <command role=\"hg-cmd\">hg tip</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12840 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12841
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12842 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12843 #: ../en/ch10-template.xml:72
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12844 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12845 "As I write this manual, these are so far the only commands that support "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12846 "styles and templates. Since these are the most important commands that need "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12847 "customisable output, there has been little pressure from the Mercurial user "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12848 "community to add style and template support to other commands."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12849 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12850
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12851 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12852 #: ../en/ch10-template.xml:80
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12853 msgid "The basics of templating"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
12854 msgstr "模版基础"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12855
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12856 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12857 #: ../en/ch10-template.xml:82
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12858 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12859 "At its simplest, a Mercurial template is a piece of text. Some of the text "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12860 "never changes, while other parts are <emphasis>expanded</emphasis>, or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12861 "replaced with new text, when necessary."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12862 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12863
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12864 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12865 #: ../en/ch10-template.xml:87
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12866 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12867 "Before we continue, let's look again at a simple example of Mercurial's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12868 "normal output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12869 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12870
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12871 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12872 #: ../en/ch10-template.xml:92
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12873 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12874 "Now, let's run the same command, but using a template to change its output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12875 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12876
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12877 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12878 #: ../en/ch10-template.xml:97
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12879 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12880 "The example above illustrates the simplest possible template; it's just a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12881 "piece of static text, printed once for each changeset. The <option role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12882 "opt-log\">--template</option> option to the <command role=\"hg-cmd\">hg log</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12883 "command> command tells Mercurial to use the given text as the template when "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12884 "printing each changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12885 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12886
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12887 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12888 #: ../en/ch10-template.xml:105
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12889 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12890 "Notice that the template string above ends with the text <quote><literal>\\n</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12891 "literal></quote>. This is an <emphasis>escape sequence</emphasis>, telling "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12892 "Mercurial to print a newline at the end of each template item. If you omit "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12893 "this newline, Mercurial will run each piece of output together. See <xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12894 "linkend=\"sec:template:escape\"/> for more details of escape sequences."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12895 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12896
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12897 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12898 #: ../en/ch10-template.xml:113
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12899 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12900 "A template that prints a fixed string of text all the time isn't very useful; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12901 "let's try something a bit more complex."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12902 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12903
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12904 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
12905 #: ../en/ch10-template.xml:119
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12906 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12907 "As you can see, the string <quote><literal>{desc}</literal></quote> in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12908 "template has been replaced in the output with the description of each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12909 "changeset. Every time Mercurial finds text enclosed in curly braces "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12910 "(<quote><literal>{</literal></quote> and <quote><literal>}</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12911 "quote>), it will try to replace the braces and text with the expansion of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12912 "whatever is inside. To print a literal curly brace, you must escape it, as "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12913 "described in <xref linkend=\"sec:template:escape\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12914 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12915
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12916 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12917 #: ../en/ch10-template.xml:131
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12918 msgid "Common template keywords"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
12919 msgstr "模版关键字"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12920
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12921 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12922 #: ../en/ch10-template.xml:133
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12923 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12924 "You can start writing simple templates immediately using the keywords below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12925 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12926
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12927 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12928 #: ../en/ch10-template.xml:137
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12929 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12930 "<literal role=\"template-keyword\">author</literal>: String. The unmodified "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12931 "author of the changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12932 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12933
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12934 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12935 #: ../en/ch10-template.xml:141
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12936 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12937 "<literal role=\"template-keyword\">branches</literal>: String. The name of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12938 "the branch on which the changeset was committed. Will be empty if the branch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12939 "name was <literal>default</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12940 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12941
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12942 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12943 #: ../en/ch10-template.xml:147
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12944 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12945 "<literal role=\"template-keyword\">date</literal>: Date information. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12946 "date when the changeset was committed. This is <emphasis>not</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12947 "human-readable; you must pass it through a filter that will render it "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12948 "appropriately. See <xref linkend=\"sec:template:filter\"/> for more "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12949 "information on filters. The date is expressed as a pair of numbers. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12950 "first number is a Unix UTC timestamp (seconds since January 1, 1970); the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12951 "second is the offset of the committer's timezone from UTC, in seconds."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12952 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12953
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12954 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12955 #: ../en/ch10-template.xml:158
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12956 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12957 "<literal role=\"template-keyword\">desc</literal>: String. The text of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12958 "changeset description."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12959 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12960
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12961 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12962 #: ../en/ch10-template.xml:161
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12963 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12964 "<literal role=\"template-keyword\">files</literal>: List of strings. All "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12965 "files modified, added, or removed by this changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12966 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12967
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12968 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12969 #: ../en/ch10-template.xml:166
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12970 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12971 "<literal role=\"template-keyword\">file_adds</literal>: List of strings. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12972 "Files added by this changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12973 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12974
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12975 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12976 #: ../en/ch10-template.xml:170
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12977 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12978 "<literal role=\"template-keyword\">file_dels</literal>: List of strings. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12979 "Files removed by this changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12980 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12981
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12982 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12983 #: ../en/ch10-template.xml:174
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12984 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12985 "<literal role=\"template-keyword\">node</literal>: String. The changeset "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12986 "identification hash, as a 40-character hexadecimal string."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12987 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12988
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12989 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12990 #: ../en/ch10-template.xml:178
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12991 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12992 "<literal role=\"template-keyword\">parents</literal>: List of strings. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12993 "parents of the changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12994 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12995
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12996 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
12997 #: ../en/ch10-template.xml:182
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12998 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
12999 "<literal role=\"template-keyword\">rev</literal>: Integer. The repository-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13000 "local changeset revision number."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13001 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13002
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13003 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13004 #: ../en/ch10-template.xml:186
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13005 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13006 "<literal role=\"template-keyword\">tags</literal>: List of strings. Any tags "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13007 "associated with the changeset."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13008 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13009
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13010 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13011 #: ../en/ch10-template.xml:191
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13012 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13013 "A few simple experiments will show us what to expect when we use these "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13014 "keywords; you can see the results below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13015 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13016
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13017 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13018 #: ../en/ch10-template.xml:196
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13019 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13020 "As we noted above, the date keyword does not produce human-readable output, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13021 "so we must treat it specially. This involves using a <emphasis>filter</"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13022 "emphasis>, about which more in <xref linkend=\"sec:template:filter\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13023 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13024
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13025 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13026 #: ../en/ch10-template.xml:205
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13027 msgid "Escape sequences"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13028 msgstr "转义序列"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13029
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13030 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13031 #: ../en/ch10-template.xml:207
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13032 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13033 "Mercurial's templating engine recognises the most commonly used escape "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13034 "sequences in strings. When it sees a backslash (<quote><literal>\\</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13035 "literal></quote>) character, it looks at the following character and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13036 "substitutes the two characters with a single replacement, as described below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13037 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13038
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13039 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13040 #: ../en/ch10-template.xml:214
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13041 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13042 "<literal>\\</literal>: Backslash, <quote><literal>\\</literal></quote>, ASCII "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13043 "134."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13044 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13045
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13046 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13047 #: ../en/ch10-template.xml:218
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13048 msgid "<literal>\\n</literal>: Newline, ASCII 12."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13049 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13050
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13051 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13052 #: ../en/ch10-template.xml:221
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13053 msgid "<literal>\\r</literal>: Carriage return, ASCII 15."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13054 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13055
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13056 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13057 #: ../en/ch10-template.xml:224
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13058 msgid "<literal>\\t</literal>: Tab, ASCII 11."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13059 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13060
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13061 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13062 #: ../en/ch10-template.xml:227
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13063 msgid "<literal>\\v</literal>: Vertical tab, ASCII 13."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13064 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13065
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13066 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13067 #: ../en/ch10-template.xml:230
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13068 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13069 "<literal>{</literal>: Open curly brace, <quote><literal>{</literal></quote>, "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13070 "ASCII 173."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13071 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13072
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13073 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13074 #: ../en/ch10-template.xml:234
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13075 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13076 "<literal>}</literal>: Close curly brace, <quote><literal>}</literal></quote>, "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13077 "ASCII 175."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13078 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13079
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13080 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13081 #: ../en/ch10-template.xml:239
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13082 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13083 "As indicated above, if you want the expansion of a template to contain a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13084 "literal <quote><literal>\\</literal></quote>, <quote><literal>{</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13085 "quote>, or <quote><literal>{</literal></quote> character, you must escape it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13086 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13087
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13088 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13089 #: ../en/ch10-template.xml:247
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13090 msgid "Filtering keywords to change their results"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13091 msgstr "通过过滤关键字来修改输出结果"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13092
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13093 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13094 #: ../en/ch10-template.xml:249
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13095 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13096 "Some of the results of template expansion are not immediately easy to use. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13097 "Mercurial lets you specify an optional chain of <emphasis>filters</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13098 "to modify the result of expanding a keyword. You have already seen a common "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13099 "filter, <literal role=\"template-kw-filt-date\">isodate</literal>, in action "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13100 "above, to make a date readable."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13101 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13102
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13103 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13104 #: ../en/ch10-template.xml:256
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13105 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13106 "Below is a list of the most commonly used filters that Mercurial supports. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13107 "While some filters can be applied to any text, others can only be used in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13108 "specific circumstances. The name of each filter is followed first by an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13109 "indication of where it can be used, then a description of its effect."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13110 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13111
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13112 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13113 #: ../en/ch10-template.xml:263
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13114 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13115 "<literal role=\"template-filter\">addbreaks</literal>: Any text. Add an XHTML "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13116 "<quote><literal>&lt;br/&gt;</literal></quote> tag before the end of every "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13117 "line except the last. For example, <quote><literal>foo\\nbar</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13118 "quote> becomes <quote><literal>foo&lt;br/&gt;\\nbar</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13119 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13120
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13121 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13122 #: ../en/ch10-template.xml:270
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13123 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13124 "<literal role=\"template-kw-filt-date\">age</literal>: <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13125 "\"template-keyword\">date</literal> keyword. Render the age of the date, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13126 "relative to the current time. Yields a string like <quote><literal>10 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13127 "minutes</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13128 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13129
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13130 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13131 #: ../en/ch10-template.xml:277
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13132 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13133 "<literal role=\"template-filter\">basename</literal>: Any text, but most "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13134 "useful for the <literal role=\"template-keyword\">files</literal> keyword and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13135 "its relatives. Treat the text as a path, and return the basename. For "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13136 "example, <quote><literal>foo/bar/baz</literal></quote> becomes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13137 "<quote><literal>baz</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13138 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13139
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13140 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13141 #: ../en/ch10-template.xml:286
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13142 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13143 "<literal role=\"template-kw-filt-date\">date</literal>: <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13144 "\"template-keyword\">date</literal> keyword. Render a date in a similar "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13145 "format to the Unix <literal role=\"template-keyword\">date</literal> command, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13146 "but with timezone included. Yields a string like <quote><literal>Mon Sep 04 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13147 "15:13:13 2006 -0700</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13148 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13149
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13150 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13151 #: ../en/ch10-template.xml:294
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13152 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13153 "<literal role=\"template-kw-filt-author\">domain</literal>: Any text, but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13154 "most useful for the <literal role=\"template-keyword\">author</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13155 "keyword. Finds the first string that looks like an email address, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13156 "extract just the domain component. For example, <quote><literal>Bryan "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13157 "O'Sullivan &lt;bos@serpentine.com&gt;</literal></quote> becomes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13158 "<quote><literal>serpentine.com</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13159 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13160
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13161 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13162 #: ../en/ch10-template.xml:304
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13163 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13164 "<literal role=\"template-kw-filt-author\">email</literal>: Any text, but most "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13165 "useful for the <literal role=\"template-keyword\">author</literal> keyword. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13166 "Extract the first string that looks like an email address. For example, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13167 "<quote><literal>Bryan O'Sullivan &lt;bos@serpentine.com&gt;</literal></quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13168 "becomes <quote><literal>bos@serpentine.com</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13169 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13170
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13171 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13172 #: ../en/ch10-template.xml:313
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13173 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13174 "<literal role=\"template-filter\">escape</literal>: Any text. Replace the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13175 "special XML/XHTML characters <quote><literal>&amp;</literal></quote>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13176 "<quote><literal>&lt;</literal></quote> and <quote><literal>&gt;</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13177 "quote> with XML entities."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13178 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13179
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13180 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13181 #: ../en/ch10-template.xml:321
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13182 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13183 "<literal role=\"template-filter\">fill68</literal>: Any text. Wrap the text "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13184 "to fit in 68 columns. This is useful before you pass text through the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13185 "<literal role=\"template-filter\">tabindent</literal> filter, and still want "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13186 "it to fit in an 80-column fixed-font window."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13187 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13188
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13189 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13190 #: ../en/ch10-template.xml:329
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13191 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13192 "<literal role=\"template-filter\">fill76</literal>: Any text. Wrap the text "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13193 "to fit in 76 columns."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13194 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13195
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13196 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13197 #: ../en/ch10-template.xml:333
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13198 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13199 "<literal role=\"template-filter\">firstline</literal>: Any text. Yield the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13200 "first line of text, without any trailing newlines."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13201 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13202
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13203 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13204 #: ../en/ch10-template.xml:338
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13205 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13206 "<literal role=\"template-kw-filt-date\">hgdate</literal>: <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13207 "\"template-keyword\">date</literal> keyword. Render the date as a pair of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13208 "readable numbers. Yields a string like <quote><literal>1157407993 25200</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13209 "literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13210 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13211
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13212 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13213 #: ../en/ch10-template.xml:345
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13214 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13215 "<literal role=\"template-kw-filt-date\">isodate</literal>: <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13216 "\"template-keyword\">date</literal> keyword. Render the date as a text "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13217 "string in ISO 8601 format. Yields a string like <quote><literal>2006-09-04 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13218 "15:13:13 -0700</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13219 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13220
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13221 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13222 #: ../en/ch10-template.xml:352
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13223 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13224 "<literal role=\"template-filter\">obfuscate</literal>: Any text, but most "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13225 "useful for the <literal role=\"template-keyword\">author</literal> keyword. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13226 "Yield the input text rendered as a sequence of XML entities. This helps to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13227 "defeat some particularly stupid screen-scraping email harvesting spambots."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13228 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13229
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13230 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13231 #: ../en/ch10-template.xml:360
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13232 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13233 "<literal role=\"template-kw-filt-author\">person</literal>: Any text, but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13234 "most useful for the <literal role=\"template-keyword\">author</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13235 "keyword. Yield the text before an email address. For example, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13236 "<quote><literal>Bryan O'Sullivan &lt;bos@serpentine.com&gt;</literal></quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13237 "becomes <quote><literal>Bryan O'Sullivan</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13238 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13239
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13240 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13241 #: ../en/ch10-template.xml:369
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13242 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13243 "<literal role=\"template-kw-filt-date\">rfc822date</literal>: <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13244 "\"template-keyword\">date</literal> keyword. Render a date using the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13245 "format used in email headers. Yields a string like <quote><literal>Mon, 04 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13246 "Sep 2006 15:13:13 -0700</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13247 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13248
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13249 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13250 #: ../en/ch10-template.xml:376
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13251 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13252 "<literal role=\"template-kw-filt-node\">short</literal>: Changeset hash. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13253 "Yield the short form of a changeset hash, i.e. a 12-character hexadecimal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13254 "string."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13255 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13256
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13257 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13258 #: ../en/ch10-template.xml:381
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13259 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13260 "<literal role=\"template-kw-filt-date\">shortdate</literal>: <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13261 "\"template-keyword\">date</literal> keyword. Render the year, month, and day "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13262 "of the date. Yields a string like <quote><literal>2006-09-04</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13263 "quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13264 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13265
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13266 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13267 #: ../en/ch10-template.xml:387
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13268 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13269 "<literal role=\"template-filter\">strip</literal>: Any text. Strip all "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13270 "leading and trailing whitespace from the string."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13271 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13272
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13273 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13274 #: ../en/ch10-template.xml:391
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13275 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13276 "<literal role=\"template-filter\">tabindent</literal>: Any text. Yield the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13277 "text, with every line except the first starting with a tab character."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13278 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13279
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13280 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13281 #: ../en/ch10-template.xml:396
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13282 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13283 "<literal role=\"template-filter\">urlescape</literal>: Any text. Escape all "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13284 "characters that are considered <quote>special</quote> by URL parsers. For "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13285 "example, <literal>foo bar</literal> becomes <literal>foo%20bar</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13286 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13287
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13288 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13289 #: ../en/ch10-template.xml:403
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13290 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13291 "<literal role=\"template-kw-filt-author\">user</literal>: Any text, but most "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13292 "useful for the <literal role=\"template-keyword\">author</literal> keyword. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13293 "Return the <quote>user</quote> portion of an email address. For example, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13294 "<quote><literal>Bryan O'Sullivan &lt;bos@serpentine.com&gt;</literal></quote> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13295 "becomes <quote><literal>bos</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13296 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13297
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13298 #. type: Content of: <book><chapter><sect1><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13299 #: ../en/ch10-template.xml:416
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13300 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13301 "If you try to apply a filter to a piece of data that it cannot process, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13302 "Mercurial will fail and print a Python exception. For example, trying to run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13303 "the output of the <literal role=\"template-keyword\">desc</literal> keyword "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13304 "into the <literal role=\"template-kw-filt-date\">isodate</literal> filter is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13305 "not a good idea."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13306 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13307
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13308 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13309 #: ../en/ch10-template.xml:425
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13310 msgid "Combining filters"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13311 msgstr "组合过滤器"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13312
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13313 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13314 #: ../en/ch10-template.xml:427
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13315 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13316 "It is easy to combine filters to yield output in the form you would like. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13317 "The following chain of filters tidies up a description, then makes sure that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13318 "it fits cleanly into 68 columns, then indents it by a further 8 characters "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13319 "(at least on Unix-like systems, where a tab is conventionally 8 characters "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13320 "wide)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13321 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13322
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13323 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13324 #: ../en/ch10-template.xml:436
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13325 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13326 "Note the use of <quote><literal>\\t</literal></quote> (a tab character) in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13327 "the template to force the first line to be indented; this is necessary since "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13328 "<literal role=\"template-keyword\">tabindent</literal> indents all lines "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13329 "<emphasis>except</emphasis> the first."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13330 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13331
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13332 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13333 #: ../en/ch10-template.xml:442
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13334 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13335 "Keep in mind that the order of filters in a chain is significant. The first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13336 "filter is applied to the result of the keyword; the second to the result of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13337 "the first filter; and so on. For example, using <literal>fill68|tabindent</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13338 "literal> gives very different results from <literal>tabindent|fill68</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13339 "literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13340 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13341
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13342 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13343 #: ../en/ch10-template.xml:453
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13344 msgid "From templates to styles"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13345 msgstr "从模版到样式"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13346
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13347 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13348 #: ../en/ch10-template.xml:455
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13349 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13350 "A command line template provides a quick and simple way to format some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13351 "output. Templates can become verbose, though, and it's useful to be able to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13352 "give a template a name. A style file is a template with a name, stored in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13353 "file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13354 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13355
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13356 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13357 #: ../en/ch10-template.xml:460
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13358 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13359 "More than that, using a style file unlocks the power of Mercurial's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13360 "templating engine in ways that are not possible using the command line "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13361 "<option role=\"hg-opt-log\">--template</option> option."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13362 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13363
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13364 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13365 #: ../en/ch10-template.xml:466
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13366 msgid "The simplest of style files"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13367 msgstr "最简单的样式文件"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13368
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13369 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13370 #: ../en/ch10-template.xml:468
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13371 msgid "Our simple style file contains just one line:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13372 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13373
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13374 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13375 #: ../en/ch10-template.xml:472
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13376 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13377 "This tells Mercurial, <quote>if you're printing a changeset, use the text on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13378 "the right as the template</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13379 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13380
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13381 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13382 #: ../en/ch10-template.xml:478
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13383 msgid "Style file syntax"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13384 msgstr "样式文件语法"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13385
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13386 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13387 #: ../en/ch10-template.xml:480
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13388 msgid "The syntax rules for a style file are simple."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13389 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13390
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13391 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13392 #: ../en/ch10-template.xml:483
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13393 msgid "The file is processed one line at a time."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13394 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13395
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13396 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13397 #: ../en/ch10-template.xml:486
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13398 msgid "Leading and trailing white space are ignored."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13399 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13400
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13401 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13402 #: ../en/ch10-template.xml:489
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13403 msgid "Empty lines are skipped."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13404 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13405
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13406 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13407 #: ../en/ch10-template.xml:491
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13408 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13409 "If a line starts with either of the characters <quote><literal>#</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13410 "quote> or <quote><literal>;</literal></quote>, the entire line is treated as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13411 "a comment, and skipped as if empty."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13412 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13413
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13414 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13415 #: ../en/ch10-template.xml:496
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13416 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13417 "A line starts with a keyword. This must start with an alphabetic character "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13418 "or underscore, and can subsequently contain any alphanumeric character or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13419 "underscore. (In regexp notation, a keyword must match <literal>[A-Za-z_][A-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13420 "Za-z0-9_]*</literal>.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13421 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13422
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13423 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13424 #: ../en/ch10-template.xml:502
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13425 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13426 "The next element must be an <quote><literal>=</literal></quote> character, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13427 "which can be preceded or followed by an arbitrary amount of white space."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13428 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13429
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13430 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13431 #: ../en/ch10-template.xml:507
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13432 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13433 "If the rest of the line starts and ends with matching quote characters "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13434 "(either single or double quote), it is treated as a template body."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13435 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13436
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13437 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13438 #: ../en/ch10-template.xml:511
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13439 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13440 "If the rest of the line <emphasis>does not</emphasis> start with a quote "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13441 "character, it is treated as the name of a file; the contents of this file "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13442 "will be read and used as a template body."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13443 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13444
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13445 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13446 #: ../en/ch10-template.xml:520
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13447 msgid "Style files by example"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13448 msgstr "样式文件例子"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13449
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13450 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13451 #: ../en/ch10-template.xml:522
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13452 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13453 "To illustrate how to write a style file, we will construct a few by example. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13454 "Rather than provide a complete style file and walk through it, we'll mirror "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13455 "the usual process of developing a style file by starting with something very "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13456 "simple, and walking through a series of successively more complete examples."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13457 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13458
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13459 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13460 #: ../en/ch10-template.xml:529
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13461 msgid "Identifying mistakes in style files"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13462 msgstr "在样式文件中定位错误"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13463
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13464 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13465 #: ../en/ch10-template.xml:531
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13466 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13467 "If Mercurial encounters a problem in a style file you are working on, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13468 "prints a terse error message that, once you figure out what it means, is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13469 "actually quite useful."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13470 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13471
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13472 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13473 #: ../en/ch10-template.xml:537
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13474 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13475 "Notice that <filename>broken.style</filename> attempts to define a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13476 "<literal>changeset</literal> keyword, but forgets to give any content for it. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13477 "When instructed to use this style file, Mercurial promptly complains."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13478 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13479
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13480 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13481 #: ../en/ch10-template.xml:544
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13482 msgid "This error message looks intimidating, but it is not too hard to follow."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13483 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13484
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13485 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13486 #: ../en/ch10-template.xml:548
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13487 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13488 "The first component is simply Mercurial's way of saying <quote>I am giving "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13489 "up</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13490 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13491
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13492 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13493 #: ../en/ch10-template.xml:552
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13494 msgid "Next comes the name of the style file that contains the error."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13495 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13496
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13497 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13498 #: ../en/ch10-template.xml:556
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13499 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13500 "Following the file name is the line number where the error was encountered."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13501 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13502
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13503 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13504 #: ../en/ch10-template.xml:560
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13505 msgid "Finally, a description of what went wrong."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13506 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13507
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13508 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13509 #: ../en/ch10-template.xml:564
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13510 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13511 "The description of the problem is not always clear (as in this case), but "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13512 "even when it is cryptic, it is almost always trivial to visually inspect the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13513 "offending line in the style file and see what is wrong."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13514 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13515
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13516 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13517 #: ../en/ch10-template.xml:572
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13518 msgid "Uniquely identifying a repository"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13519 msgstr "版本库的唯一标识"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13520
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13521 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13522 #: ../en/ch10-template.xml:574
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13523 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13524 "If you would like to be able to identify a Mercurial repository <quote>fairly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13525 "uniquely</quote> using a short string as an identifier, you can use the first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13526 "revision in the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13527 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13528
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13529 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13530 #: ../en/ch10-template.xml:581
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13531 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13532 "This is not guaranteed to be unique, but it is nevertheless useful in many "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13533 "cases."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13534 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13535
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13536 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13537 #: ../en/ch10-template.xml:584
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13538 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13539 "It will not work in a completely empty repository, because such a repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13540 "does not have a revision zero."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13541 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13542
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13543 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13544 #: ../en/ch10-template.xml:588
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13545 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13546 "Neither will it work in the (extremely rare) case where a repository is a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13547 "merge of two or more formerly independent repositories, and you still have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13548 "those repositories around."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13549 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13550
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13551 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13552 #: ../en/ch10-template.xml:593
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13553 msgid "Here are some uses to which you could put this identifier:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13554 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13555
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13556 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13557 #: ../en/ch10-template.xml:596
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13558 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13559 "As a key into a table for a database that manages repositories on a server."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13560 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13561
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13562 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13563 #: ../en/ch10-template.xml:599
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13564 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13565 "As half of a {<emphasis>repository ID</emphasis>, <emphasis>revision ID</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13566 "emphasis>} tuple. Save this information away when you run an automated build "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13567 "or other activity, so that you can <quote>replay</quote> the build later if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13568 "necessary."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13569 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13570
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13571 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13572 #: ../en/ch10-template.xml:608
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13573 msgid "Mimicking Subversion's output"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13574 msgstr "模仿 Subversion 的输出"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13575
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13576 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13577 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13578 #: ../en/ch10-template.xml:610
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13579 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13580 "Let's try to emulate the default output format used by another revision "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13581 "control tool, Subversion."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13582 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13583
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13584 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13585 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13586 #: ../en/ch10-template.xml:615
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13587 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13588 "Since Subversion's output style is fairly simple, it is easy to copy-and-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13589 "paste a hunk of its output into a file, and replace the text produced above "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13590 "by Subversion with the template values we'd like to see expanded."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13591 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13592
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13593 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13594 #: ../en/ch10-template.xml:622
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13595 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13596 "There are a few small ways in which this template deviates from the output "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13597 "produced by Subversion."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13598 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13599
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13600 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13601 #: ../en/ch10-template.xml:625
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13602 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13603 "Subversion prints a <quote>readable</quote> date (the <quote><literal>Wed, 27 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13604 "Sep 2006</literal></quote> in the example output above) in parentheses. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13605 "Mercurial's templating engine does not provide a way to display a date in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13606 "this format without also printing the time and time zone."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13607 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13608
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13609 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13610 #: ../en/ch10-template.xml:632
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13611 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13612 "We emulate Subversion's printing of <quote>separator</quote> lines full of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13613 "<quote><literal>-</literal></quote> characters by ending the template with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13614 "such a line. We use the templating engine's <literal role=\"template-keyword"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13615 "\">header</literal> keyword to print a separator line as the first line of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13616 "output (see below), thus achieving similar output to Subversion."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13617 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13618
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13619 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13620 #: ../en/ch10-template.xml:641
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13621 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13622 "Subversion's output includes a count in the header of the number of lines in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13623 "the commit message. We cannot replicate this in Mercurial; the templating "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13624 "engine does not currently provide a filter that counts the number of lines "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13625 "the template generates."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13626 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13627
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13628 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13629 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13630 #: ../en/ch10-template.xml:647
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13631 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13632 "It took me no more than a minute or two of work to replace literal text from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13633 "an example of Subversion's output with some keywords and filters to give the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13634 "template above. The style file simply refers to the template."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13635 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13636
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13637 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13638 #: ../en/ch10-template.xml:654
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13639 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13640 "We could have included the text of the template file directly in the style "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13641 "file by enclosing it in quotes and replacing the newlines with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13642 "<quote><literal>\\n</literal></quote> sequences, but it would have made the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13643 "style file too difficult to read. Readability is a good guide when you're "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13644 "trying to decide whether some text belongs in a style file, or in a template "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13645 "file that the style file points to. If the style file will look too big or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13646 "cluttered if you insert a literal piece of text, drop it into a template "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13647 "instead."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13648 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13649
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13650 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13651 #: ../en/ch11-mq.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13652 msgid "Managing change with Mercurial Queues"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13653 msgstr "使用 MQ 管理修改"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13654
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13655 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13656 #: ../en/ch11-mq.xml:8
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13657 msgid "The patch management problem"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13658 msgstr "补丁的管理问题"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13659
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13660 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13661 #: ../en/ch11-mq.xml:10
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13662 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13663 "Here is a common scenario: you need to install a software package from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13664 "source, but you find a bug that you must fix in the source before you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13665 "start using the package. You make your changes, forget about the package for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13666 "a while, and a few months later you need to upgrade to a newer version of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13667 "package. If the newer version of the package still has the bug, you must "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13668 "extract your fix from the older source tree and apply it against the newer "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13669 "version. This is a tedious task, and it's easy to make mistakes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13670 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13671
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13672 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13673 #: ../en/ch11-mq.xml:20
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13674 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13675 "This is a simple case of the <quote>patch management</quote> problem. You "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13676 "have an <quote>upstream</quote> source tree that you can't change; you need "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13677 "to make some local changes on top of the upstream tree; and you'd like to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13678 "able to keep those changes separate, so that you can apply them to newer "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13679 "versions of the upstream source."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13680 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13681
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13682 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13683 #: ../en/ch11-mq.xml:27
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13684 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13685 "The patch management problem arises in many situations. Probably the most "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13686 "visible is that a user of an open source software project will contribute a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13687 "bug fix or new feature to the project's maintainers in the form of a patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13688 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13689
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13690 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13691 #: ../en/ch11-mq.xml:32
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13692 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13693 "Distributors of operating systems that include open source software often "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13694 "need to make changes to the packages they distribute so that they will build "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13695 "properly in their environments."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13696 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13697
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13698 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13699 #: ../en/ch11-mq.xml:37
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13700 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13701 "When you have few changes to maintain, it is easy to manage a single patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13702 "using the standard <command>diff</command> and <command>patch</command> "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13703 "programs (see <xref linkend=\"sec:mq:patch\"/> for a discussion of these "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13704 "tools). Once the number of changes grows, it starts to make sense to maintain "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13705 "patches as discrete <quote>chunks of work,</quote> so that for example a "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13706 "single patch will contain only one bug fix (the patch might modify several "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13707 "files, but it's doing <quote>only one thing</quote>), and you may have a "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13708 "number of such patches for different bugs you need fixed and local changes "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13709 "you require. In this situation, if you submit a bug fix patch to the "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13710 "upstream maintainers of a package and they include your fix in a subsequent "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13711 "release, you can simply drop that single patch when you're updating to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13712 "newer release."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13713 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13714
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13715 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13716 #: ../en/ch11-mq.xml:52
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13717 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13718 "Maintaining a single patch against an upstream tree is a little tedious and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13719 "error-prone, but not difficult. However, the complexity of the problem grows "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13720 "rapidly as the number of patches you have to maintain increases. With more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13721 "than a tiny number of patches in hand, understanding which ones you have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13722 "applied and maintaining them moves from messy to overwhelming."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13723 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13724
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13725 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13726 #: ../en/ch11-mq.xml:59
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13727 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13728 "Fortunately, Mercurial includes a powerful extension, Mercurial Queues (or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13729 "simply <quote>MQ</quote>), that massively simplifies the patch management "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13730 "problem."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13731 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13732
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13733 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13734 #: ../en/ch11-mq.xml:65
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13735 msgid "The prehistory of Mercurial Queues"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13736 msgstr "MQ 的历史"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13737
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13738 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13739 #: ../en/ch11-mq.xml:67
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13740 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13741 "During the late 1990s, several Linux kernel developers started to maintain "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13742 "<quote>patch series</quote> that modified the behaviour of the Linux kernel. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13743 "Some of these series were focused on stability, some on feature coverage, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13744 "others were more speculative."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13745 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13746
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13747 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13748 #: ../en/ch11-mq.xml:73
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13749 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13750 "The sizes of these patch series grew rapidly. In 2002, Andrew Morton "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13751 "published some shell scripts he had been using to automate the task of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13752 "managing his patch queues. Andrew was successfully using these scripts to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13753 "manage hundreds (sometimes thousands) of patches on top of the Linux kernel."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13754 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13755
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13756 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13757 #: ../en/ch11-mq.xml:80
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13758 msgid "A patchwork quilt"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13759 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13760
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13761 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13762 #: ../en/ch11-mq.xml:82
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13763 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13764 "In early 2003, Andreas Gruenbacher and Martin Quinson borrowed the approach "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13765 "of Andrew's scripts and published a tool called <quote>patchwork quilt</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13766 "quote> <citation>web:quilt</citation>, or simply <quote>quilt</quote> (see "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13767 "<citation>gruenbacher:2005</citation> for a paper describing it). Because "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13768 "quilt substantially automated patch management, it rapidly gained a large "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13769 "following among open source software developers."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13770 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13771
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13772 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13773 #: ../en/ch11-mq.xml:91
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13774 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13775 "Quilt manages a <emphasis>stack of patches</emphasis> on top of a directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13776 "tree. To begin, you tell quilt to manage a directory tree, and tell it which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13777 "files you want to manage; it stores away the names and contents of those "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13778 "files. To fix a bug, you create a new patch (using a single command), edit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13779 "the files you need to fix, then <quote>refresh</quote> the patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13780 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13781
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13782 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13783 #: ../en/ch11-mq.xml:99
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13784 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13785 "The refresh step causes quilt to scan the directory tree; it updates the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13786 "patch with all of the changes you have made. You can create another patch on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13787 "top of the first, which will track the changes required to modify the tree "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13788 "from <quote>tree with one patch applied</quote> to <quote>tree with two "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13789 "patches applied</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13790 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13791
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13792 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13793 #: ../en/ch11-mq.xml:106
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13794 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13795 "You can <emphasis>change</emphasis> which patches are applied to the tree. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13796 "If you <quote>pop</quote> a patch, the changes made by that patch will vanish "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13797 "from the directory tree. Quilt remembers which patches you have popped, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13798 "though, so you can <quote>push</quote> a popped patch again, and the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13799 "directory tree will be restored to contain the modifications in the patch. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13800 "Most importantly, you can run the <quote>refresh</quote> command at any time, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13801 "and the topmost applied patch will be updated. This means that you can, at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13802 "any time, change both which patches are applied and what modifications those "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13803 "patches make."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13804 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13805
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13806 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13807 #: ../en/ch11-mq.xml:118
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13808 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13809 "Quilt knows nothing about revision control tools, so it works equally well on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13810 "top of an unpacked tarball or a Subversion working copy."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13811 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13812
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13813 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13814 #: ../en/ch11-mq.xml:124
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13815 msgid "From patchwork quilt to Mercurial Queues"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13816 msgstr "从 patchwork quilt 到 MQ"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13817
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13818 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13819 #: ../en/ch11-mq.xml:126
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13820 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13821 "In mid-2005, Chris Mason took the features of quilt and wrote an extension "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13822 "that he called Mercurial Queues, which added quilt-like behaviour to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13823 "Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13824 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13825
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13826 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13827 #: ../en/ch11-mq.xml:130
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13828 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13829 "The key difference between quilt and MQ is that quilt knows nothing about "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13830 "revision control systems, while MQ is <emphasis>integrated</emphasis> into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13831 "Mercurial. Each patch that you push is represented as a Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13832 "changeset. Pop a patch, and the changeset goes away."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13833 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13834
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13835 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13836 #: ../en/ch11-mq.xml:136
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13837 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13838 "Because quilt does not care about revision control tools, it is still a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13839 "tremendously useful piece of software to know about for situations where you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13840 "cannot use Mercurial and MQ."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13841 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13842
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13843 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13844 #: ../en/ch11-mq.xml:144
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13845 msgid "The huge advantage of MQ"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13846 msgstr "MQ 的巨大优势"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13847
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13848 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13849 #: ../en/ch11-mq.xml:146
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13850 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13851 "I cannot overstate the value that MQ offers through the unification of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13852 "patches and revision control."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13853 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13854
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13855 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13856 #: ../en/ch11-mq.xml:149
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13857 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13858 "A major reason that patches have persisted in the free software and open "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13859 "source world—in spite of the availability of increasingly capable revision "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13860 "control tools over the years—is the <emphasis>agility</emphasis> they offer."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13861 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13862
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13863 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13864 #: ../en/ch11-mq.xml:155
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13865 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13866 "Traditional revision control tools make a permanent, irreversible record of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13867 "everything that you do. While this has great value, it's also somewhat "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13868 "stifling. If you want to perform a wild-eyed experiment, you have to be "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13869 "careful in how you go about it, or you risk leaving unneeded—or worse, "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13870 "misleading or destabilising—traces of your missteps and errors in the "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13871 "permanent revision record."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13872 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13873
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13874 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13875 #: ../en/ch11-mq.xml:163
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13876 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13877 "By contrast, MQ's marriage of distributed revision control with patches makes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13878 "it much easier to isolate your work. Your patches live on top of normal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13879 "revision history, and you can make them disappear or reappear at will. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13880 "you don't like a patch, you can drop it. If a patch isn't quite as you want "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13881 "it to be, simply fix it—as many times as you need to, until you have refined "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13882 "it into the form you desire."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13883 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13884
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13885 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13886 #: ../en/ch11-mq.xml:171
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13887 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13888 "As an example, the integration of patches with revision control makes "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13889 "understanding patches and debugging their effects—and their interplay with "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13890 "the code they're based on—<emphasis>enormously</emphasis> easier. Since every "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13891 "applied patch has an associated changeset, you can give <command role=\"hg-cmd"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13892 "\">hg log</command> a file name to see which changesets and patches affected "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13893 "the file. You can use the <command role=\"hg-cmd\">hg bisect</command> "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13894 "command to binary-search through all changesets and applied patches to see "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13895 "where a bug got introduced or fixed. You can use the <command role=\"hg-cmd"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13896 "\">hg annotate</command> command to see which changeset or patch modified a "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
13897 "particular line of a source file. And so on."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13898 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13899
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13900 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13901 #: ../en/ch11-mq.xml:189
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13902 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13903 "Because MQ doesn't hide its patch-oriented nature, it is helpful to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13904 "understand what patches are, and a little about the tools that work with them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13905 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13906
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13907 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13908 #: ../en/ch11-mq.xml:193
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13909 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13910 "The traditional Unix <command>diff</command> command compares two files, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13911 "prints a list of differences between them. The <command>patch</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13912 "command understands these differences as <emphasis>modifications</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13913 "to make to a file. Take a look below for a simple example of these commands "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13914 "in action."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13915 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13916
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13917 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13918 #: ../en/ch11-mq.xml:202
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13919 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13920 "The type of file that <command>diff</command> generates (and <command>patch</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13921 "command> takes as input) is called a <quote>patch</quote> or a <quote>diff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13922 "quote>; there is no difference between a patch and a diff. (We'll use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13923 "term <quote>patch</quote>, since it's more commonly used.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13924 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13925
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13926 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13927 #: ../en/ch11-mq.xml:208
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13928 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13929 "A patch file can start with arbitrary text; the <command>patch</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13930 "command ignores this text, but MQ uses it as the commit message when creating "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13931 "changesets. To find the beginning of the patch content, <command>patch</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13932 "command> searches for the first line that starts with the string "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13933 "<quote><literal>diff -</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13934 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13935
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13936 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13937 #: ../en/ch11-mq.xml:215
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13938 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13939 "MQ works with <emphasis>unified</emphasis> diffs (<command>patch</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13940 "can accept several other diff formats, but MQ doesn't). A unified diff "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13941 "contains two kinds of header. The <emphasis>file header</emphasis> describes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13942 "the file being modified; it contains the name of the file to modify. When "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13943 "<command>patch</command> sees a new file header, it looks for a file with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13944 "that name to start modifying."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13945 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13946
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13947 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13948 #: ../en/ch11-mq.xml:223
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13949 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13950 "After the file header comes a series of <emphasis>hunks</emphasis>. Each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13951 "hunk starts with a header; this identifies the range of line numbers within "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13952 "the file that the hunk should modify. Following the header, a hunk starts "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13953 "and ends with a few (usually three) lines of text from the unmodified file; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13954 "these are called the <emphasis>context</emphasis> for the hunk. If there's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13955 "only a small amount of context between successive hunks, <command>diff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13956 "command> doesn't print a new hunk header; it just runs the hunks together, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13957 "with a few lines of context between modifications."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13958 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13959
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13960 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13961 #: ../en/ch11-mq.xml:235
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13962 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13963 "Each line of context begins with a space character. Within the hunk, a line "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13964 "that begins with <quote><literal>-</literal></quote> means <quote>remove this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13965 "line,</quote> while a line that begins with <quote><literal>+</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13966 "quote> means <quote>insert this line.</quote> For example, a line that is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13967 "modified is represented by one deletion and one insertion."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13968 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13969
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13970 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13971 #: ../en/ch11-mq.xml:243
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13972 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13973 "We will return to some of the more subtle aspects of patches later (in <xref "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13974 "linkend=\"sec:mq:adv-patch\"/>), but you should have enough information now "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
13975 "to use MQ."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13976 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13977
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13978 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13979 #: ../en/ch11-mq.xml:250
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13980 msgid "Getting started with Mercurial Queues"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
13981 msgstr "开始使用 MQ"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13982
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13983 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13984 #: ../en/ch11-mq.xml:252
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13985 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13986 "Because MQ is implemented as an extension, you must explicitly enable before "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13987 "you can use it. (You don't need to download anything; MQ ships with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13988 "standard Mercurial distribution.) To enable MQ, edit your <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13989 "\"home\">~/.hgrc</filename> file, and add the lines below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13990 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13991
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13992 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
13993 #: ../en/ch11-mq.xml:262
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13994 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13995 "Once the extension is enabled, it will make a number of new commands "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13996 "available. To verify that the extension is working, you can use <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13997 "role=\"hg-cmd\">hg help</command> to see if the <command role=\"hg-ext-mq"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13998 "\">qinit</command> command is now available."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
13999 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14000
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14001 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14002 #: ../en/ch11-mq.xml:270
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14003 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14004 "You can use MQ with <emphasis>any</emphasis> Mercurial repository, and its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14005 "commands only operate within that repository. To get started, simply prepare "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14006 "the repository using the <command role=\"hg-ext-mq\">qinit</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14007 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14008
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14009 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14010 #: ../en/ch11-mq.xml:277
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14011 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14012 "This command creates an empty directory called <filename role=\"special\" "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14013 "class=\"directory\">.hg/patches</filename>, where MQ will keep its metadata. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14014 "As with many Mercurial commands, the <command role=\"hg-ext-mq\">qinit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14015 "command> command prints nothing if it succeeds."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14016 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14017
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14018 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14019 #: ../en/ch11-mq.xml:284
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14020 msgid "Creating a new patch"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14021 msgstr "创建新补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14022
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14023 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14024 #: ../en/ch11-mq.xml:286
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14025 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14026 "To begin work on a new patch, use the <command role=\"hg-ext-mq\">qnew</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14027 "command> command. This command takes one argument, the name of the patch to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14028 "create."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14029 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14030
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14031 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14032 #: ../en/ch11-mq.xml:290
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14033 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14034 "MQ will use this as the name of an actual file in the <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14035 "\" class=\"directory\">.hg/patches</filename> directory, as you can see below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14036 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14037
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14038 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14039 #: ../en/ch11-mq.xml:297
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14040 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14041 "Also newly present in the <filename role=\"special\" class=\"directory\">.hg/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14042 "patches</filename> directory are two other files, <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14043 "\">series</filename> and <filename role=\"special\">status</filename>. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14044 "<filename role=\"special\">series</filename> file lists all of the patches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14045 "that MQ knows about for this repository, with one patch per line. Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14046 "uses the <filename role=\"special\">status</filename> file for internal book-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14047 "keeping; it tracks all of the patches that MQ has <emphasis>applied</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14048 "emphasis> in this repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14049 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14050
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14051 #. type: Content of: <book><chapter><sect1><sect2><note><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14052 #: ../en/ch11-mq.xml:309
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14053 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14054 "You may sometimes want to edit the <filename role=\"special\">series</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14055 "filename> file by hand; for example, to change the sequence in which some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14056 "patches are applied. However, manually editing the <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14057 "\">status</filename> file is almost always a bad idea, as it's easy to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14058 "corrupt MQ's idea of what is happening."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14059 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14060
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14061 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14062 #: ../en/ch11-mq.xml:318
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14063 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14064 "Once you have created your new patch, you can edit files in the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14065 "directory as you usually would. All of the normal Mercurial commands, such "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14066 "as <command role=\"hg-cmd\">hg diff</command> and <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14067 "annotate</command>, work exactly as they did before."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14068 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14069
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14070 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14071 #: ../en/ch11-mq.xml:326
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14072 msgid "Refreshing a patch"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14073 msgstr "刷新补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14074
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14075 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14076 #: ../en/ch11-mq.xml:328
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14077 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14078 "When you reach a point where you want to save your work, use the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14079 "role=\"hg-ext-mq\">qrefresh</command> command to update the patch you are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14080 "working on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14081 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14082
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14083 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14084 #: ../en/ch11-mq.xml:334
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14085 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14086 "This command folds the changes you have made in the working directory into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14087 "your patch, and updates its corresponding changeset to contain those changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14088 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14089
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14090 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14091 #: ../en/ch11-mq.xml:338
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14092 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14093 "You can run <command role=\"hg-ext-mq\">qrefresh</command> as often as you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14094 "like, so it's a good way to <quote>checkpoint</quote> your work. Refresh "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14095 "your patch at an opportune time; try an experiment; and if the experiment "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14096 "doesn't work out, <command role=\"hg-cmd\">hg revert</command> your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14097 "modifications back to the last time you refreshed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14098 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14099
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14100 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14101 #: ../en/ch11-mq.xml:349
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14102 msgid "Stacking and tracking patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14103 msgstr "堆叠和跟踪补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14104
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14105 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14106 #: ../en/ch11-mq.xml:351
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14107 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14108 "Once you have finished working on a patch, or need to work on another, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14109 "can use the <command role=\"hg-ext-mq\">qnew</command> command again to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14110 "create a new patch. Mercurial will apply this patch on top of your existing "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14111 "patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14112 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14113
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14114 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14115 #: ../en/ch11-mq.xml:358
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14116 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14117 "Notice that the patch contains the changes in our prior patch as part of its "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14118 "context (you can see this more clearly in the output of <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14119 "\">hg annotate</command>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14120 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14121
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14122 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14123 #: ../en/ch11-mq.xml:363
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14124 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14125 "So far, with the exception of <command role=\"hg-ext-mq\">qnew</command> and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14126 "<command role=\"hg-ext-mq\">qrefresh</command>, we've been careful to only "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14127 "use regular Mercurial commands. However, MQ provides many commands that are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14128 "easier to use when you are thinking about patches, as illustrated below."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14129 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14130
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14131 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14132 #: ../en/ch11-mq.xml:373
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14133 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14134 "The <command role=\"hg-ext-mq\">qseries</command> command lists every patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14135 "that MQ knows about in this repository, from oldest to newest (most recently "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14136 "<emphasis>created</emphasis>)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14137 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14138
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14139 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14140 #: ../en/ch11-mq.xml:379
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14141 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14142 "The <command role=\"hg-ext-mq\">qapplied</command> command lists every patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14143 "that MQ has <emphasis>applied</emphasis> in this repository, again from "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14144 "oldest to newest (most recently applied)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14145 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14146
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14147 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14148 #: ../en/ch11-mq.xml:388
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14149 msgid "Manipulating the patch stack"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14150 msgstr "操作补丁堆栈"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14151
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14152 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14153 #: ../en/ch11-mq.xml:390
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14154 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14155 "The previous discussion implied that there must be a difference between "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14156 "<quote>known</quote> and <quote>applied</quote> patches, and there is. MQ "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14157 "can manage a patch without it being applied in the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14158 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14159
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14160 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14161 #: ../en/ch11-mq.xml:395
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14162 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14163 "An <emphasis>applied</emphasis> patch has a corresponding changeset in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14164 "repository, and the effects of the patch and changeset are visible in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14165 "working directory. You can undo the application of a patch using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14166 "<command role=\"hg-ext-mq\">qpop</command> command. MQ still <emphasis>knows "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14167 "about</emphasis>, or manages, a popped patch, but the patch no longer has a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14168 "corresponding changeset in the repository, and the working directory does not "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14169 "contain the changes made by the patch. <xref linkend=\"fig:mq:stack\"/> "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14170 "illustrates the difference between applied and tracked patches."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14171 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14172
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14173 #. type: Content of: <book><chapter><sect1><sect2><figure><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14174 #: ../en/ch11-mq.xml:408
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14175 msgid "Applied and unapplied patches in the MQ patch stack"
759
f7add9f718a8 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 757
diff changeset
14176 msgstr "在 MQ 补丁堆栈中应用和撤销补丁"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14177
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14178 #. type: Content of: <book><chapter><sect1><sect2><figure><mediaobject>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14179 #: ../en/ch11-mq.xml:411
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14180 msgid "<imageobject><imagedata fileref=\"figs/mq-stack.png\"/></imageobject>"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14181 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14182
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14183 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14184 #: ../en/ch11-mq.xml:416
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14185 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14186 "You can reapply an unapplied, or popped, patch using the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14187 "ext-mq\">qpush</command> command. This creates a new changeset to correspond "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14188 "to the patch, and the patch's changes once again become present in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14189 "working directory. See below for examples of <command role=\"hg-ext-mq"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14190 "\">qpop</command> and <command role=\"hg-ext-mq\">qpush</command> in action."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14191 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14192
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14193 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14194 #: ../en/ch11-mq.xml:425
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14195 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14196 "Notice that once we have popped a patch or two patches, the output of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14197 "<command role=\"hg-ext-mq\">qseries</command> remains the same, while that of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14198 "<command role=\"hg-ext-mq\">qapplied</command> has changed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14199 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14200
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14201 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14202 #: ../en/ch11-mq.xml:433
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14203 msgid "Pushing and popping many patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14204 msgstr "压入或弹出多个补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14205
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14206 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14207 #: ../en/ch11-mq.xml:435
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14208 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14209 "While <command role=\"hg-ext-mq\">qpush</command> and <command role=\"hg-ext-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14210 "mq\">qpop</command> each operate on a single patch at a time by default, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14211 "can push and pop many patches in one go. The <option role=\"hg-ext-mq-cmd-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14212 "qpush-opt\">hg -a</option> option to <command role=\"hg-ext-mq\">qpush</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14213 "command> causes it to push all unapplied patches, while the <option role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14214 "ext-mq-cmd-qpop-opt\">-a</option> option to <command role=\"hg-ext-mq\">qpop</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14215 "command> causes it to pop all applied patches. (For some more ways to push "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14216 "and pop many patches, see <xref linkend=\"sec:mq:perf\"/> below.)"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14217 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14218
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14219 #. type: Content of: <book><chapter><sect1><sect2><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14220 #: ../en/ch11-mq.xml:451
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14221 msgid "Safety checks, and overriding them"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14222 msgstr "安全的检查,然后覆盖它们"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14223
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14224 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14225 #: ../en/ch11-mq.xml:453
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14226 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14227 "Several MQ commands check the working directory before they do anything, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14228 "fail if they find any modifications. They do this to ensure that you won't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14229 "lose any changes that you have made, but not yet incorporated into a patch. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14230 "The example below illustrates this; the <command role=\"hg-ext-mq\">qnew</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14231 "command> command will not create a new patch if there are outstanding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14232 "changes, caused in this case by the <command role=\"hg-cmd\">hg add</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14233 "of <filename>file3</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14234 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14235
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14236 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14237 #: ../en/ch11-mq.xml:465
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14238 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14239 "Commands that check the working directory all take an <quote>I know what I'm "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14240 "doing</quote> option, which is always named <option>-f</option>. The exact "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14241 "meaning of <option>-f</option> depends on the command. For example, <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14242 "role=\"hg-cmd\">hg qnew <option role=\"hg-ext-mq-cmd-qnew-opt\">hg -f</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14243 "option></command> will incorporate any outstanding changes into the new patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14244 "it creates, but <command role=\"hg-cmd\">hg qpop <option role=\"hg-ext-mq-cmd-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14245 "qpop-opt\">hg -f</option></command> will revert modifications to any files "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14246 "affected by the patch that it is popping. Be sure to read the documentation "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14247 "for a command's <option>-f</option> option before you use it!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14248 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14249
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14250 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14251 #: ../en/ch11-mq.xml:480
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14252 msgid "Working on several patches at once"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14253 msgstr "同时处理多个补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14254
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14255 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14256 #: ../en/ch11-mq.xml:482
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14257 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14258 "The <command role=\"hg-ext-mq\">qrefresh</command> command always refreshes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14259 "the <emphasis>topmost</emphasis> applied patch. This means that you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14260 "suspend work on one patch (by refreshing it), pop or push to make a different "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14261 "patch the top, and work on <emphasis>that</emphasis> patch for a while."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14262 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14263
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14264 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14265 #: ../en/ch11-mq.xml:489
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14266 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14267 "Here's an example that illustrates how you can use this ability. Let's say "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14268 "you're developing a new feature as two patches. The first is a change to the "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14269 "core of your software, and the second—layered on top of the first—changes the "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14270 "user interface to use the code you just added to the core. If you notice a "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14271 "bug in the core while you're working on the UI patch, it's easy to fix the "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14272 "core. Simply <command role=\"hg-ext-mq\">qrefresh</command> the UI patch to "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14273 "save your in-progress changes, and <command role=\"hg-ext-mq\">qpop</command> "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14274 "down to the core patch. Fix the core bug, <command role=\"hg-ext-mq"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14275 "\">qrefresh</command> the core patch, and <command role=\"hg-ext-mq\">qpush</"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14276 "command> back to the UI patch to continue where you left off."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14277 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14278
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14279 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14280 #: ../en/ch11-mq.xml:506
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14281 msgid "More about patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14282 msgstr "关于补丁的更多信息"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14283
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14284 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14285 #: ../en/ch11-mq.xml:508
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14286 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14287 "MQ uses the GNU <command>patch</command> command to apply patches, so it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14288 "helpful to know a few more detailed aspects of how <command>patch</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14289 "works, and about patches themselves."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14290 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14291
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14292 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14293 #: ../en/ch11-mq.xml:514
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14294 msgid "The strip count"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14295 msgstr "修剪计数"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14296
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14297 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14298 #: ../en/ch11-mq.xml:516
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14299 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14300 "If you look at the file headers in a patch, you will notice that the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14301 "pathnames usually have an extra component on the front that isn't present in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14302 "the actual path name. This is a holdover from the way that people used to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14303 "generate patches (people still do this, but it's somewhat rare with modern "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14304 "revision control tools)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14305 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14306
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14307 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14308 #: ../en/ch11-mq.xml:523
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14309 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14310 "Alice would unpack a tarball, edit her files, then decide that she wanted to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14311 "create a patch. So she'd rename her working directory, unpack the tarball "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14312 "again (hence the need for the rename), and use the <option role=\"cmd-opt-diff"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14313 "\">-r</option> and <option role=\"cmd-opt-diff\">-N</option> options to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14314 "<command>diff</command> to recursively generate a patch between the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14315 "unmodified directory and the modified one. The result would be that the name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14316 "of the unmodified directory would be at the front of the left-hand path in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14317 "every file header, and the name of the modified directory would be at the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14318 "front of the right-hand path."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14319 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14320
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14321 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14322 #: ../en/ch11-mq.xml:536
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14323 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14324 "Since someone receiving a patch from the Alices of the net would be unlikely "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14325 "to have unmodified and modified directories with exactly the same names, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14326 "<command>patch</command> command has a <option role=\"cmd-opt-patch\">-p</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14327 "option> option that indicates the number of leading path name components to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14328 "strip when trying to apply a patch. This number is called the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14329 "<emphasis>strip count</emphasis>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14330 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14331
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14332 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14333 #: ../en/ch11-mq.xml:544
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14334 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14335 "An option of <quote><literal>-p1</literal></quote> means <quote>use a strip "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14336 "count of one</quote>. If <command>patch</command> sees a file name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14337 "<filename>foo/bar/baz</filename> in a file header, it will strip "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14338 "<filename>foo</filename> and try to patch a file named <filename>bar/baz</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14339 "filename>. (Strictly speaking, the strip count refers to the number of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14340 "<emphasis>path separators</emphasis> (and the components that go with them ) "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14341 "to strip. A strip count of one will turn <filename>foo/bar</filename> into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14342 "<filename>bar</filename>, but <filename>/foo/bar</filename> (notice the extra "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14343 "leading slash) into <filename>foo/bar</filename>.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14344 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14345
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14346 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14347 #: ../en/ch11-mq.xml:557
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14348 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14349 "The <quote>standard</quote> strip count for patches is one; almost all "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14350 "patches contain one leading path name component that needs to be stripped. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14351 "Mercurial's <command role=\"hg-cmd\">hg diff</command> command generates path "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14352 "names in this form, and the <command role=\"hg-cmd\">hg import</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14353 "command and MQ expect patches to have a strip count of one."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14354 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14355
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14356 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14357 #: ../en/ch11-mq.xml:565
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14358 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14359 "If you receive a patch from someone that you want to add to your patch queue, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14360 "and the patch needs a strip count other than one, you cannot just <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14361 "role=\"hg-ext-mq\">qimport</command> the patch, because <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14362 "ext-mq\">qimport</command> does not yet have a <literal>-p</literal> option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14363 "(see <ulink role=\"hg-bug\" url=\"http://www.selenic.com/mercurial/bts/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14364 "issue311\">issue 311</ulink>). Your best bet is to <command role=\"hg-ext-mq"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14365 "\">qnew</command> a patch of your own, then use <command>patch -pN</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14366 "to apply their patch, followed by <command role=\"hg-cmd\">hg addremove</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14367 "command> to pick up any files added or removed by the patch, followed by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14368 "<command role=\"hg-ext-mq\">hg qrefresh</command>. This complexity may become "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14369 "unnecessary; see <ulink role=\"hg-bug\" url=\"http://www.selenic.com/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14370 "mercurial/bts/issue311\">issue 311</ulink> for details."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14371 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14372
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14373 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14374 #: ../en/ch11-mq.xml:584
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14375 msgid "Strategies for applying a patch"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14376 msgstr "应用补丁的策略"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14377
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14378 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14379 #: ../en/ch11-mq.xml:586
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14380 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14381 "When <command>patch</command> applies a hunk, it tries a handful of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14382 "successively less accurate strategies to try to make the hunk apply. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14383 "falling-back technique often makes it possible to take a patch that was "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14384 "generated against an old version of a file, and apply it against a newer "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14385 "version of that file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14386 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14387
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14388 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14389 #: ../en/ch11-mq.xml:593
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14390 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14391 "First, <command>patch</command> tries an exact match, where the line numbers, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14392 "the context, and the text to be modified must apply exactly. If it cannot "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14393 "make an exact match, it tries to find an exact match for the context, without "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14394 "honouring the line numbering information. If this succeeds, it prints a line "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14395 "of output saying that the hunk was applied, but at some <emphasis>offset</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14396 "emphasis> from the original line number."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14397 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14398
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14399 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14400 #: ../en/ch11-mq.xml:602
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14401 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14402 "If a context-only match fails, <command>patch</command> removes the first and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14403 "last lines of the context, and tries a <emphasis>reduced</emphasis> context-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14404 "only match. If the hunk with reduced context succeeds, it prints a message "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14405 "saying that it applied the hunk with a <emphasis>fuzz factor</emphasis> (the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14406 "number after the fuzz factor indicates how many lines of context "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14407 "<command>patch</command> had to trim before the patch applied)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14408 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14409
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14410 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14411 #: ../en/ch11-mq.xml:611
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14412 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14413 "When neither of these techniques works, <command>patch</command> prints a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14414 "message saying that the hunk in question was rejected. It saves rejected "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14415 "hunks (also simply called <quote>rejects</quote>) to a file with the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14416 "name, and an added <filename role=\"special\">.rej</filename> extension. It "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14417 "also saves an unmodified copy of the file with a <filename role=\"special\">."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14418 "orig</filename> extension; the copy of the file without any extensions will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14419 "contain any changes made by hunks that <emphasis>did</emphasis> apply "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14420 "cleanly. If you have a patch that modifies <filename>foo</filename> with six "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14421 "hunks, and one of them fails to apply, you will have: an unmodified "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14422 "<filename>foo.orig</filename>, a <filename>foo.rej</filename> containing one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14423 "hunk, and <filename>foo</filename>, containing the changes made by the five "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14424 "successful hunks."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14425 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14426
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14427 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14428 #: ../en/ch11-mq.xml:629
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14429 msgid "Some quirks of patch representation"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14430 msgstr "补丁的一些特性"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14431
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14432 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14433 #: ../en/ch11-mq.xml:631
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14434 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14435 "There are a few useful things to know about how <command>patch</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14436 "works with files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14437 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14438
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14439 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14440 #: ../en/ch11-mq.xml:634
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14441 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14442 "This should already be obvious, but <command>patch</command> cannot handle "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14443 "binary files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14444 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14445
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14446 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14447 #: ../en/ch11-mq.xml:638
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14448 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14449 "Neither does it care about the executable bit; it creates new files as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14450 "readable, but not executable."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14451 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14452
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14453 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14454 #: ../en/ch11-mq.xml:642
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14455 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14456 "<command>patch</command> treats the removal of a file as a diff between the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14457 "file to be removed and the empty file. So your idea of <quote>I deleted this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14458 "file</quote> looks like <quote>every line of this file was deleted</quote> in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14459 "a patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14460 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14461
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14462 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14463 #: ../en/ch11-mq.xml:648
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14464 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14465 "It treats the addition of a file as a diff between the empty file and the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14466 "file to be added. So in a patch, your idea of <quote>I added this file</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14467 "quote> looks like <quote>every line of this file was added</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14468 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14469
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14470 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14471 #: ../en/ch11-mq.xml:654
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14472 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14473 "It treats a renamed file as the removal of the old name, and the addition of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14474 "the new name. This means that renamed files have a big footprint in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14475 "patches. (Note also that Mercurial does not currently try to infer when "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14476 "files have been renamed or copied in a patch.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14477 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14478
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14479 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14480 #: ../en/ch11-mq.xml:660
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14481 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14482 "<command>patch</command> cannot represent empty files, so you cannot use a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14483 "patch to represent the notion <quote>I added this empty file to the tree</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14484 "quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14485 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14486
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14487 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14488 #: ../en/ch11-mq.xml:667
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14489 msgid "Beware the fuzz"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14490 msgstr "当心毛刺"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14491
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14492 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14493 #: ../en/ch11-mq.xml:669
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14494 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14495 "While applying a hunk at an offset, or with a fuzz factor, will often be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14496 "completely successful, these inexact techniques naturally leave open the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14497 "possibility of corrupting the patched file. The most common cases typically "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14498 "involve applying a patch twice, or at an incorrect location in the file. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14499 "<command>patch</command> or <command role=\"hg-ext-mq\">qpush</command> ever "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14500 "mentions an offset or fuzz factor, you should make sure that the modified "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14501 "files are correct afterwards."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14502 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14503
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14504 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14505 #: ../en/ch11-mq.xml:679
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14506 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14507 "It's often a good idea to refresh a patch that has applied with an offset or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14508 "fuzz factor; refreshing the patch generates new context information that will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14509 "make it apply cleanly. I say <quote>often,</quote> not <quote>always,</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14510 "quote> because sometimes refreshing a patch will make it fail to apply "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14511 "against a different revision of the underlying files. In some cases, such as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14512 "when you're maintaining a patch that must sit on top of multiple versions of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14513 "a source tree, it's acceptable to have a patch apply with some fuzz, provided "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14514 "you've verified the results of the patching process in such cases."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14515 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14516
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14517 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14518 #: ../en/ch11-mq.xml:692
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14519 msgid "Handling rejection"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14520 msgstr "处理拒绝"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14521
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14522 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14523 #: ../en/ch11-mq.xml:694
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14524 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14525 "If <command role=\"hg-ext-mq\">qpush</command> fails to apply a patch, it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14526 "will print an error message and exit. If it has left <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14527 "\">.rej</filename> files behind, it is usually best to fix up the rejected "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14528 "hunks before you push more patches or do any further work."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14529 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14530
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14531 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14532 #: ../en/ch11-mq.xml:700
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14533 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14534 "If your patch <emphasis>used to</emphasis> apply cleanly, and no longer does "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14535 "because you've changed the underlying code that your patches are based on, "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14536 "Mercurial Queues can help; see <xref linkend=\"sec:mq:merge\"/> for details."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14537 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14538
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14539 #. type: Content of: <book><chapter><sect1><sect2><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14540 #: ../en/ch11-mq.xml:705
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14541 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14542 "Unfortunately, there aren't any great techniques for dealing with rejected "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14543 "hunks. Most often, you'll need to view the <filename role=\"special\">.rej</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14544 "filename> file and edit the target file, applying the rejected hunks by hand."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14545 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14546
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14547 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14548 #: ../en/ch11-mq.xml:710
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14549 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14550 "If you're feeling adventurous, Neil Brown, a Linux kernel hacker, wrote a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14551 "tool called <command>wiggle</command> <citation>web:wiggle</citation>, which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14552 "is more vigorous than <command>patch</command> in its attempts to make a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14553 "patch apply."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14554 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14555
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14556 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14557 #: ../en/ch11-mq.xml:716
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14558 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14559 "Another Linux kernel hacker, Chris Mason (the author of Mercurial Queues), "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14560 "wrote a similar tool called <command>mpatch</command> <citation>web:mpatch</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14561 "citation>, which takes a simple approach to automating the application of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14562 "hunks rejected by <command>patch</command>. The <command>mpatch</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14563 "command can help with four common reasons that a hunk may be rejected:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14564 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14565
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14566 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14567 #: ../en/ch11-mq.xml:725
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14568 msgid "The context in the middle of a hunk has changed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14569 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14570
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14571 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14572 #: ../en/ch11-mq.xml:728
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14573 msgid "A hunk is missing some context at the beginning or end."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14574 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14575
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14576 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14577 #: ../en/ch11-mq.xml:731
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14578 msgid ""
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14579 "A large hunk might apply better—either entirely or in part&emdash;if it was "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
14580 "broken up into smaller hunks."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14581 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14582
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14583 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14584 #: ../en/ch11-mq.xml:735
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14585 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14586 "A hunk removes lines with slightly different content than those currently "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14587 "present in the file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14588 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14589
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14590 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14591 #: ../en/ch11-mq.xml:739
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14592 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14593 "If you use <command>wiggle</command> or <command>mpatch</command>, you should "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14594 "be doubly careful to check your results when you're done. In fact, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14595 "<command>mpatch</command> enforces this method of double-checking the tool's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14596 "output, by automatically dropping you into a merge program when it has done "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14597 "its job, so that you can verify its work and finish off any remaining merges."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14598 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14599
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14600 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14601 #: ../en/ch11-mq.xml:751
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14602 msgid "Getting the best performance out of MQ"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14603 msgstr "MQ 的性能"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14604
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14605 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14606 #: ../en/ch11-mq.xml:753
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14607 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14608 "MQ is very efficient at handling a large number of patches. I ran some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14609 "performance experiments in mid-2006 for a talk that I gave at the 2006 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14610 "EuroPython conference <citation>web:europython</citation>. I used as my data "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14611 "set the Linux 2.6.17-mm1 patch series, which consists of 1,738 patches. I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14612 "applied these on top of a Linux kernel repository containing all 27,472 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14613 "revisions between Linux 2.6.12-rc2 and Linux 2.6.17."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14614 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14615
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14616 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14617 #: ../en/ch11-mq.xml:762
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14618 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14619 "On my old, slow laptop, I was able to <command role=\"hg-cmd\">hg qpush "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14620 "<option role=\"hg-ext-mq-cmd-qpush-opt\">hg -a</option></command> all 1,738 "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14621 "patches in 3.5 minutes, and <command role=\"hg-cmd\">hg qpop <option role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14622 "\"hg-ext-mq-cmd-qpop-opt\">hg -a</option></command> them all in 30 seconds. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14623 "(On a newer laptop, the time to push all patches dropped to two minutes.) I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14624 "could <command role=\"hg-ext-mq\">qrefresh</command> one of the biggest "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14625 "patches (which made 22,779 lines of changes to 287 files) in 6.6 seconds."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14626 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14627
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14628 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14629 #: ../en/ch11-mq.xml:773
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14630 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14631 "Clearly, MQ is well suited to working in large trees, but there are a few "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14632 "tricks you can use to get the best performance of it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14633 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14634
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14635 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14636 #: ../en/ch11-mq.xml:777
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14637 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14638 "First of all, try to <quote>batch</quote> operations together. Every time "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14639 "you run <command role=\"hg-ext-mq\">qpush</command> or <command role=\"hg-ext-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14640 "mq\">qpop</command>, these commands scan the working directory once to make "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14641 "sure you haven't made some changes and then forgotten to run <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14642 "\"hg-ext-mq\">qrefresh</command>. On a small tree, the time that this scan "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14643 "takes is unnoticeable. However, on a medium-sized tree (containing tens of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14644 "thousands of files), it can take a second or more."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14645 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14646
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14647 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14648 #: ../en/ch11-mq.xml:788
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14649 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14650 "The <command role=\"hg-ext-mq\">qpush</command> and <command role=\"hg-ext-mq"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14651 "\">qpop</command> commands allow you to push and pop multiple patches at a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14652 "time. You can identify the <quote>destination patch</quote> that you want to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14653 "end up at. When you <command role=\"hg-ext-mq\">qpush</command> with a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14654 "destination specified, it will push patches until that patch is at the top of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14655 "the applied stack. When you <command role=\"hg-ext-mq\">qpop</command> to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14656 "destination, MQ will pop patches until the destination patch is at the top."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14657 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14658
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14659 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14660 #: ../en/ch11-mq.xml:798
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14661 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14662 "You can identify a destination patch using either the name of the patch, or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14663 "by number. If you use numeric addressing, patches are counted from zero; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14664 "this means that the first patch is zero, the second is one, and so on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14665 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14666
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14667 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14668 #: ../en/ch11-mq.xml:805
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14669 msgid "Updating your patches when the underlying code changes"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14670 msgstr "当基础代码改变时,更新补丁的方法"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14671
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14672 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14673 #: ../en/ch11-mq.xml:808
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14674 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14675 "It's common to have a stack of patches on top of an underlying repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14676 "that you don't modify directly. If you're working on changes to third-party "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14677 "code, or on a feature that is taking longer to develop than the rate of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14678 "change of the code beneath, you will often need to sync up with the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14679 "underlying code, and fix up any hunks in your patches that no longer apply. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14680 "This is called <emphasis>rebasing</emphasis> your patch series."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14681 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14682
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14683 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14684 #: ../en/ch11-mq.xml:817
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14685 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14686 "The simplest way to do this is to <command role=\"hg-cmd\">hg qpop <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14687 "role=\"hg-ext-mq-cmd-qpop-opt\">hg -a</option></command> your patches, then "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14688 "<command role=\"hg-cmd\">hg pull</command> changes into the underlying "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14689 "repository, and finally <command role=\"hg-cmd\">hg qpush <option role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14690 "ext-mq-cmd-qpop-opt\">hg -a</option></command> your patches again. MQ will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14691 "stop pushing any time it runs across a patch that fails to apply during "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14692 "conflicts, allowing you to fix your conflicts, <command role=\"hg-ext-mq"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14693 "\">qrefresh</command> the affected patch, and continue pushing until you have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14694 "fixed your entire stack."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14695 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14696
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14697 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14698 #: ../en/ch11-mq.xml:829
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14699 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14700 "This approach is easy to use and works well if you don't expect changes to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14701 "the underlying code to affect how well your patches apply. If your patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14702 "stack touches code that is modified frequently or invasively in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14703 "underlying repository, however, fixing up rejected hunks by hand quickly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14704 "becomes tiresome."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14705 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14706
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14707 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14708 #: ../en/ch11-mq.xml:836
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14709 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14710 "It's possible to partially automate the rebasing process. If your patches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14711 "apply cleanly against some revision of the underlying repo, MQ can use this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14712 "information to help you to resolve conflicts between your patches and a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14713 "different revision."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14714 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14715
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14716 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14717 #: ../en/ch11-mq.xml:842
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14718 msgid "The process is a little involved."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14719 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14720
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14721 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14722 #: ../en/ch11-mq.xml:844
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14723 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14724 "To begin, <command role=\"hg-cmd\">hg qpush -a</command> all of your patches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14725 "on top of the revision where you know that they apply cleanly."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14726 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14727
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14728 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14729 #: ../en/ch11-mq.xml:848
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14730 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14731 "Save a backup copy of your patch directory using <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14732 "qsave <option role=\"hg-ext-mq-cmd-qsave-opt\">hg -e</option> <option role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14733 "\"hg-ext-mq-cmd-qsave-opt\">hg -c</option></command>. This prints the name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14734 "of the directory that it has saved the patches in. It will save the patches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14735 "to a directory called <filename role=\"special\" class=\"directory\">.hg/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14736 "patches.N</filename>, where <literal>N</literal> is a small integer. It also "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14737 "commits a <quote>save changeset</quote> on top of your applied patches; this "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14738 "is for internal book-keeping, and records the states of the <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14739 "\"special\">series</filename> and <filename role=\"special\">status</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14740 "filename> files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14741 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14742
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14743 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14744 #: ../en/ch11-mq.xml:862
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14745 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14746 "Use <command role=\"hg-cmd\">hg pull</command> to bring new changes into the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14747 "underlying repository. (Don't run <command role=\"hg-cmd\">hg pull -u</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14748 "command>; see below for why.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14749 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14750
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14751 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14752 #: ../en/ch11-mq.xml:867
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14753 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14754 "Update to the new tip revision, using <command role=\"hg-cmd\">hg update "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14755 "<option role=\"hg-opt-update\">-C</option></command> to override the patches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14756 "you have pushed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14757 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14758
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14759 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14760 #: ../en/ch11-mq.xml:872
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14761 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14762 "Merge all patches using <command>hg qpush -m -a</command>. The <option role="
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14763 "\"hg-ext-mq-cmd-qpush-opt\">-m</option> option to <command role=\"hg-ext-mq"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14764 "\">qpush</command> tells MQ to perform a three-way merge if the patch fails "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14765 "to apply."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14766 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14767
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14768 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14769 #: ../en/ch11-mq.xml:880
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14770 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14771 "During the <command role=\"hg-cmd\">hg qpush <option role=\"hg-ext-mq-cmd-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14772 "qpush-opt\">hg -m</option></command>, each patch in the <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14773 "\"special\">series</filename> file is applied normally. If a patch applies "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14774 "with fuzz or rejects, MQ looks at the queue you <command role=\"hg-ext-mq"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14775 "\">qsave</command>d, and performs a three-way merge with the corresponding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14776 "changeset. This merge uses Mercurial's normal merge machinery, so it may pop "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14777 "up a GUI merge tool to help you to resolve problems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14778 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14779
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14780 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14781 #: ../en/ch11-mq.xml:890
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14782 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14783 "When you finish resolving the effects of a patch, MQ refreshes your patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14784 "based on the result of the merge."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14785 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14786
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14787 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14788 #: ../en/ch11-mq.xml:893
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14789 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14790 "At the end of this process, your repository will have one extra head from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14791 "old patch queue, and a copy of the old patch queue will be in <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14792 "\"special\" class=\"directory\">.hg/patches.N</filename>. You can remove the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14793 "extra head using <command role=\"hg-cmd\">hg qpop -a -n patches.N</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14794 "or <command role=\"hg-cmd\">hg strip</command>. You can delete <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14795 "role=\"special\" class=\"directory\">.hg/patches.N</filename> once you are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14796 "sure that you no longer need it as a backup."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14797 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14798
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14799 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14800 #: ../en/ch11-mq.xml:905
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14801 msgid "Identifying patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14802 msgstr "标识补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14803
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14804 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14805 #: ../en/ch11-mq.xml:907
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14806 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14807 "MQ commands that work with patches let you refer to a patch either by using "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14808 "its name or by a number. By name is obvious enough; pass the name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14809 "<filename>foo.patch</filename> to <command role=\"hg-ext-mq\">qpush</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14810 "command>, for example, and it will push patches until <filename>foo.patch</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14811 "filename> is applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14812 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14813
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14814 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14815 #: ../en/ch11-mq.xml:914
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14816 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14817 "As a shortcut, you can refer to a patch using both a name and a numeric "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14818 "offset; <literal>foo.patch-2</literal> means <quote>two patches before "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14819 "<literal>foo.patch</literal></quote>, while <literal>bar.patch+4</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14820 "means <quote>four patches after <literal>bar.patch</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14821 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14822
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14823 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14824 #: ../en/ch11-mq.xml:920
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14825 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14826 "Referring to a patch by index isn't much different. The first patch printed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14827 "in the output of <command role=\"hg-ext-mq\">qseries</command> is patch zero "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14828 "(yes, it's one of those start-at-zero counting systems); the second is patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14829 "one; and so on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14830 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14831
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14832 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14833 #: ../en/ch11-mq.xml:926
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14834 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14835 "MQ also makes it easy to work with patches when you are using normal "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14836 "Mercurial commands. Every command that accepts a changeset ID will also "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14837 "accept the name of an applied patch. MQ augments the tags normally in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14838 "repository with an eponymous one for each applied patch. In addition, the "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14839 "special tags <literal role=\"tag\">qbase</literal> and <literal role=\"tag"
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14840 "\">qtip</literal> identify the <quote>bottom-most</quote> and topmost applied "
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14841 "patches, respectively."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14842 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14843
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14844 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14845 #: ../en/ch11-mq.xml:936
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14846 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14847 "These additions to Mercurial's normal tagging capabilities make dealing with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14848 "patches even more of a breeze."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14849 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14850
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14851 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14852 #: ../en/ch11-mq.xml:939
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14853 msgid "Want to patchbomb a mailing list with your latest series of changes?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14854 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14855
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14856 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14857 #: ../en/ch11-mq.xml:942
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14858 msgid ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14859 "(Don't know what <quote>patchbombing</quote> is? See <xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14860 "hgext:patchbomb\"/>.)"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14861 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14862
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14863 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14864 #: ../en/ch11-mq.xml:945
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14865 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14866 "Need to see all of the patches since <literal>foo.patch</literal> that have "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14867 "touched files in a subdirectory of your tree?"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14868 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14869
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
14870 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14871 #: ../en/ch11-mq.xml:952
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14872 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14873 "Because MQ makes the names of patches available to the rest of Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14874 "through its normal internal tag machinery, you don't need to type in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14875 "entire name of a patch when you want to identify it by name."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14876 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14877
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14878 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14879 #: ../en/ch11-mq.xml:957
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14880 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14881 "Another nice consequence of representing patch names as tags is that when you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14882 "run the <command role=\"hg-cmd\">hg log</command> command, it will display a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14883 "patch's name as a tag, simply as part of its normal output. This makes it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14884 "easy to visually distinguish applied patches from underlying <quote>normal</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14885 "quote> revisions. The following example shows a few normal Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14886 "commands in use with applied patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14887 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14888
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14889 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14890 #: ../en/ch11-mq.xml:970
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14891 msgid "Useful things to know about"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14892 msgstr "其它需要了解的东西"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14893
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14894 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14895 #: ../en/ch11-mq.xml:972
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14896 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14897 "There are a number of aspects of MQ usage that don't fit tidily into sections "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14898 "of their own, but that are good to know. Here they are, in one place."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14899 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14900
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14901 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14902 #: ../en/ch11-mq.xml:977
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14903 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14904 "Normally, when you <command role=\"hg-ext-mq\">qpop</command> a patch and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14905 "<command role=\"hg-ext-mq\">qpush</command> it again, the changeset that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14906 "represents the patch after the pop/push will have a <emphasis>different "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14907 "identity</emphasis> than the changeset that represented the hash beforehand. "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14908 "See <xref linkend=\"sec:mqref:cmd:qpush\"/> for information as to why this is."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14909 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14910
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14911 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14912 #: ../en/ch11-mq.xml:986
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14913 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14914 "It's not a good idea to <command role=\"hg-cmd\">hg merge</command> changes "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14915 "from another branch with a patch changeset, at least if you want to maintain "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14916 "the <quote>patchiness</quote> of that changeset and changesets below it on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14917 "the patch stack. If you try to do this, it will appear to succeed, but MQ "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14918 "will become confused."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14919 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14920
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14921 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14922 #: ../en/ch11-mq.xml:997
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14923 msgid "Managing patches in a repository"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14924 msgstr "在版本库管理补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14925
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14926 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14927 #: ../en/ch11-mq.xml:999
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14928 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14929 "Because MQ's <filename role=\"special\" class=\"directory\">.hg/patches</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14930 "filename> directory resides outside a Mercurial repository's working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14931 "directory, the <quote>underlying</quote> Mercurial repository knows nothing "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14932 "about the management or presence of patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14933 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14934
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14935 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14936 #: ../en/ch11-mq.xml:1005
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14937 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14938 "This presents the interesting possibility of managing the contents of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14939 "patch directory as a Mercurial repository in its own right. This can be a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14940 "useful way to work. For example, you can work on a patch for a while, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14941 "<command role=\"hg-ext-mq\">qrefresh</command> it, then <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14942 "\">hg commit</command> the current state of the patch. This lets you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14943 "<quote>roll back</quote> to that version of the patch later on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14944 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14945
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14946 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14947 #: ../en/ch11-mq.xml:1014
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14948 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14949 "You can then share different versions of the same patch stack among multiple "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14950 "underlying repositories. I use this when I am developing a Linux kernel "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14951 "feature. I have a pristine copy of my kernel sources for each of several CPU "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14952 "architectures, and a cloned repository under each that contains the patches I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14953 "am working on. When I want to test a change on a different architecture, I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14954 "push my current patches to the patch repository associated with that kernel "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14955 "tree, pop and push all of my patches, and build and test that kernel."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14956 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14957
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14958 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14959 #: ../en/ch11-mq.xml:1024
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14960 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14961 "Managing patches in a repository makes it possible for multiple developers to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14962 "work on the same patch series without colliding with each other, all on top "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14963 "of an underlying source base that they may or may not control."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14964 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14965
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14966 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14967 #: ../en/ch11-mq.xml:1030
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14968 msgid "MQ support for patch repositories"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
14969 msgstr "MQ 支持补丁版本库"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14970
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14971 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14972 #: ../en/ch11-mq.xml:1032
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14973 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14974 "MQ helps you to work with the <filename role=\"special\" class=\"directory\">."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14975 "hg/patches</filename> directory as a repository; when you prepare a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14976 "repository for working with patches using <command role=\"hg-ext-mq\">qinit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14977 "command>, you can pass the <option role=\"hg-ext-mq-cmd-qinit-opt\">hg -c</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14978 "option> option to create the <filename role=\"special\" class=\"directory\">."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14979 "hg/patches</filename> directory as a Mercurial repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14980 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14981
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14982 #. type: Content of: <book><chapter><sect1><sect2><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14983 #: ../en/ch11-mq.xml:1042
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14984 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14985 "If you forget to use the <option role=\"hg-ext-mq-cmd-qinit-opt\">hg -c</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14986 "option> option, you can simply go into the <filename role=\"special\" class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14987 "\"directory\">.hg/patches</filename> directory at any time and run <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14988 "role=\"hg-cmd\">hg init</command>. Don't forget to add an entry for the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14989 "<filename role=\"special\">status</filename> file to the <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14990 "\"special\">.hgignore</filename> file, though"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14991 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14992
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14993 #. type: Content of: <book><chapter><sect1><sect2><note><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
14994 #: ../en/ch11-mq.xml:1051
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14995 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14996 "(<command role=\"hg-cmd\">hg qinit <option role=\"hg-ext-mq-cmd-qinit-opt"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14997 "\">hg -c</option></command> does this for you automatically); you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14998 "<emphasis>really</emphasis> don't want to manage the <filename role=\"special"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
14999 "\">status</filename> file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15000 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15001
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15002 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15003 #: ../en/ch11-mq.xml:1058
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15004 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15005 "As a convenience, if MQ notices that the <filename class=\"directory\">.hg/"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15006 "patches</filename> directory is a repository, it will automatically <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15007 "role=\"hg-cmd\">hg add</command> every patch that you create and import."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15008 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15009
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15010 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15011 #: ../en/ch11-mq.xml:1063
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15012 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15013 "MQ provides a shortcut command, <command role=\"hg-ext-mq\">qcommit</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15014 "command>, that runs <command role=\"hg-cmd\">hg commit</command> in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15015 "<filename role=\"special\" class=\"directory\">.hg/patches</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15016 "directory. This saves some bothersome typing."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15017 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15018
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15019 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15020 #: ../en/ch11-mq.xml:1069
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15021 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15022 "Finally, as a convenience to manage the patch directory, you can define the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15023 "alias <command>mq</command> on Unix systems. For example, on Linux systems "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15024 "using the <command>bash</command> shell, you can include the following "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15025 "snippet in your <filename role=\"home\">~/.bashrc</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15026 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15027
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15028 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15029 #: ../en/ch11-mq.xml:1078
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15030 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15031 "You can then issue commands of the form <command>mq pull</command> from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15032 "main repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15033 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15034
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15035 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15036 #: ../en/ch11-mq.xml:1083
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15037 msgid "A few things to watch out for"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15038 msgstr "需要注意的事情"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15039
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15040 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15041 #: ../en/ch11-mq.xml:1085
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15042 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15043 "MQ's support for working with a repository full of patches is limited in a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15044 "few small respects."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15045 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15046
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15047 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15048 #: ../en/ch11-mq.xml:1088
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15049 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15050 "MQ cannot automatically detect changes that you make to the patch directory. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15051 "If you <command role=\"hg-cmd\">hg pull</command>, manually edit, or <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15052 "role=\"hg-cmd\">hg update</command> changes to patches or the <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15053 "\"special\">series</filename> file, you will have to <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15054 "\">hg qpop <option role=\"hg-ext-mq-cmd-qpop-opt\">hg -a</option></command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15055 "and then <command role=\"hg-cmd\">hg qpush <option role=\"hg-ext-mq-cmd-qpush-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15056 "opt\">hg -a</option></command> in the underlying repository to see those "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15057 "changes show up there. If you forget to do this, you can confuse MQ's idea "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15058 "of which patches are applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15059 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15060
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15061 #. type: Content of: <book><chapter><sect1><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15062 #: ../en/ch11-mq.xml:1104
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15063 msgid "Third party tools for working with patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15064 msgstr "操作补丁的第三方工具"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15065
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15066 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15067 #: ../en/ch11-mq.xml:1106
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15068 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15069 "Once you've been working with patches for a while, you'll find yourself "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15070 "hungry for tools that will help you to understand and manipulate the patches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15071 "you're dealing with."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15072 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15073
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15074 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15075 #: ../en/ch11-mq.xml:1110
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15076 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15077 "The <command>diffstat</command> command <citation>web:diffstat</citation> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15078 "generates a histogram of the modifications made to each file in a patch. It "
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15079 "provides a good way to <quote>get a sense of</quote> a patch—which files it "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15080 "affects, and how much change it introduces to each file and as a whole. (I "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15081 "find that it's a good idea to use <command>diffstat</command>'s <option role="
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15082 "\"cmd-opt-diffstat\">-p</option> option as a matter of course, as otherwise "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15083 "it will try to do clever things with prefixes of file names that inevitably "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15084 "confuse at least me.)"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15085 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15086
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15087 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15088 #: ../en/ch11-mq.xml:1124
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15089 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15090 "The <literal role=\"package\">patchutils</literal> package <citation>web:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15091 "patchutils</citation> is invaluable. It provides a set of small utilities "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15092 "that follow the <quote>Unix philosophy;</quote> each does one useful thing "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15093 "with a patch. The <literal role=\"package\">patchutils</literal> command I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15094 "use most is <command>filterdiff</command>, which extracts subsets from a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15095 "patch file. For example, given a patch that modifies hundreds of files "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15096 "across dozens of directories, a single invocation of <command>filterdiff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15097 "command> can generate a smaller patch that only touches files whose names "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15098 "match a particular glob pattern. See <xref linkend=\"mq-collab:tips:interdiff"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15099 "\"/> for another example."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15100 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15101
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15102 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15103 #: ../en/ch11-mq.xml:1140
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15104 msgid "Good ways to work with patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15105 msgstr "操作补丁的好习惯"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15106
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15107 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15108 #: ../en/ch11-mq.xml:1142
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15109 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15110 "Whether you are working on a patch series to submit to a free software or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15111 "open source project, or a series that you intend to treat as a sequence of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15112 "regular changesets when you're done, you can use some simple techniques to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15113 "keep your work well organised."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15114 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15115
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15116 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15117 #: ../en/ch11-mq.xml:1148
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15118 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15119 "Give your patches descriptive names. A good name for a patch might be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15120 "<filename>rework-device-alloc.patch</filename>, because it will immediately "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15121 "give you a hint what the purpose of the patch is. Long names shouldn't be a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15122 "problem; you won't be typing the names often, but you <emphasis>will</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15123 "emphasis> be running commands like <command role=\"hg-ext-mq\">qapplied</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15124 "command> and <command role=\"hg-ext-mq\">qtop</command> over and over. Good "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15125 "naming becomes especially important when you have a number of patches to work "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15126 "with, or if you are juggling a number of different tasks and your patches "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15127 "only get a fraction of your attention."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15128 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15129
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15130 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15131 #: ../en/ch11-mq.xml:1160
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15132 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15133 "Be aware of what patch you're working on. Use the <command role=\"hg-ext-mq"
760
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15134 "\">qtop</command> command and skim over the text of your patches frequently—"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15135 "for example, using <command role=\"hg-cmd\">hg tip <option role=\"hg-opt-tip"
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15136 "\">-p</option></command>)—to be sure of where you stand. I have several "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15137 "times worked on and <command role=\"hg-ext-mq\">qrefresh</command>ed a patch "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15138 "other than the one I intended, and it's often tricky to migrate changes into "
65b82a891cf7 Add epub format
Dongsheng Song <dongsheng.song@gmail.com>
parents: 759
diff changeset
15139 "the right patch after making them in the wrong one."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15140 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15141
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15142 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15143 #: ../en/ch11-mq.xml:1170
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15144 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15145 "For this reason, it is very much worth investing a little time to learn how "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15146 "to use some of the third-party tools I described in <xref linkend=\"sec:mq:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15147 "tools\"/>, particularly <command>diffstat</command> and <command>filterdiff</"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15148 "command>. The former will give you a quick idea of what changes your patch "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15149 "is making, while the latter makes it easy to splice hunks selectively out of "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15150 "one patch and into another."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15151 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15152
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15153 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15154 #: ../en/ch11-mq.xml:1181
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15155 msgid "MQ cookbook"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15156 msgstr "MQ 手册"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15157
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15158 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15159 #: ../en/ch11-mq.xml:1184
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15160 msgid "Manage <quote>trivial</quote> patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15161 msgstr "管理<quote>琐碎的</quote>补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15162
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15163 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15164 #: ../en/ch11-mq.xml:1186
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15165 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15166 "Because the overhead of dropping files into a new Mercurial repository is so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15167 "low, it makes a lot of sense to manage patches this way even if you simply "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15168 "want to make a few changes to a source tarball that you downloaded."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15169 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15170
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15171 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15172 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15173 #: ../en/ch11-mq.xml:1191
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15174 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15175 "Begin by downloading and unpacking the source tarball, and turning it into a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15176 "Mercurial repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15177 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15178
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15179 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15180 #: ../en/ch11-mq.xml:1196
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15181 msgid "Continue by creating a patch stack and making your changes."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15182 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15183
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15184 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15185 #: ../en/ch11-mq.xml:1201
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15186 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15187 "Let's say a few weeks or months pass, and your package author releases a new "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15188 "version. First, bring their changes into the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15189 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15190
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15191 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15192 #: ../en/ch11-mq.xml:1207
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15193 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15194 "The pipeline starting with <command role=\"hg-cmd\">hg locate</command> above "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15195 "deletes all files in the working directory, so that <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15196 "\">hg commit</command>'s <option role=\"hg-opt-commit\">--addremove</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15197 "option can actually tell which files have really been removed in the newer "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15198 "version of the source."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15199 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15200
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15201 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15202 #: ../en/ch11-mq.xml:1215
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15203 msgid "Finally, you can apply your patches on top of the new tree."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15204 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15205
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15206 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15207 #: ../en/ch11-mq.xml:1222
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15208 msgid "Combining entire patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15209 msgstr "组合全部的补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15210
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15211 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15212 #: ../en/ch11-mq.xml:1224
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15213 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15214 "MQ provides a command, <command role=\"hg-ext-mq\">qfold</command> that lets "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15215 "you combine entire patches. This <quote>folds</quote> the patches you name, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15216 "in the order you name them, into the topmost applied patch, and concatenates "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15217 "their descriptions onto the end of its description. The patches that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15218 "fold must be unapplied before you fold them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15219 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15220
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15221 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15222 #: ../en/ch11-mq.xml:1232
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15223 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15224 "The order in which you fold patches matters. If your topmost applied patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15225 "is <literal>foo</literal>, and you <command role=\"hg-ext-mq\">qfold</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15226 "command> <literal>bar</literal> and <literal>quux</literal> into it, you will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15227 "end up with a patch that has the same effect as if you applied first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15228 "<literal>foo</literal>, then <literal>bar</literal>, followed by "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15229 "<literal>quux</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15230 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15231
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15232 #. type: Content of: <book><chapter><sect1><sect2><title>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15233 #: ../en/ch11-mq.xml:1243
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15234 msgid "Merging part of one patch into another"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15235 msgstr "合并补丁的部分内容到其它补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15236
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15237 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15238 #: ../en/ch11-mq.xml:1245
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15239 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15240 "Merging <emphasis>part</emphasis> of one patch into another is more difficult "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15241 "than combining entire patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15242 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15243
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15244 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15245 #: ../en/ch11-mq.xml:1249
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15246 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15247 "If you want to move changes to entire files, you can use <command>filterdiff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15248 "command>'s <option role=\"cmd-opt-filterdiff\">-i</option> and <option role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15249 "\"cmd-opt-filterdiff\">-x</option> options to choose the modifications to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15250 "snip out of one patch, concatenating its output onto the end of the patch you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15251 "want to merge into. You usually won't need to modify the patch you've merged "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15252 "the changes from. Instead, MQ will report some rejected hunks when you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15253 "<command role=\"hg-ext-mq\">qpush</command> it (from the hunks you moved into "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15254 "the other patch), and you can simply <command role=\"hg-ext-mq\">qrefresh</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15255 "command> the patch to drop the duplicate hunks."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15256 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15257
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15258 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15259 #: ../en/ch11-mq.xml:1262
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15260 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15261 "If you have a patch that has multiple hunks modifying a file, and you only "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15262 "want to move a few of those hunks, the job becomes more messy, but you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15263 "still partly automate it. Use <command>lsdiff -nvv</command> to print some "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15264 "metadata about the patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15265 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15266
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15267 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15268 #: ../en/ch11-mq.xml:1270
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15269 msgid "This command prints three different kinds of number:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15270 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15271
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15272 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15273 #: ../en/ch11-mq.xml:1273
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15274 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15275 "(in the first column) a <emphasis>file number</emphasis> to identify each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15276 "file modified in the patch;"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15277 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15278
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15279 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15280 #: ../en/ch11-mq.xml:1277
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15281 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15282 "(on the next line, indented) the line number within a modified file where a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15283 "hunk starts; and"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15284 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15285
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15286 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15287 #: ../en/ch11-mq.xml:1280
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15288 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15289 "(on the same line) a <emphasis>hunk number</emphasis> to identify that hunk."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15290 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15291
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15292 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15293 #: ../en/ch11-mq.xml:1284
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15294 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15295 "You'll have to use some visual inspection, and reading of the patch, to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15296 "identify the file and hunk numbers you'll want, but you can then pass them to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15297 "to <command>filterdiff</command>'s <option role=\"cmd-opt-filterdiff\">--"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15298 "files</option> and <option role=\"cmd-opt-filterdiff\">--hunks</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15299 "options, to select exactly the file and hunk you want to extract."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15300 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15301
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15302 #. type: Content of: <book><chapter><sect1><sect2><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15303 #: ../en/ch11-mq.xml:1292
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15304 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15305 "Once you have this hunk, you can concatenate it onto the end of your "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15306 "destination patch and continue with the remainder of <xref linkend=\"sec:mq:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15307 "combine\"/>."
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15308 msgstr ""
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15309
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15310 #. type: Content of: <book><chapter><sect1><title>
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15311 #: ../en/ch11-mq.xml:1299
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15312 msgid "Differences between quilt and MQ"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15313 msgstr "MQ 与 quilt 的区别"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15314
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15315 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15316 #: ../en/ch11-mq.xml:1301
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15317 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15318 "If you are already familiar with quilt, MQ provides a similar command set. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15319 "There are a few differences in the way that it works."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15320 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15321
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15322 #. type: Content of: <book><chapter><sect1><para>
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15323 #: ../en/ch11-mq.xml:1305
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15324 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15325 "You will already have noticed that most quilt commands have MQ counterparts "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15326 "that simply begin with a <quote><literal>q</literal></quote>. The exceptions "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15327 "are quilt's <literal>add</literal> and <literal>remove</literal> commands, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15328 "the counterparts for which are the normal Mercurial <command role=\"hg-cmd"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15329 "\">hg add</command> and <command role=\"hg-cmd\">hg remove</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15330 "commands. There is no MQ equivalent of the quilt <literal>edit</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15331 "command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15332 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15333
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15334 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15335 #: ../en/ch12-mq-collab.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15336 msgid "Advanced uses of Mercurial Queues"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15337 msgstr "MQ 的高级用法"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15338
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15339 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15340 #: ../en/ch12-mq-collab.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15341 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15342 "While it's easy to pick up straightforward uses of Mercurial Queues, use of a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15343 "little discipline and some of MQ's less frequently used capabilities makes it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15344 "possible to work in complicated development environments."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15345 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15346
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15347 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15348 #: ../en/ch12-mq-collab.xml:12
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15349 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15350 "In this chapter, I will use as an example a technique I have used to manage "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15351 "the development of an Infiniband device driver for the Linux kernel. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15352 "driver in question is large (at least as drivers go), with 25,000 lines of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15353 "code spread across 35 source files. It is maintained by a small team of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15354 "developers."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15355 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15356
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15357 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15358 #: ../en/ch12-mq-collab.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15359 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15360 "While much of the material in this chapter is specific to Linux, the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15361 "principles apply to any code base for which you're not the primary owner, and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15362 "upon which you need to do a lot of development."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15363 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15364
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15365 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15366 #: ../en/ch12-mq-collab.xml:24
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15367 msgid "The problem of many targets"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15368 msgstr "多个目标的问题"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15369
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15370 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15371 #: ../en/ch12-mq-collab.xml:26
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15372 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15373 "The Linux kernel changes rapidly, and has never been internally stable; "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15374 "developers frequently make drastic changes between releases. This means that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15375 "a version of the driver that works well with a particular released version of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15376 "the kernel will not even <emphasis>compile</emphasis> correctly against, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15377 "typically, any other version."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15378 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15379
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15380 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15381 #: ../en/ch12-mq-collab.xml:33
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15382 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15383 "To maintain a driver, we have to keep a number of distinct versions of Linux "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15384 "in mind."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15385 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15386
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15387 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15388 #: ../en/ch12-mq-collab.xml:36
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15389 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15390 "One target is the main Linux kernel development tree. Maintenance of the code "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15391 "is in this case partly shared by other developers in the kernel community, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15392 "who make <quote>drive-by</quote> modifications to the driver as they develop "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15393 "and refine kernel subsystems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15394 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15395
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15396 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15397 #: ../en/ch12-mq-collab.xml:42
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15398 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15399 "We also maintain a number of <quote>backports</quote> to older versions of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15400 "the Linux kernel, to support the needs of customers who are running older "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15401 "Linux distributions that do not incorporate our drivers. (To "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15402 "<emphasis>backport</emphasis> a piece of code is to modify it to work in an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15403 "older version of its target environment than the version it was developed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15404 "for.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15405 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15406
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15407 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15408 #: ../en/ch12-mq-collab.xml:50
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15409 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15410 "Finally, we make software releases on a schedule that is necessarily not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15411 "aligned with those used by Linux distributors and kernel developers, so that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15412 "we can deliver new features to customers without forcing them to upgrade "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15413 "their entire kernels or distributions."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15414 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15415
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15416 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15417 #: ../en/ch12-mq-collab.xml:58
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15418 msgid "Tempting approaches that don't work well"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15419 msgstr "工作不好的诱人方法"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15420
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15421 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15422 #: ../en/ch12-mq-collab.xml:60
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15423 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15424 "There are two <quote>standard</quote> ways to maintain a piece of software "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15425 "that has to target many different environments."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15426 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15427
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15428 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15429 #: ../en/ch12-mq-collab.xml:64
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15430 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15431 "The first is to maintain a number of branches, each intended for a single "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15432 "target. The trouble with this approach is that you must maintain iron "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15433 "discipline in the flow of changes between repositories. A new feature or bug "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15434 "fix must start life in a <quote>pristine</quote> repository, then percolate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15435 "out to every backport repository. Backport changes are more limited in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15436 "branches they should propagate to; a backport change that is applied to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15437 "branch where it doesn't belong will probably stop the driver from compiling."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15438 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15439
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15440 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15441 #: ../en/ch12-mq-collab.xml:74
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15442 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15443 "The second is to maintain a single source tree filled with conditional "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15444 "statements that turn chunks of code on or off depending on the intended "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15445 "target. Because these <quote>ifdefs</quote> are not allowed in the Linux "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15446 "kernel tree, a manual or automatic process must be followed to strip them out "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15447 "and yield a clean tree. A code base maintained in this fashion rapidly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15448 "becomes a rat's nest of conditional blocks that are difficult to understand "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15449 "and maintain."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15450 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15451
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15452 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15453 #: ../en/ch12-mq-collab.xml:83
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15454 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15455 "Neither of these approaches is well suited to a situation where you don't "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15456 "<quote>own</quote> the canonical copy of a source tree. In the case of a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15457 "Linux driver that is distributed with the standard kernel, Linus's tree "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15458 "contains the copy of the code that will be treated by the world as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15459 "canonical. The upstream version of <quote>my</quote> driver can be modified "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15460 "by people I don't know, without me even finding out about it until after the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15461 "changes show up in Linus's tree."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15462 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15463
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15464 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15465 #: ../en/ch12-mq-collab.xml:93
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15466 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15467 "These approaches have the added weakness of making it difficult to generate "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15468 "well-formed patches to submit upstream."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15469 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15470
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15471 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15472 #: ../en/ch12-mq-collab.xml:97
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15473 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15474 "In principle, Mercurial Queues seems like a good candidate to manage a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15475 "development scenario such as the above. While this is indeed the case, MQ "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15476 "contains a few added features that make the job more pleasant."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15477 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15478
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15479 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15480 #: ../en/ch12-mq-collab.xml:105
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15481 msgid "Conditionally applying patches with guards"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15482 msgstr "有条件的应用补丁"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15483
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15484 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15485 #: ../en/ch12-mq-collab.xml:107
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15486 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15487 "Perhaps the best way to maintain sanity with so many targets is to be able to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15488 "choose specific patches to apply for a given situation. MQ provides a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15489 "feature called <quote>guards</quote> (which originates with quilt's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15490 "<literal>guards</literal> command) that does just this. To start off, let's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15491 "create a simple repository for experimenting in."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15492 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15493
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15494 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15495 #: ../en/ch12-mq-collab.xml:116
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15496 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15497 "This gives us a tiny repository that contains two patches that don't have any "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15498 "dependencies on each other, because they touch different files."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15499 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15500
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15501 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15502 #: ../en/ch12-mq-collab.xml:120
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15503 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15504 "The idea behind conditional application is that you can <quote>tag</quote> a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15505 "patch with a <emphasis>guard</emphasis>, which is simply a text string of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15506 "your choosing, then tell MQ to select specific guards to use when applying "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15507 "patches. MQ will then either apply, or skip over, a guarded patch, depending "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15508 "on the guards that you have selected."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15509 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15510
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15511 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15512 #: ../en/ch12-mq-collab.xml:127
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15513 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15514 "A patch can have an arbitrary number of guards; each one is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15515 "<emphasis>positive</emphasis> (<quote>apply this patch if this guard is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15516 "selected</quote>) or <emphasis>negative</emphasis> (<quote>skip this patch if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15517 "this guard is selected</quote>). A patch with no guards is always applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15518 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15519
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15520 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15521 #: ../en/ch12-mq-collab.xml:135
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15522 msgid "Controlling the guards on a patch"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15523 msgstr "控制补丁的应用条件"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15524
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15525 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15526 #: ../en/ch12-mq-collab.xml:137
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15527 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15528 "The <command role=\"hg-ext-mq\">qguard</command> command lets you determine "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15529 "which guards should apply to a patch, or display the guards that are already "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15530 "in effect. Without any arguments, it displays the guards on the current "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15531 "topmost patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15532 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15533
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15534 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15535 #: ../en/ch12-mq-collab.xml:144
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15536 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15537 "To set a positive guard on a patch, prefix the name of the guard with a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15538 "<quote><literal>+</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15539 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15540
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15541 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15542 #: ../en/ch12-mq-collab.xml:149
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15543 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15544 "To set a negative guard on a patch, prefix the name of the guard with a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15545 "<quote><literal>-</literal></quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15546 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15547
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15548 #. type: Content of: <book><chapter><sect1><note><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15549 #: ../en/ch12-mq-collab.xml:156
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15550 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15551 "The <command role=\"hg-ext-mq\">qguard</command> command <emphasis>sets</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15552 "emphasis> the guards on a patch; it doesn't <emphasis>modify</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15553 "them. What this means is that if you run <command role=\"hg-cmd\">hg qguard "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15554 "+a +b</command> on a patch, then <command role=\"hg-cmd\">hg qguard +c</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15555 "command> on the same patch, the <emphasis>only</emphasis> guard that will be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15556 "set on it afterwards is <literal>+c</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15557 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15558
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15559 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15560 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15561 #: ../en/ch12-mq-collab.xml:165
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15562 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15563 "Mercurial stores guards in the <filename role=\"special\">series</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15564 "file; the form in which they are stored is easy both to understand and to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15565 "edit by hand. (In other words, you don't have to use the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15566 "ext-mq\">qguard</command> command if you don't want to; it's okay to simply "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15567 "edit the <filename role=\"special\">series</filename> file.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15568 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15569
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15570 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15571 #: ../en/ch12-mq-collab.xml:177
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15572 msgid "Selecting the guards to use"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15573 msgstr "选择使用的条件"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15574
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15575 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15576 #: ../en/ch12-mq-collab.xml:179
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15577 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15578 "The <command role=\"hg-ext-mq\">qselect</command> command determines which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15579 "guards are active at a given time. The effect of this is to determine which "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15580 "patches MQ will apply the next time you run <command role=\"hg-ext-mq"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15581 "\">qpush</command>. It has no other effect; in particular, it doesn't do "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15582 "anything to patches that are already applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15583 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15584
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15585 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15586 #: ../en/ch12-mq-collab.xml:186
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15587 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15588 "With no arguments, the <command role=\"hg-ext-mq\">qselect</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15589 "lists the guards currently in effect, one per line of output. Each argument "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15590 "is treated as the name of a guard to apply."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15591 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15592
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15593 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15594 #: ../en/ch12-mq-collab.xml:193
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15595 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15596 "In case you're interested, the currently selected guards are stored in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15597 "<filename role=\"special\">guards</filename> file."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15598 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15599
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15600 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15601 #: ../en/ch12-mq-collab.xml:198
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15602 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15603 "We can see the effect the selected guards have when we run <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15604 "ext-mq\">qpush</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15605 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15606
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15607 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15608 #: ../en/ch12-mq-collab.xml:203
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15609 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15610 "A guard cannot start with a <quote><literal>+</literal></quote> or "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15611 "<quote><literal>-</literal></quote> character. The name of a guard must not "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15612 "contain white space, but most other characters are acceptable. If you try to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15613 "use a guard with an invalid name, MQ will complain:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15614 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15615
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15616 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15617 #: ../en/ch12-mq-collab.xml:212
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15618 msgid "Changing the selected guards changes the patches that are applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15619 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15620
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15621 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15622 #: ../en/ch12-mq-collab.xml:217
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15623 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15624 "You can see in the example below that negative guards take precedence over "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15625 "positive guards."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15626 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15627
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15628 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15629 #: ../en/ch12-mq-collab.xml:224
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15630 msgid "MQ's rules for applying patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15631 msgstr "MQ 应用补丁的规则"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15632
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15633 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15634 #: ../en/ch12-mq-collab.xml:226
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15635 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15636 "The rules that MQ uses when deciding whether to apply a patch are as follows."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15637 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15638
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15639 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15640 #: ../en/ch12-mq-collab.xml:229
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15641 msgid "A patch that has no guards is always applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15642 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15643
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15644 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15645 #: ../en/ch12-mq-collab.xml:232
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15646 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15647 "If the patch has any negative guard that matches any currently selected "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15648 "guard, the patch is skipped."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15649 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15650
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15651 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15652 #: ../en/ch12-mq-collab.xml:235
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15653 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15654 "If the patch has any positive guard that matches any currently selected "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15655 "guard, the patch is applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15656 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15657
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15658 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15659 #: ../en/ch12-mq-collab.xml:238
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15660 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15661 "If the patch has positive or negative guards, but none matches any currently "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15662 "selected guard, the patch is skipped."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15663 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15664
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15665 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15666 #: ../en/ch12-mq-collab.xml:245
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15667 msgid "Trimming the work environment"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15668 msgstr "修剪工作环境"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15669
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15670 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15671 #: ../en/ch12-mq-collab.xml:247
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15672 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15673 "In working on the device driver I mentioned earlier, I don't apply the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15674 "patches to a normal Linux kernel tree. Instead, I use a repository that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15675 "contains only a snapshot of the source files and headers that are relevant to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15676 "Infiniband development. This repository is 1% the size of a kernel "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15677 "repository, so it's easier to work with."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15678 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15679
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15680 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15681 #: ../en/ch12-mq-collab.xml:254
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15682 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15683 "I then choose a <quote>base</quote> version on top of which the patches are "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15684 "applied. This is a snapshot of the Linux kernel tree as of a revision of my "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15685 "choosing. When I take the snapshot, I record the changeset ID from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15686 "kernel repository in the commit message. Since the snapshot preserves the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15687 "<quote>shape</quote> and content of the relevant parts of the kernel tree, I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15688 "can apply my patches on top of either my tiny repository or a normal kernel "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15689 "tree."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15690 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15691
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15692 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15693 #: ../en/ch12-mq-collab.xml:263
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15694 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15695 "Normally, the base tree atop which the patches apply should be a snapshot of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15696 "a very recent upstream tree. This best facilitates the development of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15697 "patches that can easily be submitted upstream with few or no modifications."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15698 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15699
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15700 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15701 #: ../en/ch12-mq-collab.xml:270
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15702 msgid "Dividing up the <filename role=\"special\">series</filename> file"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15703 msgstr "分类补丁<filename role=\"special\">系列</filename>"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15704
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15705 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15706 #: ../en/ch12-mq-collab.xml:273
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15707 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15708 "I categorise the patches in the <filename role=\"special\">series</filename> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15709 "file into a number of logical groups. Each section of like patches begins "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15710 "with a block of comments that describes the purpose of the patches that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15711 "follow."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15712 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15713
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15714 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15715 #: ../en/ch12-mq-collab.xml:279
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15716 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15717 "The sequence of patch groups that I maintain follows. The ordering of these "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15718 "groups is important; I'll describe why after I introduce the groups."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15719 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15720
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15721 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15722 #: ../en/ch12-mq-collab.xml:283
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15723 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15724 "The <quote>accepted</quote> group. Patches that the development team has "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15725 "submitted to the maintainer of the Infiniband subsystem, and which he has "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15726 "accepted, but which are not present in the snapshot that the tiny repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15727 "is based on. These are <quote>read only</quote> patches, present only to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15728 "transform the tree into a similar state as it is in the upstream maintainer's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15729 "repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15730 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15731
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15732 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15733 #: ../en/ch12-mq-collab.xml:291
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15734 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15735 "The <quote>rework</quote> group. Patches that I have submitted, but that the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15736 "upstream maintainer has requested modifications to before he will accept them."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15737 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15738
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15739 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15740 #: ../en/ch12-mq-collab.xml:296
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15741 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15742 "The <quote>pending</quote> group. Patches that I have not yet submitted to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15743 "the upstream maintainer, but which we have finished working on. These will be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15744 "<quote>read only</quote> for a while. If the upstream maintainer accepts "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15745 "them upon submission, I'll move them to the end of the <quote>accepted</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15746 "quote> group. If he requests that I modify any, I'll move them to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15747 "beginning of the <quote>rework</quote> group."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15748 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15749
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15750 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15751 #: ../en/ch12-mq-collab.xml:305
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15752 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15753 "The <quote>in progress</quote> group. Patches that are actively being "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15754 "developed, and should not be submitted anywhere yet."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15755 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15756
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15757 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15758 #: ../en/ch12-mq-collab.xml:309
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15759 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15760 "The <quote>backport</quote> group. Patches that adapt the source tree to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15761 "older versions of the kernel tree."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15762 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15763
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15764 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15765 #: ../en/ch12-mq-collab.xml:313
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15766 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15767 "The <quote>do not ship</quote> group. Patches that for some reason should "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15768 "never be submitted upstream. For example, one such patch might change "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15769 "embedded driver identification strings to make it easier to distinguish, in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15770 "the field, between an out-of-tree version of the driver and a version shipped "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15771 "by a distribution vendor."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15772 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15773
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15774 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15775 #: ../en/ch12-mq-collab.xml:321
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15776 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15777 "Now to return to the reasons for ordering groups of patches in this way. We "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15778 "would like the lowest patches in the stack to be as stable as possible, so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15779 "that we will not need to rework higher patches due to changes in context. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15780 "Putting patches that will never be changed first in the <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15781 "\"special\">series</filename> file serves this purpose."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15782 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15783
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15784 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15785 #: ../en/ch12-mq-collab.xml:329
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15786 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15787 "We would also like the patches that we know we'll need to modify to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15788 "applied on top of a source tree that resembles the upstream tree as closely "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15789 "as possible. This is why we keep accepted patches around for a while."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15790 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15791
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15792 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15793 #: ../en/ch12-mq-collab.xml:334
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15794 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15795 "The <quote>backport</quote> and <quote>do not ship</quote> patches float at "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15796 "the end of the <filename role=\"special\">series</filename> file. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15797 "backport patches must be applied on top of all other patches, and the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15798 "<quote>do not ship</quote> patches might as well stay out of harm's way."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15799 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15800
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15801 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15802 #: ../en/ch12-mq-collab.xml:343
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15803 msgid "Maintaining the patch series"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15804 msgstr "维护补丁系列"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15805
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15806 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15807 #: ../en/ch12-mq-collab.xml:345
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15808 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15809 "In my work, I use a number of guards to control which patches are to be "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15810 "applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15811 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15812
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15813 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15814 #: ../en/ch12-mq-collab.xml:349
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15815 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15816 "<quote>Accepted</quote> patches are guarded with <literal>accepted</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15817 "literal>. I enable this guard most of the time. When I'm applying the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15818 "patches on top of a tree where the patches are already present, I can turn "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15819 "this patch off, and the patches that follow it will apply cleanly."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15820 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15821
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15822 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15823 #: ../en/ch12-mq-collab.xml:356
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15824 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15825 "Patches that are <quote>finished</quote>, but not yet submitted, have no "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15826 "guards. If I'm applying the patch stack to a copy of the upstream tree, I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15827 "don't need to enable any guards in order to get a reasonably safe source tree."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15828 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15829
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15830 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15831 #: ../en/ch12-mq-collab.xml:362
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15832 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15833 "Those patches that need reworking before being resubmitted are guarded with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15834 "<literal>rework</literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15835 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15836
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15837 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15838 #: ../en/ch12-mq-collab.xml:366
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15839 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15840 "For those patches that are still under development, I use <literal>devel</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15841 "literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15842 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15843
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15844 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15845 #: ../en/ch12-mq-collab.xml:369
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15846 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15847 "A backport patch may have several guards, one for each version of the kernel "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15848 "to which it applies. For example, a patch that backports a piece of code to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15849 "2.6.9 will have a <literal>2.6.9</literal> guard."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15850 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15851
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15852 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15853 #: ../en/ch12-mq-collab.xml:374
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15854 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15855 "This variety of guards gives me considerable flexibility in determining what "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15856 "kind of source tree I want to end up with. For most situations, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15857 "selection of appropriate guards is automated during the build process, but I "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15858 "can manually tune the guards to use for less common circumstances."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15859 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15860
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15861 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15862 #: ../en/ch12-mq-collab.xml:381
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15863 msgid "The art of writing backport patches"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15864 msgstr "编写向后移植补丁的艺术"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15865
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15866 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15867 #: ../en/ch12-mq-collab.xml:383
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15868 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15869 "Using MQ, writing a backport patch is a simple process. All such a patch has "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15870 "to do is modify a piece of code that uses a kernel feature not present in the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15871 "older version of the kernel, so that the driver continues to work correctly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15872 "under that older version."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15873 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15874
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15875 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15876 #: ../en/ch12-mq-collab.xml:389
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15877 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15878 "A useful goal when writing a good backport patch is to make your code look as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15879 "if it was written for the older version of the kernel you're targeting. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15880 "less obtrusive the patch, the easier it will be to understand and maintain. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15881 "If you're writing a collection of backport patches to avoid the <quote>rat's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15882 "nest</quote> effect of lots of <literal>#ifdef</literal>s (hunks of source "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15883 "code that are only used conditionally) in your code, don't introduce version-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15884 "dependent <literal>#ifdef</literal>s into the patches. Instead, write "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15885 "several patches, each of which makes unconditional changes, and control their "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15886 "application using guards."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15887 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15888
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15889 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15890 #: ../en/ch12-mq-collab.xml:402
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15891 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15892 "There are two reasons to divide backport patches into a distinct group, away "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15893 "from the <quote>regular</quote> patches whose effects they modify. The first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15894 "is that intermingling the two makes it more difficult to use a tool like the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15895 "<literal role=\"hg-ext\">patchbomb</literal> extension to automate the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15896 "process of submitting the patches to an upstream maintainer. The second is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15897 "that a backport patch could perturb the context in which a subsequent regular "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15898 "patch is applied, making it impossible to apply the regular patch cleanly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15899 "<emphasis>without</emphasis> the earlier backport patch already being applied."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15900 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15901
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15902 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15903 #: ../en/ch12-mq-collab.xml:417
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15904 msgid "Useful tips for developing with MQ"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15905 msgstr "使用 MQ 开发的技巧"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15906
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15907 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15908 #: ../en/ch12-mq-collab.xml:420
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15909 msgid "Organising patches in directories"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15910 msgstr "将补丁放到几个目录中"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15911
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15912 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15913 #: ../en/ch12-mq-collab.xml:422
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15914 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15915 "If you're working on a substantial project with MQ, it's not difficult to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15916 "accumulate a large number of patches. For example, I have one patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15917 "repository that contains over 250 patches."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15918 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15919
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15920 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15921 #: ../en/ch12-mq-collab.xml:427
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15922 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15923 "If you can group these patches into separate logical categories, you can if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15924 "you like store them in different directories; MQ has no problems with patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15925 "names that contain path separators."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15926 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15927
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15928 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15929 #: ../en/ch12-mq-collab.xml:434
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15930 msgid "Viewing the history of a patch"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
15931 msgstr "察看补丁的历史"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15932
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15933 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15934 #: ../en/ch12-mq-collab.xml:436
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15935 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15936 "If you're developing a set of patches over a long time, it's a good idea to "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15937 "maintain them in a repository, as discussed in <xref linkend=\"sec:mq:repo\"/"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15938 ">. If you do so, you'll quickly discover that using the <command role=\"hg-"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15939 "cmd\">hg diff</command> command to look at the history of changes to a patch "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
15940 "is unworkable. This is in part because you're looking at the second "
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15941 "derivative of the real code (a diff of a diff), but also because MQ adds "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15942 "noise to the process by modifying time stamps and directory names when it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15943 "updates a patch."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15944 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15945
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15946 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15947 #: ../en/ch12-mq-collab.xml:448
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15948 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15949 "However, you can use the <literal role=\"hg-ext\">extdiff</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15950 "extension, which is bundled with Mercurial, to turn a diff of two versions of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15951 "a patch into something readable. To do this, you will need a third-party "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15952 "package called <literal role=\"package\">patchutils</literal> <citation>web:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15953 "patchutils</citation>. This provides a command named <command>interdiff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15954 "command>, which shows the differences between two diffs as a diff. Used on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15955 "two versions of the same diff, it generates a diff that represents the diff "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15956 "from the first to the second version."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15957 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15958
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15959 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15960 #: ../en/ch12-mq-collab.xml:459
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15961 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15962 "You can enable the <literal role=\"hg-ext\">extdiff</literal> extension in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15963 "the usual way, by adding a line to the <literal role=\"rc-extensions"
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15964 "\">extensions</literal> section of your <filename role=\"special\">~/.hgrc</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15965 "filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15966 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15967
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15968 #
745
c2cefd9f9893 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 743
diff changeset
15969 #. &example.hg-interdiff;
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15970 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15971 #: ../en/ch12-mq-collab.xml:466
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15972 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15973 "The <command>interdiff</command> command expects to be passed the names of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15974 "two files, but the <literal role=\"hg-ext\">extdiff</literal> extension "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15975 "passes the program it runs a pair of directories, each of which can contain "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15976 "an arbitrary number of files. We thus need a small program that will run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15977 "<command>interdiff</command> on each pair of files in these two directories. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15978 "This program is available as <filename role=\"special\">hg-interdiff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15979 "filename> in the <filename class=\"directory\">examples</filename> directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15980 "of the source code repository that accompanies this book."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15981 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15982
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15983 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15984 #: ../en/ch12-mq-collab.xml:478
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15985 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15986 "With the <filename role=\"special\">hg-interdiff</filename> program in your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15987 "shell's search path, you can run it as follows, from inside an MQ patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15988 "directory:"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15989 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15990
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15991 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15992 #: ../en/ch12-mq-collab.xml:482
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15993 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15994 "Since you'll probably want to use this long-winded command a lot, you can get "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15995 "<literal role=\"hg-ext\">hgext</literal> to make it available as a normal "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
15996 "Mercurial command, again by editing your <filename role=\"special\">~/.hgrc</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15997 "filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15998 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
15999
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16000 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16001 #: ../en/ch12-mq-collab.xml:489
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16002 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16003 "This directs <literal role=\"hg-ext\">hgext</literal> to make an "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16004 "<literal>interdiff</literal> command available, so you can now shorten the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16005 "previous invocation of <command role=\"hg-ext-extdiff\">extdiff</command> to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16006 "something a little more wieldy."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16007 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16008
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16009 #. type: Content of: <book><chapter><sect1><sect2><note><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16010 #: ../en/ch12-mq-collab.xml:497
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16011 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16012 "The <command>interdiff</command> command works well only if the underlying "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16013 "files against which versions of a patch are generated remain the same. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16014 "you create a patch, modify the underlying files, and then regenerate the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16015 "patch, <command>interdiff</command> may not produce useful output."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16016 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16017
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16018 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16019 #: ../en/ch12-mq-collab.xml:505
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16020 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16021 "The <literal role=\"hg-ext\">extdiff</literal> extension is useful for more "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16022 "than merely improving the presentation of MQ patches. To read more about it, "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16023 "go to <xref linkend=\"sec:hgext:extdiff\"/>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16024 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16025
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16026 #. type: Content of: <book><chapter><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16027 #: ../en/ch13-hgext.xml:5
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16028 msgid "Adding functionality with extensions"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16029 msgstr "使用扩展增加功能"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16030
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16031 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16032 #: ../en/ch13-hgext.xml:7
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16033 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16034 "While the core of Mercurial is quite complete from a functionality "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16035 "standpoint, it's deliberately shorn of fancy features. This approach of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16036 "preserving simplicity keeps the software easy to deal with for both "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16037 "maintainers and users."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16038 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16039
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16040 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16041 #: ../en/ch13-hgext.xml:12
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16042 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16043 "However, Mercurial doesn't box you in with an inflexible command set: you can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16044 "add features to it as <emphasis>extensions</emphasis> (sometimes known as "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16045 "<emphasis>plugins</emphasis>). We've already discussed a few of these "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16046 "extensions in earlier chapters."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16047 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16048
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16049 #. type: Content of: <book><chapter><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16050 #: ../en/ch13-hgext.xml:18
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16051 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16052 "<xref linkend=\"sec:tour-merge:fetch\"/> covers the <literal role=\"hg-ext"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16053 "\">fetch</literal> extension; this combines pulling new changes and merging "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16054 "them with local changes into a single command, <command role=\"hg-ext-fetch"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16055 "\">fetch</command>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16056 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16057
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16058 #. type: Content of: <book><chapter><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16059 #: ../en/ch13-hgext.xml:24
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16060 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16061 "In <xref linkend=\"chap:hook\"/>, we covered several extensions that are "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16062 "useful for hook-related functionality: <literal role=\"hg-ext\">acl</literal> "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16063 "adds access control lists; <literal role=\"hg-ext\">bugzilla</literal> adds "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16064 "integration with the Bugzilla bug tracking system; and <literal role=\"hg-ext"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16065 "\">notify</literal> sends notification emails on new changes."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16066 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16067
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16068 #. type: Content of: <book><chapter><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16069 #: ../en/ch13-hgext.xml:33
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16070 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16071 "The Mercurial Queues patch management extension is so invaluable that it "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16072 "merits two chapters and an appendix all to itself. <xref linkend=\"chap:mq\"/"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16073 "> covers the basics; <xref linkend=\"chap:mq-collab\"/> discusses advanced "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16074 "topics; and <xref linkend=\"chap:mqref\"/> goes into detail on each command."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16075 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16076
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16077 #. type: Content of: <book><chapter><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16078 #: ../en/ch13-hgext.xml:43
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16079 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16080 "In this chapter, we'll cover some of the other extensions that are available "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16081 "for Mercurial, and briefly touch on some of the machinery you'll need to know "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16082 "about if you want to write an extension of your own."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16083 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16084
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16085 #. type: Content of: <book><chapter><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16086 #: ../en/ch13-hgext.xml:48
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16087 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16088 "In <xref linkend=\"sec:hgext:inotify\"/>, we'll discuss the possibility of "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16089 "<emphasis>huge</emphasis> performance improvements using the <literal role="
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16090 "\"hg-ext\">inotify</literal> extension."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16091 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16092
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16093 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16094 #: ../en/ch13-hgext.xml:55
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16095 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16096 "Improve performance with the <literal role=\"hg-ext\">inotify</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16097 "extension"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
16098 msgstr "使用扩展 <literal role=\"hg-ext\">inotify</literal> 以提高性能"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16099
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16100 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16101 #: ../en/ch13-hgext.xml:58
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16102 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16103 "Are you interested in having some of the most common Mercurial operations run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16104 "as much as a hundred times faster? Read on!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16105 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16106
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16107 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16108 #: ../en/ch13-hgext.xml:62
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16109 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16110 "Mercurial has great performance under normal circumstances. For example, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16111 "when you run the <command role=\"hg-cmd\">hg status</command> command, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16112 "Mercurial has to scan almost every directory and file in your repository so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16113 "that it can display file status. Many other Mercurial commands need to do "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16114 "the same work behind the scenes; for example, the <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16115 "diff</command> command uses the status machinery to avoid doing an expensive "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16116 "comparison operation on files that obviously haven't changed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16117 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16118
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16119 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16120 #: ../en/ch13-hgext.xml:72
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16121 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16122 "Because obtaining file status is crucial to good performance, the authors of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16123 "Mercurial have optimised this code to within an inch of its life. However, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16124 "there's no avoiding the fact that when you run <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16125 "status</command>, Mercurial is going to have to perform at least one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16126 "expensive system call for each managed file to determine whether it's changed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16127 "since the last time Mercurial checked. For a sufficiently large repository, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16128 "this can take a long time."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16129 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16130
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16131 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16132 #: ../en/ch13-hgext.xml:82
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16133 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16134 "To put a number on the magnitude of this effect, I created a repository "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16135 "containing 150,000 managed files. I timed <command role=\"hg-cmd\">hg "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16136 "status</command> as taking ten seconds to run, even when <emphasis>none</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16137 "emphasis> of those files had been modified."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16138 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16139
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16140 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16141 #: ../en/ch13-hgext.xml:88
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16142 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16143 "Many modern operating systems contain a file notification facility. If a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16144 "program signs up to an appropriate service, the operating system will notify "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16145 "it every time a file of interest is created, modified, or deleted. On Linux "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16146 "systems, the kernel component that does this is called <literal>inotify</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16147 "literal>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16148 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16149
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16150 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16151 #: ../en/ch13-hgext.xml:95
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16152 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16153 "Mercurial's <literal role=\"hg-ext\">inotify</literal> extension talks to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16154 "kernel's <literal>inotify</literal> component to optimise <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16155 "cmd\">hg status</command> commands. The extension has two components. A "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16156 "daemon sits in the background and receives notifications from the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16157 "<literal>inotify</literal> subsystem. It also listens for connections from a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16158 "regular Mercurial command. The extension modifies Mercurial's behaviour so "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16159 "that instead of scanning the filesystem, it queries the daemon. Since the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16160 "daemon has perfect information about the state of the repository, it can "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16161 "respond with a result instantaneously, avoiding the need to scan every "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16162 "directory and file in the repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16163 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16164
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16165 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16166 #: ../en/ch13-hgext.xml:108
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16167 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16168 "Recall the ten seconds that I measured plain Mercurial as taking to run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16169 "<command role=\"hg-cmd\">hg status</command> on a 150,000 file repository. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16170 "With the <literal role=\"hg-ext\">inotify</literal> extension enabled, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16171 "time dropped to 0.1 seconds, a factor of <emphasis>one hundred</emphasis> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16172 "faster."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16173 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16174
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16175 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16176 #: ../en/ch13-hgext.xml:115
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16177 msgid "Before we continue, please pay attention to some caveats."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16178 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16179
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16180 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16181 #: ../en/ch13-hgext.xml:118
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16182 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16183 "The <literal role=\"hg-ext\">inotify</literal> extension is Linux-specific. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16184 "Because it interfaces directly to the Linux kernel's <literal>inotify</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16185 "literal> subsystem, it does not work on other operating systems."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16186 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16187
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16188 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16189 #: ../en/ch13-hgext.xml:123
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16190 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16191 "It should work on any Linux distribution that was released after early 2005. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16192 "Older distributions are likely to have a kernel that lacks <literal>inotify</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16193 "literal>, or a version of <literal>glibc</literal> that does not have the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16194 "necessary interfacing support."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16195 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16196
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16197 #. type: Content of: <book><chapter><sect1><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16198 #: ../en/ch13-hgext.xml:130
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16199 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16200 "Not all filesystems are suitable for use with the <literal role=\"hg-ext"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16201 "\">inotify</literal> extension. Network filesystems such as NFS are a non-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16202 "starter, for example, particularly if you're running Mercurial on several "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16203 "systems, all mounting the same network filesystem. The kernel's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16204 "<literal>inotify</literal> system has no way of knowing about changes made on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16205 "another system. Most local filesystems (e.g. ext3, XFS, ReiserFS) should "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16206 "work fine."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16207 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16208
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16209 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16210 #: ../en/ch13-hgext.xml:141
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16211 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16212 "The <literal role=\"hg-ext\">inotify</literal> extension is not yet shipped "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16213 "with Mercurial as of May 2007, so it's a little more involved to set up than "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16214 "other extensions. But the performance improvement is worth it!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16215 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16216
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16217 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16218 #: ../en/ch13-hgext.xml:146
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16219 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16220 "The extension currently comes in two parts: a set of patches to the Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16221 "source code, and a library of Python bindings to the <literal>inotify</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16222 "literal> subsystem."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16223 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16224
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16225 #. type: Content of: <book><chapter><sect1><note><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16226 #: ../en/ch13-hgext.xml:150
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16227 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16228 "There are <emphasis>two</emphasis> Python <literal>inotify</literal> binding "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16229 "libraries. One of them is called <literal>pyinotify</literal>, and is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16230 "packaged by some Linux distributions as <literal>python-inotify</literal>. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16231 "This is <emphasis>not</emphasis> the one you'll need, as it is too buggy and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16232 "inefficient to be practical."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16233 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16234
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16235 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16236 #: ../en/ch13-hgext.xml:157
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16237 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16238 "To get going, it's best to already have a functioning copy of Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16239 "installed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16240 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16241
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16242 #. type: Content of: <book><chapter><sect1><note><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16243 #: ../en/ch13-hgext.xml:160
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16244 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16245 "If you follow the instructions below, you'll be <emphasis>replacing</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16246 "emphasis> and overwriting any existing installation of Mercurial that you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16247 "might already have, using the latest <quote>bleeding edge</quote> Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16248 "code. Don't say you weren't warned!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16249 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16250
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16251 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16252 #: ../en/ch13-hgext.xml:167
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16253 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16254 "Clone the Python <literal>inotify</literal> binding repository. Build and "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16255 "install it."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16256 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16257
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16258 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16259 #: ../en/ch13-hgext.xml:174
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16260 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16261 "Clone the <filename class=\"directory\">crew</filename> Mercurial "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16262 "repository. Clone the <literal role=\"hg-ext\">inotify</literal> patch "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16263 "repository so that Mercurial Queues will be able to apply patches to your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16264 "cope of the <filename class=\"directory\">crew</filename> repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16265 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16266
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16267 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16268 #: ../en/ch13-hgext.xml:184
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16269 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16270 "Make sure that you have the Mercurial Queues extension, <literal role=\"hg-ext"
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16271 "\">mq</literal>, enabled. If you've never used MQ, read <xref linkend=\"sec:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16272 "mq:start\"/> to get started quickly."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16273 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16274
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16275 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16276 #: ../en/ch13-hgext.xml:190
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16277 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16278 "Go into the <filename class=\"directory\">inotify</filename> repo, and apply "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16279 "all of the <literal role=\"hg-ext\">inotify</literal> patches using the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16280 "<option role=\"hg-ext-mq-cmd-qpush-opt\">hg -a</option> option to the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16281 "<command role=\"hg-ext-mq\">qpush</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16282 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16283
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16284 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16285 #: ../en/ch13-hgext.xml:199
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16286 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16287 "If you get an error message from <command role=\"hg-ext-mq\">qpush</command>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16288 "you should not continue. Instead, ask for help."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16289 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16290
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16291 #. type: Content of: <book><chapter><sect1><orderedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16292 #: ../en/ch13-hgext.xml:203
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16293 msgid "Build and install the patched version of Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16294 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16295
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16296 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16297 #: ../en/ch13-hgext.xml:209
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16298 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16299 "Once you've build a suitably patched version of Mercurial, all you need to do "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16300 "to enable the <literal role=\"hg-ext\">inotify</literal> extension is add an "
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16301 "entry to your <filename role=\"special\">~/.hgrc</filename>."
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16302 msgstr ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16303
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16304 #. type: Content of: <book><chapter><sect1><para>
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16305 #: ../en/ch13-hgext.xml:214
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16306 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16307 "When the <literal role=\"hg-ext\">inotify</literal> extension is enabled, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16308 "Mercurial will automatically and transparently start the status daemon the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16309 "first time you run a command that needs status in a repository. It runs one "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16310 "status daemon per repository."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16311 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16312
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16313 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16314 #: ../en/ch13-hgext.xml:220
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16315 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16316 "The status daemon is started silently, and runs in the background. If you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16317 "look at a list of running processes after you've enabled the <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16318 "\"hg-ext\">inotify</literal> extension and run a few commands in different "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16319 "repositories, you'll thus see a few <literal>hg</literal> processes sitting "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16320 "around, waiting for updates from the kernel and queries from Mercurial."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16321 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16322
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16323 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16324 #: ../en/ch13-hgext.xml:228
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16325 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16326 "The first time you run a Mercurial command in a repository when you have the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16327 "<literal role=\"hg-ext\">inotify</literal> extension enabled, it will run "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16328 "with about the same performance as a normal Mercurial command. This is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16329 "because the status daemon needs to perform a normal status scan so that it "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16330 "has a baseline against which to apply later updates from the kernel. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16331 "However, <emphasis>every</emphasis> subsequent command that does any kind of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16332 "status check should be noticeably faster on repositories of even fairly "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16333 "modest size. Better yet, the bigger your repository is, the greater a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16334 "performance advantage you'll see. The <literal role=\"hg-ext\">inotify</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16335 "literal> daemon makes status operations almost instantaneous on repositories "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16336 "of all sizes!"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16337 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16338
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16339 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16340 #: ../en/ch13-hgext.xml:242
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16341 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16342 "If you like, you can manually start a status daemon using the <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16343 "\"hg-ext-inotify\">inserve</command> command. This gives you slightly finer "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16344 "control over how the daemon ought to run. This command will of course only "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16345 "be available when the <literal role=\"hg-ext\">inotify</literal> extension is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16346 "enabled."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16347 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16348
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16349 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16350 #: ../en/ch13-hgext.xml:249
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16351 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16352 "When you're using the <literal role=\"hg-ext\">inotify</literal> extension, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16353 "you should notice <emphasis>no difference at all</emphasis> in Mercurial's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16354 "behaviour, with the sole exception of status-related commands running a whole "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16355 "lot faster than they used to. You should specifically expect that commands "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16356 "will not print different output; neither should they give different results. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16357 "If either of these situations occurs, please report a bug."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16358 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16359
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16360 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16361 #: ../en/ch13-hgext.xml:260
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16362 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16363 "Flexible diff support with the <literal role=\"hg-ext\">extdiff</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16364 "extension"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
16365 msgstr "使用扩展 <literal role=\"hg-ext\">extdiff</literal> 以扩展差异支持"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16366
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16367 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16368 #: ../en/ch13-hgext.xml:263
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16369 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16370 "Mercurial's built-in <command role=\"hg-cmd\">hg diff</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16371 "outputs plaintext unified diffs."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16372 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16373 "Mercurial 内置命令 <command role=\"hg-cmd\">hg diff</command> 的输出与统一差异"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16374 "不同。"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16375
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16376 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16377 #: ../en/ch13-hgext.xml:268
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16378 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16379 "If you would like to use an external tool to display modifications, you'll "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16380 "want to use the <literal role=\"hg-ext\">extdiff</literal> extension. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16381 "will let you use, for example, a graphical diff tool."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16382 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16383
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16384 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16385 #: ../en/ch13-hgext.xml:273
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16386 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16387 "The <literal role=\"hg-ext\">extdiff</literal> extension is bundled with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16388 "Mercurial, so it's easy to set up. In the <literal role=\"rc-extensions"
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16389 "\">extensions</literal> section of your <filename role=\"special\">~/.hgrc</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16390 "filename>, simply add a one-line entry to enable the extension."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16391 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16392
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16393 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16394 #: ../en/ch13-hgext.xml:280
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16395 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16396 "This introduces a command named <command role=\"hg-ext-extdiff\">extdiff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16397 "command>, which by default uses your system's <command>diff</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16398 "to generate a unified diff in the same form as the built-in <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16399 "\"hg-cmd\">hg diff</command> command."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16400 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16401
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16402 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16403 #: ../en/ch13-hgext.xml:288
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16404 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16405 "The result won't be exactly the same as with the built-in <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16406 "cmd\">hg diff</command> variations, because the output of <command>diff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16407 "command> varies from one system to another, even when passed the same options."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16408 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16409
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16410 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16411 #: ../en/ch13-hgext.xml:293
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16412 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16413 "As the <quote><literal>making snapshot</literal></quote> lines of output "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16414 "above imply, the <command role=\"hg-ext-extdiff\">extdiff</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16415 "works by creating two snapshots of your source tree. The first snapshot is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16416 "of the source revision; the second, of the target revision or working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16417 "directory. The <command role=\"hg-ext-extdiff\">extdiff</command> command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16418 "generates these snapshots in a temporary directory, passes the name of each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16419 "directory to an external diff viewer, then deletes the temporary directory. "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16420 "For efficiency, it only snapshots the directories and files that have changed "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16421 "between the two revisions."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16422 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16423
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16424 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16425 #: ../en/ch13-hgext.xml:306
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16426 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16427 "Snapshot directory names have the same base name as your repository. If your "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16428 "repository path is <filename class=\"directory\">/quux/bar/foo</filename>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16429 "then <filename class=\"directory\">foo</filename> will be the name of each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16430 "snapshot directory. Each snapshot directory name has its changeset ID "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16431 "appended, if appropriate. If a snapshot is of revision "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16432 "<literal>a631aca1083f</literal>, the directory will be named <filename class="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16433 "\"directory\">foo.a631aca1083f</filename>. A snapshot of the working "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16434 "directory won't have a changeset ID appended, so it would just be <filename "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16435 "class=\"directory\">foo</filename> in this example. To see what this looks "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16436 "like in practice, look again at the <command role=\"hg-ext-extdiff\">extdiff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16437 "command> example above. Notice that the diff has the snapshot directory "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16438 "names embedded in its header."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16439 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16440
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16441 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16442 #: ../en/ch13-hgext.xml:322
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16443 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16444 "The <command role=\"hg-ext-extdiff\">extdiff</command> command accepts two "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16445 "important options. The <option role=\"hg-ext-extdiff-cmd-extdiff-opt\">hg -p</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16446 "option> option lets you choose a program to view differences with, instead of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16447 "<command>diff</command>. With the <option role=\"hg-ext-extdiff-cmd-extdiff-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16448 "opt\">hg -o</option> option, you can change the options that <command role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16449 "\"hg-ext-extdiff\">extdiff</command> passes to the program (by default, these "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16450 "options are <quote><literal>-Npru</literal></quote>, which only make sense if "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16451 "you're running <command>diff</command>). In other respects, the <command "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16452 "role=\"hg-ext-extdiff\">extdiff</command> command acts similarly to the built-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16453 "in <command role=\"hg-cmd\">hg diff</command> command: you use the same "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16454 "option names, syntax, and arguments to specify the revisions you want, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16455 "files you want, and so on."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16456 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16457
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16458 #
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16459 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16460 #: ../en/ch13-hgext.xml:339
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16461 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16462 "As an example, here's how to run the normal system <command>diff</command> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16463 "command, getting it to generate context diffs (using the <option role=\"cmd-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16464 "opt-diff\">-c</option> option) instead of unified diffs, and five lines of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16465 "context instead of the default three (passing <literal>5</literal> as the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16466 "argument to the <option role=\"cmd-opt-diff\">-C</option> option)."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16467 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16468
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16469 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16470 #: ../en/ch13-hgext.xml:348
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16471 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16472 "Launching a visual diff tool is just as easy. Here's how to launch the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16473 "<command>kdiff3</command> viewer."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16474 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16475
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16476 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16477 #: ../en/ch13-hgext.xml:352
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16478 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16479 "If your diff viewing command can't deal with directories, you can easily work "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16480 "around this with a little scripting. For an example of such scripting in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16481 "action with the <literal role=\"hg-ext\">mq</literal> extension and the "
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16482 "<command>interdiff</command> command, see <xref linkend=\"mq-collab:tips:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16483 "interdiff\"/>."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16484 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16485
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16486 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16487 #: ../en/ch13-hgext.xml:360
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16488 msgid "Defining command aliases"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
16489 msgstr "定义命令的别名"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16490
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16491 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16492 #: ../en/ch13-hgext.xml:362
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16493 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16494 "It can be cumbersome to remember the options to both the <command role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16495 "ext-extdiff\">extdiff</command> command and the diff viewer you want to use, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16496 "so the <literal role=\"hg-ext\">extdiff</literal> extension lets you define "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16497 "<emphasis>new</emphasis> commands that will invoke your diff viewer with "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16498 "exactly the right options."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16499 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16500
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16501 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16502 #: ../en/ch13-hgext.xml:369
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16503 msgid ""
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16504 "All you need to do is edit your <filename role=\"special\">~/.hgrc</"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16505 "filename>, and add a section named <literal role=\"rc-extdiff\">extdiff</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16506 "literal>. Inside this section, you can define multiple commands. Here's how "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16507 "to add a <literal>kdiff3</literal> command. Once you've defined this, you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16508 "can type <quote><literal>hg kdiff3</literal></quote> and the <literal role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16509 "\"hg-ext\">extdiff</literal> extension will run <command>kdiff3</command> for "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16510 "you."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16511 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16512
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16513 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16514 #: ../en/ch13-hgext.xml:379
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16515 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16516 "If you leave the right hand side of the definition empty, as above, the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16517 "<literal role=\"hg-ext\">extdiff</literal> extension uses the name of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16518 "command you defined as the name of the external program to run. But these "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16519 "names don't have to be the same. Here, we define a command named "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16520 "<quote><literal>hg wibble</literal></quote>, which runs <command>kdiff3</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16521 "command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16522 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16523
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16524 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16525 #: ../en/ch13-hgext.xml:389
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16526 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16527 "You can also specify the default options that you want to invoke your diff "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16528 "viewing program with. The prefix to use is <quote><literal>opts.</literal></"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16529 "quote>, followed by the name of the command to which the options apply. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16530 "example defines a <quote><literal>hg vimdiff</literal></quote> command that "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16531 "runs the <command>vim</command> editor's <literal>DirDiff</literal> extension."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16532 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16533
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16534 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16535 #: ../en/ch13-hgext.xml:403
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16536 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16537 "Cherrypicking changes with the <literal role=\"hg-ext\">transplant</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16538 "extension"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
16539 msgstr "使用扩展 <literal role=\"hg-ext\">transplant</literal> 以挑选修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16540
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16541 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16542 #: ../en/ch13-hgext.xml:406
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16543 msgid "Need to have a long chat with Brendan about this."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16544 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16545
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16546 #. type: Content of: <book><chapter><sect1><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16547 #: ../en/ch13-hgext.xml:410
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16548 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16549 "Send changes via email with the <literal role=\"hg-ext\">patchbomb</literal> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16550 "extension"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16551 msgstr ""
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
16552 "使用扩展 <literal role=\"hg-ext\">patchbomb</literal> 通过 email 发送修改"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16553
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16554 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16555 #: ../en/ch13-hgext.xml:413
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16556 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16557 "Many projects have a culture of <quote>change review</quote>, in which people "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16558 "send their modifications to a mailing list for others to read and comment on "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16559 "before they commit the final version to a shared repository. Some projects "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16560 "have people who act as gatekeepers; they apply changes from other people to a "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16561 "repository to which those others don't have access."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16562 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16563
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16564 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16565 #: ../en/ch13-hgext.xml:421
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16566 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16567 "Mercurial makes it easy to send changes over email for review or application, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16568 "via its <literal role=\"hg-ext\">patchbomb</literal> extension. The "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16569 "extension is so named because changes are formatted as patches, and it's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16570 "usual to send one changeset per email message. Sending a long series of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16571 "changes by email is thus much like <quote>bombing</quote> the recipient's "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16572 "inbox, hence <quote>patchbomb</quote>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16573 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16574
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16575 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16576 #: ../en/ch13-hgext.xml:429
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16577 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16578 "As usual, the basic configuration of the <literal role=\"hg-ext\">patchbomb</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16579 "literal> extension takes just one or two lines in your <filename role="
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16580 "\"special\"> /.hgrc</filename>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16581 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16582
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16583 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16584 #: ../en/ch13-hgext.xml:435
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16585 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16586 "Once you've enabled the extension, you will have a new command available, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16587 "named <command role=\"hg-ext-patchbomb\">email</command>."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16588 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16589
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16590 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16591 #: ../en/ch13-hgext.xml:439
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16592 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16593 "The safest and best way to invoke the <command role=\"hg-ext-patchbomb"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16594 "\">email</command> command is to <emphasis>always</emphasis> run it first "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16595 "with the <option role=\"hg-ext-patchbomb-cmd-email-opt\">hg -n</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16596 "option. This will show you what the command <emphasis>would</emphasis> send, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16597 "without actually sending anything. Once you've had a quick glance over the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16598 "changes and verified that you are sending the right ones, you can rerun the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16599 "same command, with the <option role=\"hg-ext-patchbomb-cmd-email-opt\">hg -n</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16600 "option> option removed."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16601 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16602
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16603 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16604 #: ../en/ch13-hgext.xml:450
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16605 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16606 "The <command role=\"hg-ext-patchbomb\">email</command> command accepts the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16607 "same kind of revision syntax as every other Mercurial command. For example, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16608 "this command will send every revision between 7 and <literal>tip</literal>, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16609 "inclusive."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16610 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16611
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16612 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16613 #: ../en/ch13-hgext.xml:455
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16614 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16615 "You can also specify a <emphasis>repository</emphasis> to compare with. If "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16616 "you provide a repository but no revisions, the <command role=\"hg-ext-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16617 "patchbomb\">email</command> command will send all revisions in the local "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16618 "repository that are not present in the remote repository. If you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16619 "additionally specify revisions or a branch name (the latter using the <option "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16620 "role=\"hg-ext-patchbomb-cmd-email-opt\">hg -b</option> option), this will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16621 "constrain the revisions sent."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16622 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16623
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16624 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16625 #: ../en/ch13-hgext.xml:464
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16626 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16627 "It's perfectly safe to run the <command role=\"hg-ext-patchbomb\">email</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16628 "command> command without the names of the people you want to send to: if you "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16629 "do this, it will just prompt you for those values interactively. (If you're "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16630 "using a Linux or Unix-like system, you should have enhanced "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16631 "<literal>readline</literal>-style editing capabilities when entering those "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16632 "headers, too, which is useful.)"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16633 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16634
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16635 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16636 #: ../en/ch13-hgext.xml:472
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16637 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16638 "When you are sending just one revision, the <command role=\"hg-ext-patchbomb"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16639 "\">email</command> command will by default use the first line of the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16640 "changeset description as the subject of the single email message it sends."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16641 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16642
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16643 #. type: Content of: <book><chapter><sect1><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16644 #: ../en/ch13-hgext.xml:477
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16645 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16646 "If you send multiple revisions, the <command role=\"hg-ext-patchbomb\">email</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16647 "command> command will usually send one message per changeset. It will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16648 "preface the series with an introductory message, in which you should describe "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16649 "the purpose of the series of changes you're sending."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16650 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16651
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16652 #. type: Content of: <book><chapter><sect1><sect2><title>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16653 #: ../en/ch13-hgext.xml:484
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16654 msgid "Changing the behaviour of patchbombs"
735
17fe2fe38373 Update Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents: 734
diff changeset
16655 msgstr "修改 patchbomb 的行为"
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16656
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16657 #. type: Content of: <book><chapter><sect1><sect2><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16658 #: ../en/ch13-hgext.xml:486
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16659 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16660 "Not every project has exactly the same conventions for sending changes in "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16661 "email; the <literal role=\"hg-ext\">patchbomb</literal> extension tries to "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16662 "accommodate a number of variations through command line options."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16663 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16664
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16665 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16666 #: ../en/ch13-hgext.xml:492
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16667 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16668 "You can write a subject for the introductory message on the command line "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16669 "using the <option role=\"hg-ext-patchbomb-cmd-email-opt\">hg -s</option> "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16670 "option. This takes one argument, the text of the subject to use."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16671 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16672
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16673 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16674 #: ../en/ch13-hgext.xml:498
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16675 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16676 "To change the email address from which the messages originate, use the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16677 "<option role=\"hg-ext-patchbomb-cmd-email-opt\">hg -f</option> option. This "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16678 "takes one argument, the email address to use."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16679 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16680
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16681 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16682 #: ../en/ch13-hgext.xml:504
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16683 msgid ""
757
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16684 "The default behaviour is to send unified diffs (see <xref linkend=\"sec:mq:"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16685 "patch\"/> for a description of the format), one per message. You can send a "
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16686 "binary bundle instead with the <option role=\"hg-ext-patchbomb-cmd-email-opt"
433040113eaf Update file location in po files
Dongsheng Song <songdongsheng@live.cn>
parents: 752
diff changeset
16687 "\">hg -b</option> option."
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16688 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16689
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16690 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16691 #: ../en/ch13-hgext.xml:512
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16692 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16693 "Unified diffs are normally prefaced with a metadata header. You can omit "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16694 "this, and send unadorned diffs, with the <option role=\"hg-ext-patchbomb-cmd-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16695 "email-opt\">hg --plain</option> option."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16696 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16697
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16698 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16699 #: ../en/ch13-hgext.xml:518
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16700 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16701 "Diffs are normally sent <quote>inline</quote>, in the same body part as the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16702 "description of a patch. This makes it easiest for the largest number of "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16703 "readers to quote and respond to parts of a diff, as some mail clients will "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16704 "only quote the first MIME body part in a message. If you'd prefer to send the "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16705 "description and the diff in separate body parts, use the <option role=\"hg-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16706 "ext-patchbomb-cmd-email-opt\">hg -a</option> option."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16707 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16708
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16709 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16710 #: ../en/ch13-hgext.xml:528
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16711 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16712 "Instead of sending mail messages, you can write them to an <literal>mbox</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16713 "literal>-format mail folder using the <option role=\"hg-ext-patchbomb-cmd-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16714 "email-opt\">hg -m</option> option. That option takes one argument, the name "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16715 "of the file to write to."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16716 msgstr ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16717
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16718 #. type: Content of: <book><chapter><sect1><sect2><itemizedlist><listitem><para>
749
7e7c47481e4f Oops, this is the real merge for my hg's oddity
Dongsheng Song <dongsheng.song@gmail.com>
parents: 745
diff changeset
16719 #: ../en/ch13-hgext.xml:535
726
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16720 msgid ""
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16721 "If you would like to add a <command>diffstat</command>-format summary to each "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16722 "patch, and one to the introductory message, use the <option role=\"hg-ext-"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16723 "patchbomb-cmd-email-opt\">hg -d</option> option. The <command>diffstat</"
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16724 "command> command displays a table containing the name of each file patched, "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16725 "the number of lines affected, and a histogram showing how much each file is "
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16726 "modified. This gives readers a qualitative glance at how complex a patch is."
8271c8891b0e Add Chinese translation
Dongsheng Song <dongsheng.song@gmail.com>
parents:
diff changeset
16727 msgstr ""