Just hold down the Shift key while you right click on the file. Then select → . In the following dialog, specify the URL in the repository with which you want to compare your local file to.
File Differences
Local changes
If you want to see what changes you have made in your working copy, just use the explorer context menu and select → .
Difference to another branch/tag
If you want to see what has changed on trunk (if you are working on a branch) or on a specific branch (if you are working on trunk), you can use the explorer context menu. Just hold down the Shift key while you right click on the file. Then select → . In the following dialog, specify the URL in the repository with which you want to compare your local file to.
You can also use the repository browser and select two trees to diff, perhaps two tags, or a branch/tag and trunk. The context menu there allows you to compare them using . Read more in the section called “Comparing Folders”.
Difference from a previous revision
If you want to see the difference between a particular revision and your working copy, use the Revision Log dialog, select the revision of interest, then select from the context menu.
If you want to see the difference between the last committed revision and your working copy, assuming that the working copy hasn't been modified, just right click on the file. Then select → . This will perform a diff between the revision before the last-commit-date (as recorded in your working copy) and the working BASE. This shows you the last change made to that file to bring it to the state you now see in your working copy. It will not show changes newer than your working copy.
Difference between two previous revisions
If you want to see the difference between two revisions which are already committed, use the Revision Log dialog and select the two revisions you want to compare (using the usual Ctrl-modifier). Then select from the context menu.
If you did this from the revision log for a folder, a Compare Revisions dialog appears, showing a list of changed files in that folder. Read more in the section called “Comparing Folders”.
All changes made in a commit
If you want to see the changes made to all files in a particular revision in one view, you can use Unified-Diff output (GNU patch format). This shows only the differences with a few lines of context. It is harder to read than a visual file compare, but will show all the changes together. From the Revision Log dialog select the revision of interest, then select from the context menu.
Difference between files
If you want to see the differences between two different files, you can do that directly in explorer by selecting both files (using the usual Ctrl-modifier). Then from the explorer context menu select → .
Difference between WC file/folder and a URL
If you want to see the differences between a file in your working copy, and a file in any Subversion repository, you can do that directly in explorer by selecting the file then holding down the Shift key whilst right clicking to obtain the context menu. Select → . You can do the same thing for a working copy folder. TortoiseMerge shows these differences in the same way as it shows a patch file - a list of changed files which you can view one at a time.
Difference with blame information
If you want to see not only the differences but also the author, revision and date that changes were made, you can combine the diff and blame reports from within the revision log dialog. Read the section called “Blame Differences” for more detail.
Difference between folders
The built-in tools supplied with TortoiseSVN do not support viewing differences between directory hierarchies. But if you have an external tool which does support that feature, you can use that instead. In the section called “External Diff/Merge Tools” we tell you about some tools which we have used.
If you have configured a third party diff tool, you can use Shift when selecting the Diff command to use the alternate tool. Read the section called “External Program Settings” to find out about configuring other diff tools.
分享到:
相关推荐
3. **仓库与工作副本**:在TortoiseSVN中,"仓库"是存储所有版本信息的中央位置,而"工作副本"是用户本地的项目目录,包含了从仓库检出的文件和目录。用户在工作副本中进行修改,然后将这些更改提交到仓库。 4. **...
5. **分支与合并**:需要时,创建分支或标记,完成开发后使用“Merge”功能将分支合并回主干。 6. **版本追踪**:通过“SVN Log”查看历史版本,用“SVN Diff”比较不同版本的差异。 通过TortoiseSVN,开发团队...
5. **分支与标签**: - **分支(Branch)**:创建项目的一个可独立开发的副本,允许并行开发而不影响主线。 - **标签(Tag)**:创建项目的一个静态快照,用于标记特定版本,不建议在标签上做进一步开发。 6. **合并...
TortoiseSVN-1.7.3.22386-win32-svn-1.7.2.msi是TortoiseSVN的主要安装程序,它包含了TortoiseSVN客户端的全部功能,如版本控制操作(如Checkout、Commit、Update、Merge)、文件和目录的右键菜单集成、强大的 diff ...
- **合并分支:** 将分支上的修改合并回主干或其他分支。 - **管理分支:** 删除、移动分支等操作。 通过以上介绍,我们可以看到TortoiseSVN不仅提供了强大的版本控制功能,还集成了许多实用的辅助工具,非常适合...
4. **分支与标签** TortoiseSVN支持创建分支和标签,分支用于独立开发新功能,标签则用于标记特定版本,两者都提供了对主干之外的代码管理。 5. **解决冲突** 当多个人同时修改同一部分代码时,会产生冲突。...
5. **合并(Merge)**:处理分支和主干之间的差异,整合不同版本的变更。 **三、TortoiseSVN 1.7.1 Merge工具** 1. **启动Merge**:选择需要合并的源(Source)和目标(Target),可以是不同分支或同一分支的不同...
使用TortoiseSVN的“Repository Browser”功能中的分支图功能。 #### 二十五、导出一个Subversion工作拷贝 - **定义**:将工作拷贝导出为普通文件夹。 - **操作步骤**: 1. 使用TortoiseSVN的“Export”功能。 ...
#### 五、分支与合并 - **分支的作用**:分支可以用于实验新功能而不影响主干的稳定性;也可以用于维护旧版本的同时继续开发新版本。 - **创建分支**:通过复制主干或某个特定版本来创建分支。 - **合并分支**:将...
创建分支与创建标签类似,但是分支是用来支持并行开发或者维护多个版本的需求。 ```bash # 从/trunk/目录创建一个分支 svn copy ...
分支则允许团队成员在不影响主干开发的情况下进行独立开发,完成后可以合并回主分支。 10. **合并(Merge)**: - 分支完成后,需要将分支的改动合并回主分支。使用“SVN Merge”命令,按照一定的策略将分支的更新...
2. **分支与合并**:SVN支持分支和合并操作,允许开发团队并行开发。分支是创建一个与主干独立的开发线路,而合并则将分支上的改动合并回主干,这样可以在不影响主线开发的情况下进行功能试验或修复错误。 3. **...
- **文件对比(Diff)**:比较文件的当前版本与版本库中的版本差异。 - **创建分支(Branch/Tag)**:基于现有版本创建分支或标签,用于特性开发或备份特定版本。 - **合并分支(Merge)**:将分支的更改合并回主干...
5. **分支与合并策略**:在多人协作的项目中,分支管理至关重要。手册会指导你如何创建和管理分支,以及何时和如何将分支的改动合并回主干,以保持项目的稳定性和一致性。 6. **冲突解决**:当两个或多个开发者同时...
- **合并(Merge)**:合并分支到主干或其他分支。 - **标签(Tag)**:为特定版本创建标签,便于后续引用。 通过上述步骤,不仅可以在Windows环境下成功搭建SVN服务器和客户端,还能实现高效的版本控制管理。这有...
- **合并(Merge)**:处理分支与主干的代码合并,解决冲突。 - **标记(Tag)**:创建特定版本的标签,用于记录重要里程碑。 - **回滚(Revert)**:撤销对本地文件的改动,恢复到版本库中的状态。 通过掌握这些...
1. **分支与标记**:在SVN中,通过`svn copy`命令创建分支或标记,以便进行平行开发或保存特定版本。 2. **合并分支**:`svn merge`是进行代码合并的关键命令。它允许你将一个分支的修改合并到另一个分支或主干。...
- **分支与合并**: - **分支**:使用`svn copy`命令创建分支,方便在不干扰主干的情况下进行开发。 - **合并**:使用`svn merge`命令将分支的变化合并到主干或其他分支。 - **版本回退**: - **查看历史版本**:...
4. **SVN分支与合并** - 分支(Branch):创建项目的一个独立副本,用于开发新功能或修复,不干扰主干。 - 合并(Merge):将分支的更改合并回主干或其他分支,保持代码同步。 5. **SVN备份与恢复** - 备份:...
6. **创建分支与标签**:使用`svn copy`命令,指定分支或标签的URL和目标URL。 7. **合并分支**:使用`svn merge`将分支的更改合并回主干或其他分支。 **五、高级特性** 1. **忽略文件**:使用`.svnignore`文件列出...