Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should I configure SVN to ignore in my Delphi projects?

Tags:

What files should I tell Tortoise SVN to ignore when committing to a repository?

In particular I am interested in practical information such as whether to include such files as *.dproj.2007 etc that seem to appear but may not be needed.

like image 658
Brian Frost Avatar asked Sep 22 '11 16:09

Brian Frost


People also ask

How to add svn ignore file?

Use the following command to create a list not under version control files. Then edit the file to leave just the files you want actually to ignore. Then use this one to ignore the files listed in the file: svn propset svn:ignore -F ignoring.

How to ignore folder in svn?

Set the svn:ignore property of the parent directory: svn propset svn:ignore dirname . If you have multiple things to ignore, separate by newlines in the property value.

How to remove from ignore list in svn?

If you want to remove one or more items from the ignore list, right click on those items and select TortoiseSVN → Remove from Ignore List You can also access a folder's svn:ignore property directly.


1 Answers

I use these in D2007, which seem to still work fine in XE and XE2:

*.dcu *.~* *.ddp *.exe *.map *.bak *.obj *.dsk  *.err *.log *.tmp *.identcache *.tvsconfig  __history *.todo  ModelSupport* *.local 

I don't include ModelSupport because I don't use the IDE's modeling stuff, so there's no point in versioning it if it's created by mistake. I also don't version anything in the __history folder, as that's just temporary versioning between checkins; once the checkin to SVN is made, it's not necessary any longer.

(I disagree with Chris about *.res, BTW, especially when it comes to XE2. Resource files can be created now using Project|Resources and Images, and those go directly into a resource file. Since the resource\image may be actually coming from somewhere else not in the current folder, and the image file might accidentally not be checked in, I keep the .res file now. I also keep the project file; it has all the paths and compiler options set. If something happens where that needs to change, it's easy to just remove the project file and let the IDE recreate it as needed.)

like image 153
Ken White Avatar answered Sep 19 '22 17:09

Ken White