Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to resolve svn "Two top-level reports with no target"

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?

like image 362
darryn.ten Avatar asked Jul 11 '12 11:07

darryn.ten


2 Answers

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.

like image 54
darryn.ten Avatar answered Oct 15 '22 14:10

darryn.ten


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.

like image 25
Neil Steiner Avatar answered Oct 15 '22 15:10

Neil Steiner