When firing the SVN update statement I am getting the conflicts. How can I keep my version and check that in. What is the command for that?
相关问题
- How can I set the SVN password with Emacs 23.1 bui
- If statements in .htaccess files, to enable passwo
- SVN+SSH checkout over VPN using tortoise SVN, Smar
- Mercurial compared to private branches in SVN
- Using Subversion and SourceSafe at the same time?
相关文章
- Is there a version control system abstraction for
- Intermittent “SVNException: svn: E175002: Connecti
- IntelliJ Subversion Authentication Required Dialog
- TortoiseHG and hgsubversion (Windows): “no module
- Incompatible JavaHl library loaded
- TFS vs. JIRA/Bamboo/SVN [closed]
- converting svn repo to git using reposurgeon
- SVN查看日志超时
Right click the conflicting file and choose "use mine". FYI, the other alternative is "use theirs". Of course this requires UI.
Your problem is that both of you have edited the same part of a file. As soon as you did that, there was going to be trouble down the line. SVN's doesn't do file level locking (for good reason!), so assumes that you won't both make changes within a few lines of each other.
If you happen to be using Visual Studio, I've been working on a tool that will highlight parts of the file you are editing that have been changed by someone else.
If you are working in the command line instead of using a UI, svn will ask you when you do "svn update" something like:
Conflict discovered in 'bar.c': (p) Postpone (e) Edit (tf) Theirs-full (mf) Mine-full
What you want is mine-full (mf). Of course this will overwrite any changes that the other person made, so you may instead want to (e)dit.
If you choose to (p)ostpone this, you will need to change the file later and mark it as resolved (svn resolved ), followed by a svn commit.
Just for anyone who has many conflicts and doesn't want to resolve them one by one, keeping yours changes, just run this:
Related SO question
On the command line:
If you're using a shell client like TortoiseSVN, then right click "resolve using mine" as @Adi mentions.
On the command line, it's