简体   繁体   中英

How to fix Subversion «!» status

The Subversion manual states:

'!'

Item is missing (eg you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).

But as so often with Subversion, there is no indication on how to fix the problem.

Normally, I would use my trusted Fix_Subversion.command but this time it is trunk and it will take forever.

So is there any faster option?

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.

What happens after you run:

svn cleanup .
svn update
svn status

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.

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 (eg using mv / rm as opposed to svn mv / svn rm on the branch).

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.

在我的情况下,我已经提交了一条带有红旗的父文件夹的消息,然后清除了所有具有包括父文件夹在内的图标的嵌套文件夹。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM