Subversion in Action Subversion实战 Working Copies 工作副本 www.shengfang.org 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. 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). 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. 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. 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 $ ls -A calc 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. http://blog.cnpack.org/index.php?play=show&id=17 很早就知道 SubVersion,不过一直没好好研究过。前段时间安装了,简单用了用,感觉相比 CVS 改进比较大。TortoiseSVN 做得不错,比 TCVS 看起来舒服很多。看来有空时要好好玩玩了。 期待~~~~~ 字体:大 中 小 |
![]() | 永久地址 http://www.shengfang.org/blog/p/svnhelpaction1.php |
![]() | 引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1124628761 |
2005年8月21日20:52星期日 [English]





