I have an svn repo
http://path/to/svn/trunk
And have branched a few things from it to
http://path/to/svn/branch
By using
svn copy http://path/to/svn/trunk/site1 http://path/to/svn/branch/site1 -m 'message'
I've done a lot of work on the branch but havent merged it back in, as it isn't ready for that.
However, I need to commit changes to trunk now, and I'm getting the following when attempting to do so
> svn commit -m 'some message'
svn: Commit failed (details follow):
svn: Aborting commit: '/path/to/svn/trunk' remains in tree-conflict
I thought I should svn up
on the /path/to/trunk but the following happens
> svn up
svn: Two top-level reports with no target
A --force
doesn't help remedy the situation.
svn status
results in lots of +'s next to the changed files
> svn status
M + site1/changedfile
Has anyone experienced this before, and can you shed some light on the issue at hand?
The way I managed to resolve this was by moving the affected directories in /path/to/svn/trunk
to a temporary location, and did an svn up
on trunk.
This pulled in older versions of my files. I then manually copied the files that couldn't get committed across, and once they were back in place everything worked as expected.
The following worked for me after a botched svn mv https://path1 https://path2
:
svn revert --depth infinity path2
svn update path2
This avoided me having to do the fresh checkout that others have suggested. None of my changes were lost in the process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With