SVN - Skipped paths

后端 未结 11 1021
轻奢々
轻奢々 2020-12-15 16:01

I received this message when I ran a SVN UP:

Skipped \'trunk/scripts/accountability_survey_report.php\'
At revision 1585.
Summary of conflicts:
  Skipped pat         


        
相关标签:
11条回答
  • 2020-12-15 16:29

    Easiest solution:

    sudo svn delete --force accountability_survey_report.php
    

    Now just to be sure run:

    sudo svn commit --force accountability_survey_report.php
    

    SVN will moan:

    svn: Commit failed (details follow):
    svn: Aborting commit: 'trunk/scripts/accountability_survey_report.php' remains in conflict
    

    Ignore the moaning, and run:

    sudo svn update accountability_survey_report.php
    A accountability_survey_report.php
    Updated to revision ......
    

    The above adds the latest copy of the file "accountability_survey_report.php" from the svn server to your local. Run svn update again and there will be no more svn complains about that file.

    I will of-course backup the required copy of file first before deleting.

    0 讨论(0)
  • 2020-12-15 16:31

    This SO question might help you. The answer it gives is:

    Never, ever, forget to commit a run of svnmerge.py before doing something else. Combining a merge with other edits is a recipe for a disaster, and the disaster is what you see in the question.

    The SVN Book also says:

    Whatever the case, the “skipped” message means that the user is most likely comparing the wrong two trees; they're the classic sign of driver error. When this happens, it's easy to recursively revert all the changes created by the merge (svn revert --recursive), delete any unversioned files or directories left behind after the revert, and re-run svn merge with different arguments.

    And then there's this blog post that claims:

    I finally found a posting with instructions on how to merge in spite of the “Skipped” error message… so I tried it, and it worked (in spite of the misleading messages). The trick really is to ignore the messages.

    Note that following the merge, files that are in the source branch and not in the destination branch need to be svn added before they will end up in the destination.

    It seems the general consensus is that you need to do a proper merge of the file in question.

    0 讨论(0)
  • 2020-12-15 16:33

    I've seen the "Skipped paths" message when I've done a previous merge on the working copy and then reverted it. Then the file is added in the first merge but not deleted when you revert the working copy, the second merge tries to add the file but skips because the file already exists.

    0 讨论(0)
  • 2020-12-15 16:34

    In this case I delete entery folder, then svn up and if needed svn switch.

    0 讨论(0)
  • 2020-12-15 16:38

    For what it's worth, I got the Skipped Paths error when I accidentally ran the svn update command from a folder that didn't actually have anything checked out - I remembered after having come here looking for answers that it was only the child directories that I had checked stuff out in!

    Dumb user error essentially in my case.

    0 讨论(0)
  • 2020-12-15 16:39

    May be the file being skipped was already updated and reported conflicts? If a file is already flagged as having conflicts, it will be skipped during Update. Try resolving the conflicts and Update again and it should work without any problem.

    0 讨论(0)
提交回复
热议问题