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 7960115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:40:38+00:00 2026-06-04T04:40:38+00:00

In my project I have a folder with resources which I don’t want to

  • 0

In my project I have a folder with resources which I don’t want to manually add or remove to the repository as I add or remove them to my working copy.

I wrote a simple bash script that checks svn state and calls svn add for files marked with a ? and svn remove for files with a !. I added this bash script to my build script. The problem is, svn remove returns an error when called with a file that doesn’t exist locally anymore. This results in my build script being aborted and returning an error too.

Is there a way to suppress these errors? I tried --force and --quiet. Didn’t help.

Example:

MacBook-Pro:proj Bill$ echo "test" > foo.bar
MacBook-Pro:proj Bill$ svn st
?       foo.bar
MacBook-Pro:proj Bill$ svn add foo.bar 
A         foo.bar
MacBook-Pro:proj Bill$ rm foo.bar 
MacBook-Pro:proj Bill$ svn st
!       foo.bar
MacBook-Pro:proj Bill$ svn rm foo.bar
D         foo.bar
svn: 'foo.bar' does not exist
  • 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-04T04:40:39+00:00Added an answer on June 4, 2026 at 4:40 am

    There are (at least) two different cases in which svn stat prints a line with an exclamation point:

    1. The file exists in the repository, does not exist in the working directory, and svn rm was not used.
    2. The file does not exist in the repository, svn add was used on the file, and the file does no longer exist in the working directory.

    svn rm works in the first case, but exits with an error in the second case. There are several ways to solve this issue – depending on what you want to achieve:

    • If you want to remove the file in both cases, do:
      touch "$filename" ; svn rm --force "$filename".
    • If you want to remove the file only in the second case, and revert in the first case, do:
      svn revert "$filename".
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project which have following folder structure Resources/ android/ images/ res-hdpi/ main.png
I have some data files in the resources/ folder for my Rubymotion project. How
I have a project folder with sources, headers, resources, etc. Most files are subject
say that i have a project which lies in a folder called 'bin', and
I have a winform project which lists all the files in a specified folder.
I'm working on a ASP.NET MVC2 project, for which I have configured the localisation
I have a C# project where I include some resources which I need to
I have a project with a subfolder Resources. In this folder there is a
I have my project folder, for instance, myWeb . In it there are various
For a new project I have created a local folder tree with empty Visual

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.