SVN unversioned directory with same name already exists

19,955

Solution 1

What I tend to do is just rename the offending directory and then re-get from svn. After that I just merge the folders back together.

Solution 2

I found same problem..and the solution is.. remove assets/uploads/images directory and then get svn up...

Share:
19,955
Hafiz
Author by

Hafiz

I have 8 years of experience Developing web based applications. Have experience in managing short teams as well as working in teams. Most of my technical experience is in but not limited to PHP, MySQL, Python and JavaScript(mostly client side but also have used node.js) but I am language agnostic and always open to learn more. I have worked on both frontend and backend in different projects with different responsibilities. I have created teams as well as managed teams. Book: I have written "Building RESTful Webservices in PHP7" with Packt pub. https://www.packtpub.com/application-development/building-restful-web-services-php-7 Skillset: I am listing my skillset here so that you can look at it if required: Backend: Mostly used PHP and Python on server side. PHP Frameworks Used: Laravel, Lumen, Kohana, Code Igniter Python Frameworks used: Django, Scrapy Good understanding and experience in creating and consuming REST API Used Codeception for REST API Testing Storage/DB: Used MySQL in most of projects while PgSQL and elasticsearch both are used in one project only. Basic understanding of MongoDB and have developed a basic todo app in Laravel with MongoDB. Also supervised a team which used Neo4j, so have high level knowledge of that as well. LAMP Server Configuration: Can and have configured LAMP server on Amazon EC2 as well as DigitalOcean. Also configured mod_wsgi for Django with Apache2. Frontend: Good at HTML5 and CSS Basic knowledge of Phonegap, bootsrap, HTML5 Canvas, SVG, Photoshop and Web Sockets Datavisualization using D3 that renders SVG. version control system: SVN, Git Mobile: Basic understanding and working knowledge of Android SDK including some of its UI components, SQLite and AsyncTask as I used them in my BS project. Operating Systems: Ubuntu and Windows Other than above skill-set I am good learner and always ready to learn anything required to accomplish work. Other interests: I am always interested in improving things.Other than what I have currently done and know. I am also interested in working in Node JS, functional paradigm, WebGL, noSQL and search engines. Detail: I have done many projects which are different in nature than each other. Some of them are listed in my resume with my experience and other detail. However, please note that my bigger plus is not my skill-set but my quick learning abilities.

Updated on June 23, 2022

Comments

  • Hafiz
    Hafiz almost 2 years

    I also see questions with similar headings but this one has exception that error is while updating on server so can't delete the previous unversioned directory.

    I am using SVN for uploading code files, you we created uploaded images directory at server manually and don't commit upload images through svn as it is user content that can be different at server and local machines depends upon data in database.

    Accidently someone have committed that uploads/images directory so I am having following issue:

    svn: Failed to add directory 'assets/uploads/images': an unversioned directory of the same name already exists
    

    I know why this happened , it is because there were unversioned files at same location, so my question is that how can I fix it?

    I don't want to remove remote directory as it contains images related to server database records. So how can I revert that committed directory? I tried svn->revert modification->revert previous commits in that directory but that gives following error:

    org.apache.subversion.javahl.ClientException: E195020: Cannot merge into mixed-revision working copy [341:448]; try updating first
    

    So any idea, how can I fix it? In case of any problem in understanding question just drop comment for me and I will make that clear.

    thanks

  • Siddharth
    Siddharth over 10 years
    Worked perfectly, I had to move the folder away from this location.
  • sepehr
    sepehr almost 10 years
    He stressed that he can't delete the directory!
  • sepehr
    sepehr almost 10 years
    Why not just renaming it?! Just as Qpirate said?! In my case the backup might took about 9GB in size. It's not easy to backup such huge directory in local.
  • Vivek Buddhadev
    Vivek Buddhadev almost 10 years
    I just trying to put different ways to solve it.. Qpirate way also preferable..it's same thing either you renaming it or get backup and delete original, in both case you need extra 9GB. I heard same problem so many times..but in my case data size is not large.
  • Michael Z
    Michael Z over 9 years
    Thanks for this answer!