SlickEdit Community

Archived Read Only Forums => SlickEdit 2016 v21 Beta Discussion => Topic started by: jporkkahtc on September 27, 2016, 04:34:08 pm

Title: BHB error
Post by: jporkkahtc 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.

Title: Re: BHB error
Post by: Dan 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.
Title: Re: BHB error
Post by: jporkkahtc 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