Author Topic: BHB error  (Read 2807 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • 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: 2896
  • Hero Points: 153
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: 2620
  • Hero Points: 210
  • 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