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.
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.
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.
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.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With