Reputation: 283293
How do I get this directory out of conflict? I don't care if it's resolved using "theirs" or "mine" or whatever...
PS C:\Users\Mark\Desktop\myproject> svn ci -m "gr"
svn: Commit failed (details follow):
svn: Aborting commit: 'C:\Users\Mark\Desktop\myproject\addons' remains in conflict
PS C:\Users\Mark\Desktop\myproject> svn resolve --accept working C:\Users\Mark\Desktop\myproject\addons
Resolved conflicted state of 'C:\Users\Mark\Desktop\myproject\addons'
PS C:\Users\Mark\Desktop\myproject> svn ci -m "grr"
svn: Commit failed (details follow):
svn: Commit item 'addons' has copy flag but an invalid revision
PS C:\Users\Mark\Desktop\myproject> svn update
C addons
svn: Can't move 'addons\debug_toolbar\templates\debug_toolbar\.svn\tmp\entries' to 'addons\debug_toolbar\templates\debug
_toolbar\.svn\entries': The file or directory is corrupted and unreadable.
PS C:\Users\Mark\Desktop\myproject> svn cleanup
PS C:\Users\Mark\Desktop\myproject> svn update
Skipped 'addons'
At revision 51.
Summary of conflicts:
Skipped paths: 1
PS C:\Users\Mark\Desktop\myproject> svn ci -m "grrr"
svn: Commit failed (details follow):
svn: Aborting commit: 'C:\Users\Mark\Desktop\myproject\addons' remains in conflict
Upvotes: 302
Views: 409996
Reputation: 514
One more solution below,
If the entire folder is removed and SVNis throwing the error "admin file .svn is missing", the following will be used to resolve the conflict to working state.
svn resolve --accept working "file / directory name "
Upvotes: 6
Reputation: 3352
I guess the proper solution is:
(1) backup your-file/your-directory
(2) svn revert your-file/your-directory
(3) svn update your-file/your-directory
(4) Merge the backup your-file/your-directory to the updated one.
(5) svn ci -m "My work here is done"
Upvotes: 2
Reputation: 550
I use the following command in order to remove conflict using command line
svn revert "location of conflict folder" -R
svn cleanup
svn update
for reverting current directory
svn revert . -R
Upvotes: 5
Reputation: 193
I had the same issue on linux, but I couldn't fix it with the accepted answer. I was able to solve it by using cd
to go to the correct folder and then executing:
svn remove --force filename
syn resolve --accept=working filename
svn up
That's all.
Upvotes: 0
Reputation: 345
..these three svn CLI commands in this sequence while cd-ed into the correct directory worked for me.
Upvotes: 18
Reputation: 571
Instructions for Tortoise SVN
Navigate to the directory where you see this error. If you do not have any changes perform the following
a. Right click and do a 'Revert'
b. Select all the files
c. Then update the directory again
Upvotes: 4
Reputation: 4599
If you are using the Eclipse IDE and stumble upon this error when committing, here's an in-tool solution for you. I'm using Subclipse, but the solution for Subversive could be similar.
What you maybe didn't notice is that there is an additional symbol on the conflicting file, which marks the file indeed as "conflicted".
Right-click on the file, choose "Team" and "Edit conflicts...". Choose the appropriate action. I merged the file manually on text-level before, so I took the first option, which will take the current state of your local copy as "resolved solution". Now hit "OK" and that's it.
The conflicting symbol should have disappeared and you should be able to commit again.
Upvotes: 11
Reputation: 3884
Ok here's how to fix it:
svn remove --force filename
svn resolve --accept=working filename
svn commit
more details are at: http://svnbook.red-bean.com/en/1.8/svn.tour.treeconflicts.html
Upvotes: 275
Reputation: 1
I had similar issue, this is how it was solved
xyz@ip :~/formsProject_SVN$ svn resolved formsProj/templates/search
Resolved conflicted state of 'formsProj/templates/search'
Now update your project
xyz@ip:~/formsProject_SVN$ svn update
Updating '.':
Select: (mc) keep affected local moves, (r) mark resolved (breaks moves), (p) postpone, (q) quit resolution, (h) help: r (select "r" option to resolve)
Resolved conflicted state of 'formsProj/templates/search'
Summary of conflicts: Tree conflicts: 0 remaining (and 1 already resolved)
Upvotes: 0
Reputation: 635
For me only revert --depth infinity option fixed Svn's directory remains in confict problem:
svn revert --depth infinity "<directory name>"
svn update "<directory name>"
Upvotes: 43
Reputation: 4330
If you have trouble resolving (like me) and you cannot delete and update the resources because you have made many changes on them, plus you are using eclipse subversive instead of native client, follow these steps:
You're done.
Upvotes: 3
Reputation: 8450
Give the following command:
svn resolved <filename or directory that gives trouble>
(Thanks to @Jeremy Leipzig for this answer in a comment)
Upvotes: 486