hgbook
changeset 1105:9c84da5d93e9
2.8.2 4 paras zh translated
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Tue Dec 01 23:40:47 2009 -0500 (2009-12-01) |
parents | eafa27cb18eb |
children | aed0e9396b14 |
files | po/zh.po |
line diff
1.1 --- a/po/zh.po Wed Nov 25 22:54:30 2009 -0500 1.2 +++ b/po/zh.po Tue Dec 01 23:40:47 2009 -0500 1.3 @@ -5016,6 +5016,12 @@ 1.4 "not (by default) touch the working directory. Instead, we use the <command " 1.5 "role=\"hg-cmd\">hg update</command> command to do this." 1.6 msgstr "" 1.7 +"现在我们已经对版本库和它的工作目录之间的关系有了粗略的了解。我们在<xref " 1.8 +"linkend=\"sec:tour:pull\"/>一节运行的<command role=\"hg-cmd\">hg pull</" 1.9 +"command>命令会将变更拖进版本库,但是如果我们检查一下的话,就会发现工作目录并没" 1.10 +"有变化。这是因为<command role=\"hg-cmd\">hg pull</command>命令并不会影响工作目" 1.11 +"录。实际上,我们需要<command role=\"hg-cmd\">hg update</command>命令来完成这个" 1.12 +"工作。" 1.13 1.14 #. type: Content of: <book><chapter><sect1><sect2><para> 1.15 #: ../en/ch02-tour-basic.xml:848 1.16 @@ -5030,6 +5036,12 @@ 1.17 "automatically updated the working directory to a new revision, you might not " 1.18 "be terribly happy." 1.19 msgstr "" 1.20 +"<command role=\"hg-cmd\">hg pull</command>命令并不会自动更新工作目录,这看起来" 1.21 +"有点奇怪。但实际上这样做是有原因的:你可以用<command role=\"hg-cmd\">hg " 1.22 +"update</command>来更新工作目录,切换到版本库中的任意一个版本。假设你将工作目录" 1.23 +"切换到一个老的版本&emdash;假如说是为了追踪一个bug&emdash;然后运行了<command " 1.24 +"role=\"hg-cmd\">hg pull</command>命令。它自动将工作目录更新到新版本,这可能并" 1.25 +"不是你想要的结果。" 1.26 1.27 #. type: Content of: <book><chapter><sect1><sect2><para> 1.28 #: ../en/ch02-tour-basic.xml:860 1.29 @@ -5038,6 +5050,9 @@ 1.30 "lets you combine the two by passing the <option role=\"hg-opt-pull\">-u</" 1.31 "option> option to <command role=\"hg-cmd\">hg pull</command>." 1.32 msgstr "" 1.33 +"因为拖然后更新是个非常常用的操作顺序,Mercurial允许你将这两个操作组合在一起," 1.34 +"只要给<command role=\"hg-cmd\">hg pull</command>命令加上<option role=\"hg-opt-" 1.35 +"pull\">-u</option>选项就可以了。" 1.36 1.37 #. type: Content of: <book><chapter><sect1><sect2><para> 1.38 #: ../en/ch02-tour-basic.xml:865 1.39 @@ -5054,6 +5069,8 @@ 1.40 "To find out what revision the working directory is at, use the <command role=" 1.41 "\"hg-cmd\">hg parents</command> command." 1.42 msgstr "" 1.43 +"如果想知道工作目录的版本,可以使用<command role=\"hg-cmd\">hg parents</" 1.44 +"command>命令。" 1.45 1.46 #. type: Content of: <book><chapter><sect1><sect2><para> 1.47 #: ../en/ch02-tour-basic.xml:878 1.48 @@ -5073,6 +5090,8 @@ 1.49 "number or changeset ID to the <command role=\"hg-cmd\">hg update</command> " 1.50 "command." 1.51 msgstr "" 1.52 +"如果需要将工作目录切换到一个特定版本,给<command role=\"hg-cmd\">hg update</" 1.53 +"command>命令加上版本号或者变更集标识符就可以了。" 1.54 1.55 #. type: Content of: <book><chapter><sect1><sect2><para> 1.56 #: ../en/ch02-tour-basic.xml:893