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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:25:04+00:00 2026-05-29T10:25:04+00:00

Given a Subversion project where certain patterns are always to be ignored, *.log *.idx

  • 0

Given a Subversion project where certain patterns are always to be ignored,

*.log
*.idx

and certain patterns are ignored only in, e.g., the project root,

*.out

how can I maintain both lists in a single svn:ignore property?

To maintain the project-wide list, I would recursively apply the root folder’s svn:ignore property whenever I change it. But that would include patterns which should only be ignored in the root.

If I don’t apply it recursively, though, then the other patterns will not be ignored in subfolders.

UPDATE: If you’re used to Mercurial (like I am), you might suggest putting paths in the root’s ignore list, like

*/*.idx

or

*\*.idx

Neither of these works for me in the latest Subversion.

  • 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-05-29T10:25:05+00:00Added an answer on May 29, 2026 at 10:25 am

    There are two mechanisms to work with ignores in Subversion:

    • Global Ignores. Pattern may be added to the list of global-ignores in the subversion configuration. Applies globally to all the projects. Generally speaking defining too much of global-ignores is a bad thing.
    • svn:ignore property. By setting svn:ignore property one can define list of files or folders ignored in the directory for which this property is defined.

    Both global ignores and svn:ignore property work not with regular expressions but use patterns complying to the fnmatch pattern syntax. Which defines only three types of the wild cards ?, *, and []. You may play with ls to feel how these patterns work.

    Subversion properties may be set recursively. This will work for *.idx and *.log files:

    $ svn st
    ? test.log
    ? test.idx
    ? recursive/test.log
    

    Create a file ignores with two lines:

    *.log
    *.idx
    

    Then set svn:ingore property recursively:

    $ svn propset --recursive svn:ignore -F ingores  .
    property 'svn:ignore' set on '.'
    property 'svn:ignore' set on 'recursive'
    $ rm ignores
    $ svn st --no-ignores
    I test.log
    I test.idx
    I recursive/test.log
    

    After that edit svn:ignore property in the project root:

    $ svn propedit svn:ignore PROJECT_ROOT
    

    and add exclusion for the *.out pattern.

    Given that:

    If I don’t apply it recursively, though, then the other patterns will not be ignored in subfolders.

    The only way is to add such patterns to the global-ignores.

    Some notes:

    • After setting svn:ignore property may be deleted recursively with
      the help of the svn propdel -R ...
    • This way of adding ignores does not feel flexible (to me). For instance when creating new folder one should remember to set
      project-wide svn:ignore property.
    • Recursive propset should be done early. It deletes old value of the property being set.
    • Major plus is that ignores are rarely edited.
    • Editing properties recursively seems to be easier when done through the GUI tools

    Hope this helps.

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

Sidebar

Related Questions

Given the URL (single line): http://test.example.com/dir/subdir/file.html How can I extract the following parts using
Some complex subversion merges are coming up in my project: big branches that have
Trying to rename a project under the control of TortiseSVN/Subversion. Running svn on the
When installing subversion as a service, I used this command: c:\>svnservice -install --daemon --root
I'm looking for a free/open source collaborative project manager that can be deployed internally
Given a starting point in a Subversion working copy (e.g. current working directory), and
I am trying to convert a SourceForge project from Subversion to Git. According to
I have an Xcode4 project which is under Subversion SCM. The initial directory structure
I have repositories created in C:\Data\Subversion as well as sub-folders like C:\Data\Subversion\Dev-Mobile. I can
I recently was given control of a project that is based on the Codeblocks

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.