How to fix Subversion «!» status

前端 未结 6 1389
南方客
南方客 2021-01-31 01:40

The Subversion manual states:

\'!\'

Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomple

相关标签:
6条回答
  • 2021-01-31 02:03

    In my case I have committed with a message the parent folder that has the red flag, and then all the nested folders that had the icon including the parent folder are cleared.

    0 讨论(0)
  • 2021-01-31 02:09

    What happens after you run:

    svn cleanup .
    svn update
    svn status
    
    0 讨论(0)
  • 2021-01-31 02:10

    If you deleted a file and it's marked with !, just run svn rm --force <filename> to tell SVN to delete the file from the repository also.

    0 讨论(0)
  • 2021-01-31 02:12
    svn revert /path/to/file
    svn rm /path/to/file      # if you want to delete it from svn itself
    

    Golden rule is: once something is under svn-control, any moving, deleting, renaming, should be done with svn commands (svn mv, svn rm, etc.), not using normal filesystem/file-explorer functions.

    0 讨论(0)
  • 2021-01-31 02:24

    I tried to revert & cleanup but it did not fix my issue. The solution I found is a bit harsh but worked:

    1. rename the old_folder to new_folder.
    2. from the parent issue a svn up old_folder
    3. copy back the files from the new_folder [avoiding coping the .svn folder from the new_folder].

    the I deleted the new_folder and in this way I managed to have a cleaned old_folder.

    0 讨论(0)
  • 2021-01-31 02:24

    What exactly did you do to the branch before you received this error?

    If you're having regular problems with SVN, you're probably doing something wrong (e.g. using mv/rm as opposed to svn mv/svn rm on the branch).

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