如何避免签入SVN信息库的本地更改? [英] How do I avoid checking in local changes to the SVN repository?

查看:125
本文介绍了如何避免签入SVN信息库的本地更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须对项目文件进行本地更改,才能使其在其他环境中运行.现在,我两次不小心检查了这些更改(并弄乱了其他所有人的运行环境).

也许有很多更好的方法来建立我们的版本,但是由于我是一个既定项目的顾问,所以我无法真正改变客户的工作方式.

我尝试在同一存储库中设置第二个分支(该分支适得其反,将整个树复制到其存储库的根中-我不再赘述了.)

试图建立我自己的第二个存储库,然后将这些文件检入到新的存储库中.这也真的很乱,基本上是行不通的.

我正在考虑使用SVK,它似乎可以提供帮助,但我还不太想出一种可行的模式.

我认为我什至在这里发表了文章,但没有得到很好的答案,但这是在我认真考虑SVK之前的-我认为有了这个新参数,可能会有更好的解决方案.

我意识到我可以跟踪要检查的更改,然后仅将其检入,但这是一个依赖于人类的越野车程序,迄今为止,它使我两次失败(因为我是一辆越野车)./p>

关于如何执行此操作的任何建议吗?

解决方案

您使用什么客户端?

TortoiseSVN具有很漂亮的功能,它利用了更改列表内置于SVN中的功能.如果右键单击修改后的文件夹并选择检查修改",则可以右键单击该对话框中的任何修改后的文件,然后选择添加到更改列表->提交时忽略".从那时起,无论何时执行提交,Tortoise都要确保不要将这些文件添加到提交中.请参见此页面

如果您不使用乌龟,则可以手动设置类似的更改列表.

I have to make local changes to my project files in order to get it to run in a different environment. Twice now I accidentally checked those changes in (and messed up everyone else's running environment).

There are probably a lot of better ways to set up our build, but since I work as a consultant on an established project I can't really change how the customer works.

I've tried setting up a second branch in the same repository (which backfired, duplicating the entire tree in the root of their repository--I won't be messing around with that again).

Tried setting up a second repository of my own and checking in JUST those files to the new repository. This got really messy as well and basically didn't work.

I'm considering SVK--it looks like it MIGHT be able to help, but I can't quite figure out a pattern that would work.

I think I even posted here and didn't get a good answer, but that was before I was seriously considering SVK--I figured with that new parameter there might be a better solution.

I realize I could track the changes I WANT to check in and then just check those in, but that's a human dependent and buggy procedure that, to date, has failed me twice (because I'm a buggy human).

Any suggestions on just how to do this?

解决方案

What client do you use?

TortoiseSVN has a nifty feature that takes advantage of the changelist feature built into SVN. If you right click on a modified folder and choose "Check for Modifications," you can right-click on any of the modified files in that dialog and choose "Add to Changelist -> ignore-on-commit." From then on, whenever you perform a commit Tortoise makes sure not to add those files to the commit. See "Excluding Items from the Commit List" on this page.

If you're not using tortoise, you could set up a similar changelist manually.

这篇关于如何避免签入SVN信息库的本地更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆