简体   繁体   English

如何检查来自wc的文件是否在/ trunk或/ branch中-TortoiseSVN

[英]How to check if the file from wc is in /trunk or /branch - TortoiseSVN

Let's say that I work in /trunk, and I switch only specified files to /branch, and not the whole wc. 假设我在/ trunk中工作,并且仅将指定文件切换到/ branch,而不是整个wc。 This allows me to make general changes in /trunk and I can get updates from other colleagues, while I add some new features in /branch for testing purposes. 这使我可以在/ trunk中进行常规更改,并且可以从其他同事那里获得更新,同时我可以在/ branch中添加一些新功能以进行测试。 After a while, I will not be sure which files are in /trunk, and which are in /branch. 一段时间后,我将不确定哪些文件在/ trunk中,哪些文件在/ branch中。

I could switch back and forth between /trunk and /branch for making the changes in relevant repository, but this is a tedious work. 我可以在/ trunk和/ branch之间来回切换,以便在相关存储库中进行更改,但这是一件繁琐的工作。

I know if I look at file URL that it shows where the file is, but is there an easy way to see the same thing in Windows Explorer? 我知道是否查看文件URL来显示文件的位置,但是是否有一种简单的方法可以在Windows资源管理器中看到相同的内容?

PS In the end, is it an good idea to do so? PS最后,这样做是一个好主意吗? It looks OK for me because later I don't have to merge all files that were not intended to be changed in the /branch. 对我来说看起来不错,因为以后我不必合并所有不打算在/ branch中更改的文件。

OK, I was stupid and didn't see that in 'Commit' or 'Check for modifications' window I can see the URL of all of my modified files. 好的,我很愚蠢,没有在“提交”或“检查修改”窗口中看到该文件,我可以看到所有修改后的文件的URL。

What I found out while having a mixed repository with files in WC in different branches, a little bit misleading while making a commit of the whole WC is that it shows the files will be committed in let's say Branch1. 我在不同分支中的WC中有一个包含文件的混合存储库时发现,在提交整个WC时有点误导是它表明文件将在例如Branch1中提交。 If one file from WC is in Branch2 it won't be committed to Branch1, but in Branch2 where it actually belongs and in the end it's correct way to do it. 如果来自WC的一个文件在Branch2中,则不会提交给Branch1,但在实际上它所属的Branch2中,最后是正确的处理方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM