2

I have created an SVN repository before. Now what I want to do is to prevent some specific files from update, since it is not needed for me to update them. I saw solutions for during the process of creating repo, but I did it long way back and I want to exclude some files now.

The situation is like the following:

repo/
updateme.txt
donotupdateme.txt

Here, I want donotupdateme.txt to stay the same while updateme.txt changes with the update operation.

p.s. I prefer doing this with Tortoise.

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
rooter
  • 173
  • 2
  • 3
  • 9

2 Answers2

2

Use SVN properties, in particular you'll be interested in svn:ignore.

Using TortoiseSVN this is easy. In your working copy, simply right-click on the file to ignore (donotupdateme.txt) select TortoiseSVN -> Unversion and add to ignore list -> donotupdatme.txt.

This will prevent the file from being committed/updated.

Check out http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-ignore.html for more details on this.

Hope this helps!

kickbackjack
  • 257
  • 3
  • 9
0

You can create a /etc/svn/config file with a list of files to ignore (or the windoze equivilent) or you can edit the properties of the directory the file is in with a svn ignore.

See his post on how to do ignores: How do I ignore a directory with SVN?

I am sure tortoise has a way to right click edit ignore property for a file... Check this--i found it by googling 'svn ignore files tortiose'

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-ignore.html

Community
  • 1
  • 1
Ray
  • 40,256
  • 21
  • 101
  • 138