40

I have an SVN repository I set up a long time ago. I don't remember exactly what files I specified to be ignored, and I can't find documentation on how to display the ignore settings I set.

How can I find these settings?

This is on my CentOS server.

2

7 Answers 7

43

List all properties recursively on all files:

svn proplist -v -R [TARGET] 

You could also send the output in a file to find any svn:ignore property:

svn proplist -v -R [TARGET] > file.log
1
  • 2
    +1 and accepted answer because of -R which gets me all the settings!
    – dunxd
    Dec 22, 2010 at 14:17
35
svn proplist -v -R mylocalfolder/ | grep svn:ignore -B 1

This is your answer dunxd. Left hand side will list all props. Right hand side grep will filter them.

2
  • 3
    +1 for the grep command. I think this is the better solution than the one marked as solution as it list only the ignore Properties!
    – jrast
    Oct 24, 2013 at 7:56
  • This is useful, but you need to be careful - the -B 1 may mean that not all ignored items are shown (e.g. if multiple files in one folder are ignored), but at least you can get a list of the things that have ignore set on them.
    – Synchro
    Sep 2, 2015 at 14:37
31

Use:

svn pg -R svn:ignore .

See Stack Overflow question How do I view all ignored patterns set with svn:ignore recursively in an SVN repository?

This shows the relative path with all files ignored by SVN in a working copy of a folder structure. It shows everything recursively.

2
  • 1
    I think this is the best approach, because it lists the settings for the svn:ignore property and not the others that are irrelevant.
    – stollr
    Sep 12, 2018 at 10:15
  • 1
    To be complet, since SVN 1.8, this should be added: svn propget -R svn:global-ignores .
    – Hibou57
    Apr 14, 2020 at 19:48
11

If it is Windows and you are using TortoiseSVN, then right-click on a folder of the working copy, go to the Subversion tab and click on Properties.

1
  • Careful, this method is not recursive.
    – AdriZ
    May 2 at 14:17
5

Another way to do it I found after prompting from other answers is to edit the proplist as follows:

svn propedit svn:ignore .

That opens a text editor with the ignore settings for the specified directory (in the above example this is the current directory indicated by .)

3

Calling svn proplist just prints what is defined but not how. To get additional information, use

svn proplist -v

which displays additional information (i.e. the contents of the properties).

0

The list of ignored files is stored in a property. Use svn proplist to show the properties of a directory.

3
  • When I do that I just see svn:ignore which tells me that something is being ignored, but not what.
    – dunxd
    Dec 22, 2010 at 14:04
  • svn proplist --verbose tells me what is actually ignored. Thanks for pointing me in the right direction.
    – dunxd
    Dec 22, 2010 at 14:08
  • @dunxd: see my answer below. You have to request the properties verbose.
    – eckes
    Dec 22, 2010 at 14:08

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.