`
Eri_Tian
  • 浏览: 9147 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

SVN使用以及图标含义(学习笔记)

    博客分类:
  • Java
svn 
阅读更多

SVN使用基本流程:

 

a. 初次(initial)取出(checkout)repos,建立本地工作拷贝(WC WorkingCopy)。

b. 与repos同步(update),保证将要进行的编辑是最新版本。

c. 编辑源代码(包括创建、修改、删除)。

d. 与repos同步(update),提交之前先要同步到最新的版本,保证所有在自己之前的有关提交已经在本地有所知晓。

e. 解决冲突(resolve conflict)。

f. 提交(commit),一定要写上这次提交的内容的摘要,便于以后查阅。

g. 继续b。 每次开始新的编辑前的同步repos很重要,另外经常地update没有坏处,特别是多人项目中。如果每次提交(commit)前不进行更新(update)的到最新的版本的话,svn会提示当前的拷贝过期,需要更新。

在使用的过程中,时刻注意当前的工作拷贝(WC WorkingCopy)所对应的URL很重要,特别是当有了branches和tag等时候。使用svn info可以查看到这些信息。使用TortoiseSVN时,通过下面的操作查看这些信息:右键单击工作拷贝的根文件夹(不是上级文件夹),菜单中选择则属性(不是TortoiseSVN那个菜单),然后在出现的对话框中选择Subversion标签就可以看到了。

 

项目视图 The Package Explorer view

- 已忽略版本控制的文件。可以通过Window → Preferences → Team → Ignored Resources.来忽略文件。 A file ignored by version control. You can control what resources will be ignored by going to Window → Preferences → Team → Ignored Resources.

- 未纳入版本控制的文件,一般是新增,尚未提交的文件。 A file not under version control. These are typically new files that you have not committed to the repository yet.

- 本地重命名或移动到其它目录的文件。 A versioned file that needs to be added to the remote repository. These are typically files you have either renamed, or moved to a different directory.

- 本地删除的目录。 A deleted folder. These are folders that you have deleted locally without yet committing the changes to the repository. Note that files are usually removed from the view when they're deleted locally, so they are normally not seen with this icon.

- 没有任何改动的文件。 A file with no local changes.

- 有改动,但没有提交的文件。 A file with local, uncommitted changes.

- 处于锁定状态的文件。 A locked file.

- 有冲突没有解决,就更新或提交的文件。 A conflicted file. These are typically files that had a commit/update conflict that you marked to resolve later.

- 有目录树冲突的文件。一般在最近一次更新后,资源库上的文件被移动、删除或重命名。 A file that has a tree conflict. These are typically files that have local changes, but have since been moved, removed, or renamed in the repository since the last local copy update.

- 引用外部项目的文件,不能提交到本项目的资源库里。 A file that is external to the project. Linked external files cannot be committed to the repository.

- 有分支版本的文件。这些文件属于另外一个不同的工作目录而不是属于本地的父目录。 A file that has been switched. These are files which belongs to a different working copy than their local parent directory. 迁出 迁出Outgoing view

- 本地有更改的文件。 A file whose contents have been modified and will be committed to the repository.

- 本地新增的文件。 A file that will be newly added to the repository. This may coincide with a file removal in cases where a file is moved or renamed.

- 本地删除的文件。 A file that will be removed from the repository. This may coincide with a file addition in cases where a file is moved or renamed.

- 本地文件属性发生变化了的文件。 A file with property changes, in the Commit dialog. On the Synchronize tab, property changes are currently reflected as a normal file modification ().

迁入 Incoming view

- 需要更新的文件。 A file that has content changes committed to the repository that will be applied to the local copy.

- 需要迁入的新增文件。 A new file that will be added to the local copy from the repository. Like the outgoing file addition, this may be the result of a move or rename.

- 资源库中删除了的文件。 A file that will be removed from the local copy because it has been removed from the repository. Like the outgoing file removal, this may be the result of a move or rename.

冲突 Conflict view

- 资源库和本地同时有修改的文件。 A file that has been changed in both the local copy and repository independently, causing a need for conflict resolution. Fixing this condition involves opening up the conflict view or forcibly overwriting changes locally or remotely.

- 远程资源库上已经被重命名或移动、删除的文件。 A file that has a tree conflict. This can occur when there are new changes to a file on one end (either local or remote), and the file is moved, removed, or renamed on the other.

“与资源库同步”选项打开的界面上的一些按钮 Others :

Finally, the Synchronize with Repository option opens the Synchronize tab () with the following buttons:

- 同步选中的文件,下拉箭头切换不同的远程目录。 Synchronizes the local copy with the currently selected repository when clicked. Selecting from the drop-down allows switching between different remote code bases.

- 只显示需要迁入的文件。 Shows only incoming changes (remote → local).

- 只显示需要提交的文件。 Shows only outgoing changes (local → remote).

- 同时显示需要更新或提交文件。 Shows both incoming and outgoing changes (remote ↔ local).

- 只显示有冲突的文件。 Shows conflicting changes.

- 更新全部文件。 Updates all local resources with incoming changes after prompt.

- 提交全部文件。 Brings up the commit dialog to commit all outgoing changes.

 

svn图标含义来自:http://my.oschina.net/coda/blog/33678

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics