Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn cleanup failed because pristine file could not be moved

Tags:

svn

I wanted to use svn cleanup to remove lock on my working copy but failed with the following log:

svn: E000001: Can't remove file '/Users/panjie/Desktop/work/SYS-SVN/.svn/pristine/e4/e41bbcb7a645255ae62c65613e6d0dcbe7499d70.svn-base': Operation not permitted

I checked the permission of the file and found nothing wrong. I am using SVN/1.9.3 under MACOSX/10.11.6

like image 689
bigpan Avatar asked Jul 24 '16 02:07

bigpan


1 Answers

The cause of this is that the file is locked by macOS. So, the solution is simple chflags -R nouchg .svn and run svn cleanup again and everything is OK now.

like image 81
bigpan Avatar answered Nov 07 '22 05:11

bigpan