Author Topic: BHB error  (Read 334 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1425
  • Hero Points: 112
  • Text
BHB error
« on: September 27, 2016, 04:34:08 pm »
When I select a file in BHB and DIFF, I get this error:

---------------------------
SlickEdit Pro
---------------------------
You must have at least 2 versions of a file to use this feature
---------------------------
OK   
---------------------------


Shouldn't the file have 2 versions if it is already in the BHB?
Attached is the file from the filesystem and the delta from vsdelta.


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1959
  • Hero Points: 81
Re: BHB error
« Reply #1 on: September 27, 2016, 05:38:01 pm »
We list all of the files that are in backup history regardless of how many versions there are.  This is because restoring a lost file is part of what the backup history browser is for.

It is possible to check the number of versions and disable the Diff button, but then there is a performance hit in the on_change code.  This is already done on a timer, so I might be able to add this check if there is time.

jporkkahtc

  • Senior Community Member
  • Posts: 1425
  • Hero Points: 112
  • Text
Re: BHB error
« Reply #2 on: September 27, 2016, 05:47:52 pm »
Not a problem - just seems odd that the file ended up in backup history, yet there aren't enough versions.
Seems like even if the existing file is the same you could still diff it against the backup