Delphi 2007 - How to avoid having a \history folder?

10,792

Solution 1

Tools \ Options \ Editor Options \

Uncheck "Create Backup Files"

;)

Solution 2

I believe you can go into the registry:

D2007: HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Known IDE Packages
D2009: HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0\Known IDE Packages 

and delete the appropriate key:

$(BDS)\bin\historyide100.bpl
or
$(BDS)\bin\historyide120.bpl

I'm sure that worked for me and I seem to recall that was all that was needed. I tend not to bother now though and just leave it in. Tell SVN to ignore the history folders. Any Delphi update does seem to put it back too.

Solution 3

I don't believe you can. If you go to

Tools \ Options \ Editor Options \ File backup limit

Which is where controls how many files it backs up, the minimum is 1, which would still create the history folder.

Maybe you could setup an MSBuild event to clear it out or some other house keeping task.

Solution 4

DDevExtension by Andreas Hausladen has a feature to remove __history directories.

Solution 5

IIRC Delphi Distiller has an option to keep it from creating History folders. I don't actually have it on my current system, though, so I can't check. But you might want to check it out.

Share:
10,792
JosephStyons
Author by

JosephStyons

I started out as a professional developer using Delphi and Oracle in a Win32 client-server environment for a manufacturing company. I worked for five years in consulting, implementing solutions for dozens of clients and using many disparate technologies. Since then, I've worked for and with the non-profit industry, building applications that help them move their missions forward. My bread-and-butter is VB.NET and C# against a SQL Server back-end using a SOA architecture. But I can and will use whatever tool gets the job done, and I've had fun doing so with Angular, jQuery, ASP.NET, PHP, and even my own homemade frameworks to deliver solutions against that platform.

Updated on June 24, 2022

Comments

  • JosephStyons
    JosephStyons over 1 year

    Newer Delphi versions (including Delphi 2007, which I'm using) have a build in file history feature, which lets you revert to old files from within the IDE. That's nice, but I already have source control. Is it possible to disable this feature?

    I ask because the IDE auto-creates a \history folder with old versions of all your files, and that annoys me.

    • Gerry Coll
      Gerry Coll over 14 years
      The history folder isn't really for source control. It is so you can make small "experimental" modifications, while being able to revert to an earlier, unchecked in version. Unless you want to check in each save...
  • ErvinS
    ErvinS over 14 years
    Rather then delete i would rename it in $(BDS)\bin\XXhistoryide120.bpl, just in case you need it back.
  • Wayne Barron
    Wayne Barron over 6 years
    Thank you, Jim. I was working on a project the other day and had a good working example. I messed up and started to add in other code, and I removed what was working, and now I am lost. As the backup did not go far enough back. I set it to 90 now, so that I can hopefully go back (in the future) to a working project.