首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(2) | 阅读1979次
TortoiseSVN 帮助 Subversion 修正号

Suppose you make changes to button.c. Since the .svn directory remembers the file's modification date and original contents, Subversion can tell that you've changed the file. However, Subversion does not make your changes public until you explicitly tell it to. The act of publishing your changes is more commonly known as committing (or checking in) changes to the repository.
假设您修改了BUTEEON。c 。 由于。svn 目录记住了文件的修改日期和原始的内容, Subversion可能告诉 您改变了文件。 但是,Subversion不会主动发布您的变动,您明确地告诉它。发布您的变动行动通常为人所知 提交 或者 导入 对贮藏库的变动。  www.shengfang.org

To publish your changes to others, you can use Subversion's commit command.
如果需要发布你的修改,你应该使用SUBVERSION的提交命令

Now your changes to button.c have been committed to the repository; if another user checks out a working copy of /calc, they will see your changes in the latest version of the file.
现在您的对按钮的变动。c 做了对贮藏库; 如果其它用户检查工作 /calc 的拷贝, 他们将看您的变化在文件上的最新的版本。  www.shengfang.org

Suppose you have a collaborator, Sally, who checked out a working copy of /calc at the same time you did. When you commit your change to button.c, Sally's working copy is left unchanged; Subversion only modifies working copies at the user's request.
假设您有一个合作者, 萨莉, 也同时取出/calc 的一个工作拷贝在您作同样事情的时候。 当您提交BUTTON.C文件的修改的时候,萨莉的工作拷贝被留下没有被修改; Subversion只根据用户的要求修改工作拷贝

To bring her project up to date, Sally can ask Subversion to update her working copy, by using the Subversion update command. This will incorporate your changes into her working copy, as well as any others that have been committed since she checked it out.
到了项目日期, 萨莉可能要求Subversion 更新 她的工作拷贝, 由使用Subversion 更新 命令。 这将合并您的修改到她的工作拷贝, 以及其他人在她导出之后做的提交。


Note that Sally didn't need to specify which files to update; Subversion uses the information in the .svn directory, and further information in the repository, to decide which files need to be brought up to date.
注意萨莉不需要指定哪个文件更新; Subversion使用信息在。svn 目录, 和详细信息在贮藏库, 决定哪个文件需要被带来最新。  www.shengfang.org

2.3.2. Revisions修正 www.shengfang.org
An svn commit operation can publish changes to any number of files and directories as a single atomic transaction. In your working copy, you can change files' contents, create, delete, rename and copy files and directories, and then commit the complete set of changes as a unit.
svn 提交 操作发布修改对任一个文件和目录的数字的变动作为一个 唯一原子交易。 在您的工作副本贝, 您能改变文件的内容, 创造, 删除, 给和复制文件和目录改名, 然后提交所有的修改作为一套完整的单位。

In the repository, each commit is treated as an atomic transaction: either all the commit's changes take place, or none of them take place. Subversion tries to retain this atomicity in the face of program crashes, system crashes, network problems, and other users' actions.
在贮藏库, 每个提交作为一种原子交易: 或者所有提交变动生效, 或没有生效。 Subversionj将尝试保留原有内容 在程序崩溃, 系统事故, 网络问题面前, 和其它用户的行动。

Each time the repository accepts a commit, this creates a new state of the filesystem tree, called a revision. Each revision is assigned a unique natural number, one greater than the number of the previous revision. The initial revision of a freshly created repository is numbered zero, and consists of nothing but an empty root directory.
每次贮藏库接受一个提交, 将创造文件系统 树的一个新状态, 叫做  修正. 各个修正被分配一个独特的自然数字, 大于早先修正定义的数字。 一间新鲜地被创造的贮藏库的最初的修正第号零, 和包括没什么但一个空的根目录。

A nice way to visualize the repository is as a series of trees. Imagine an array of revision numbers, starting at 0, stretching from left to right. Each revision number has a filesystem tree hanging below it, and each tree is a “snapshot” of the way the repository looked after each commit.  www.shengfang.org
一个好的方式形象化贮藏库是作为一系列的树。 想象版本号, 开始于0, 舒展从左到右。 各版本号有一个 树垂悬在它之下, 和各棵树是"快照" 方式贮藏库照看了每个提交。

Global Revision Numbers www.shengfang.org

Unlike those of many other version control systems, Subversion's revision numbers apply to entire trees, not individual files. Each revision number selects an entire tree, a particular state of the repository after some committed change. Another way to think about it is that revision N represents the state of the repository filesystem after the Nth commit. When a Subversion user talks about ``revision 5 of foo.c'', they really mean ``foo.c as it appears in revision 5.'' Notice that in general, revisions N and M of a file do not necessarily differ!

全球性版本号 www.shengfang.org

不同于那些许多其他版本管理系统, Subversion的版本号适用于 整个树, 不仅仅各自的文件。 各版本号选择一棵整个树, 特殊性贮藏库的状态在一些做的变动以后。 其它方式认为是, 修正N 以后代表贮藏库filesystem 的状态 n 做。 当Subversion用户谈论"修正5 foo 。c ", 他们真正地意味"foo 。c 如同看起来在修正5 。"注意那总之, 修正N 和M 文件 不是 必要不同! 

使用了微软的 Office 2003的翻译服务 以不加密的 HTML 格式通过 Internet 发送文档以获得翻译服务


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/tsvnhlprev.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1127225023

2005年9月20日22:03星期二  [English] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1790
在线: 12||用户: 2563 [列表]
今日:575||到访:2682214
Rss:841941||评论:1585

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8