首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(1) | 阅读2179次
Tortoisesvn帮助-Subversion实战1

Subversion in Action Subversion实战
It's time to move from the abstract to the concrete. In this section, we'll show real examples of Subversion being used.
现在是从抽象转向具体的时间,本章我们将展示Subversion使用实例

Working Copies 工作副本 www.shengfang.org
You've already read about working copies; now we'll demonstrate how the Subversion client creates and uses them.
你已经知道了一些工作副本的知识,现在我们将示范Subversion客户端如何创建和使用的

A Subversion working copy is an ordinary directory tree on your local system, containing a collection of files. You can edit these files however you wish, and if they're source code files, you can compile your program from them in the usual way. Your working copy is your own private work area: Subversion will never incorporate other people's changes, nor make your own changes available to others, until you explicitly tell it to do so.
一个Subversion工作副本是在你本地系统的一个普通的目录树,包含一些文件。你可以按照你的意图进行编辑,如果是源代码文件,你能够按照正常的方式编译你的程序。你的工作副本是你自己的私有的工作区域,Subversion从不合并其他人的修改,或者提交你的修改给其他人,直到你明确的要求Subversion进行提交。

After you've made some changes to the files in your working copy and verified that they work properly, Subversion provides you with commands to “publish” your changes to the other people working with you on your project (by writing to the repository). If other people publish their own changes, Subversion provides you with commands to merge those changes into your working directory (by reading from the repository).
你已经对文件作了一些修改,并且验证它们工作正常,Subversion提供你命令发布你的修改给其他人,他们和你一起工作于一个项目,通过写入仓库。如果其他人发布了他们的修改,Subversion提供命令让你合并修改到你的本地副本,从仓库中读取。 www.shengfang.org

A working copy also contains some extra files, created and maintained by Subversion, to help it carry out these commands. In particular, each directory in your working copy contains a subdirectory named .svn, also known as the working copy administrative directory. The files in each administrative directory help Subversion recognize which files contain unpublished changes, and which files are out-of-date with respect to others' work.
一个工作副本还包含一些额外文件,由Subversion创建和管理,用来辅助完成一些命令,特别的,每个你的工作副本目录下包含一些子目录名为.svn,这是工作副本的管理目录,在每个管理目录下有一些文件帮助Subversion记录每个文件包含了哪些没有发布的修改,哪些文件已经被别人修改

A typical Subversion repository often holds the files (or source code) for several projects; usually, each project is a subdirectory in the repository's filesystem tree. In this arrangement, a user's working copy will usually correspond to a particular subtree of the repository.
一个典型的Subversion仓库还几个项目保存一些文件或者源代码,通常,每个项目是一个仓库文件系统树的子目录,在这个安排中,一个用户的工作副本通常对应仓库的特定的某个子目录

For example, suppose you have a repository that contains two softw www.shengfang.org are projects, paint and calc. Each project lives in its own top-level subdirectory, as shown in Figure 2.6, “The repository's filesystem”.
例如,假设你已经有了一个仓库,包含两个软件项目,画图和计算器,每个项目在它自己的顶层子目录,如图

Figure 2.6. The repository's filesystem 仓库文件系统 www.shengfang.org

To get a working copy, you must check out some subtree of the repository. (The term “check out” may sound like it has something to do with locking or reserving resources, but it doesn't; it simply creates a private copy of the project for you.) For example, if you check out /calc, you will get a working copy like this:
获得一个工作副本,你必须取出一些仓库的子树。术语取出类似于作了一些锁定或保存资源,但是它没有,它只是简单的为你创建了一个项目的私有副本,如果你取出计算器,你应该获得副本

$ svn checkout http://svn.example.com/repos/calc
A  calc
A  calc/Makefile
A  calc/integer.c
A  calc/button.c

$ ls -A calc
Makefile  integer.c  button.c  .svn/ www.shengfang.org

The list of letter A's indicates that Subversion is adding a number of items to your working copy. You now have a personal copy of the repository's /calc directory, with one additional entry—.svn—which holds the extra information needed by Subversion, as mentioned earlier.
字母A列表表示Subversion增加了一些东西到你的本地副本,你现在有了一个个人的仓库副本,calc目录,一个附加的条目 ,它保留了一些Subversion需要的扩展信息,如前所述 www.shengfang.org

http://blog.cnpack.org/index.php?play=show&id=17 

很早就知道 SubVersion,不过一直没好好研究过。前段时间安装了,简单用了用,感觉相比 CVS 改进比较大。TortoiseSVN 做得不错,比 TCVS 看起来舒服很多。看来有空时要好好玩玩了。

今天在 CVSTrac 的时间线上看到有 svntrac-pacthes 分支上的提交,查了下 CVS,发现作者在对 svn 的支持已经做了不少工作,估计今年就可以用了。当然,到时候 SVNTrac 中文版和 SVNTracNT 我们也会尽快推出。

CVSTracNT 对 CnPack 来说,是无心插柳之作,没想到用户还不少,也结识了很多朋友。真有趣!

期待~~~~~


字体:

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

2005年8月21日20:52星期日  [English] 追踪此文的RSS
提示:
此文还没有评论。

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



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

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1790
在线: 14||用户: 2562 [列表]
今日:1601||到访:2671100
Rss:838280||评论:1584

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

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