Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7800191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:33:17+00:00 2026-06-02T00:33:17+00:00

I have a directory structure containing a bunch of config files for an application.

  • 0

I have a directory structure containing a bunch of config files for an application. The structure is maintained in Subversion, and then a few systems have that directory struture checked out. Developers make changes to the struture in the repository, and a script on the servers just runs an “svn update” periodically.

However, sometimes we have people who will inadvertently remove a .svn directory under one of the directories, or stick a file in that doesn’t belong. I do what I can to cut off the hands of the procedural unfaithful, but I’d still prefer for my update script to be able to gracefully (well, automatically) handle these changes.

So, what I need is a way to delete files which are not in subversion, and a way to go ahead and stomp on a local directory which is in the way of something in the repository. So, warnings like

Fetching external item into '/path/to/a/dir'
svn: warning: '/path/to/a/dir' is not a working copy

and

Fetching external item into '/path/to/another/dir'
svn: warning: Failed to add directory '/path/to/another/dir': an unversioned directory of the same name already exists

should be automatically resolved.

I’m concerned that I’ll have to either parse the svn status output in a script, or use the svn C API and write my own “cleanup” program to make this work (and yes, it has to work this way; rsync / tar+scp, and whatever else aren’t options for a variety of reasons). But if anyone has a solution (or partial solution) which takes care of the issue, I’d appreciate hearing about it. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:33:19+00:00Added an answer on June 2, 2026 at 12:33 am

    I wrote a perl script to first run svn cleanup to handle any locks, and then parse the –xml output of svn status, removing anything which has a bad status (except for externals, which are a little more complicated)

    Then I found this:
    http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svn-clean
    Even though this doesn’t do everything I want, I’ll probably discard the bulk of my code and just enhance this a little. My XML parsing is not as pretty as it could be, and I’m sure this is somewhat faster than launching a system command (which matters on a very large repository and a command which is run every five minutes).

    I ultimately found that script in the answer to this question – Automatically remove Subversion unversioned files – hidden among all the suggestions to use Tortoise SVN.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a directory structure of directories and files that I want to render
I have a public/ directory that I have set up as containing static files
I have directory structure like so: |-- ROOT |-- Project1 | |-- application |
I have a directory structure that looks like this: /a/f.xml /b/f.xml /c/f.xml /d/f.xml What
I have a directory structure as follows Client_Site/ some_folder1/ some_folder2/ some_folder3/ Lots of files
I have a directory structure (multiple levels deep) of resources, that I would like
I have a directory structure like so: directory1 - directory2 - <other files I
I have a directory structure that looks like this: basedir/dir1/dir2/dir3/dir4/myzip/subdirs I would like to
I have an Xcode4 project which is under Subversion SCM. The initial directory structure
I have a directory structure D:\workspace 2\project\lib where I have all the files AgentMain.java(which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.