Test results of svn:ignore without commit

441 views Asked by At

Is there a way to test the results of the svn:ignore property without doing a commit first?

I have a large svn project that I reorganized locally using git. Now I need to apply the svn:ignore property to match the .gitignore file. I'd like to test that all my changes to the svn:ignore property work properly before I do a commit. Is there a way to do this?

I know could work on a branch until I get it right and then merge, but it seems there should be an easier way.

1

There are 1 answers

1
David W. On BEST ANSWER

You can test your svn:ignore before you commit your change with the svn:ignore property. Create files and/or directories to be ignored. Don't do a svn add. Just add the files to your working directory.

Then, do a svn ignore. Those files added to your working directory should not show up. (REMEMBER: Don't do svn add for these files!). After that, you can do a svn status --no-ignore and the files being ignored should show up with a status of I.

I find it easier to set your VISUAL environment variable, and then use svn pe svn:ignore since each ignored file specification should be on its own line.

Remember, if a file is already in your repository, it cannot be ignored.