Author Topic: Backup History Browser  (Read 2896 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Backup History Browser
« on: August 18, 2016, 11:43:04 PM »
I've always found this thing a bit confusing, but I'm never quite sure if it is doing something wrong or if I just don't get it.


Here, I think it is clearly doing something wrong.


On top I selected a file, and in the bottom the list of files looks like it may be correct.
Next, I scroll down to Monday and pick the first file  - which would be the last file saved on monday.
Now, the bottom has just one entry.


Third, I select the last entry on Monday (the first file saved on Monday).
The bottom list now has lots of entries - and it is missing a file that I created and edited several times today (snowball). Otherwise, it is hard to say if it is correct or not.


It would be easier to determine correctness if the bottom list was shown in a different form, or forms.
#1: Include the modification timestamp for each of the entries
#2: Remove unnecessary folders:
It may show
1 *C:\foo\bar
2    [] file.txt
3     *C:\foo\bar\quick
4        *C:\foo\bar\quick\brown
5            *C:\foo\bar\quick\brown\fox
6               [] jumped.txt
   

There is no need to show lines 3 and 4 - they should be removed.
Better:
1 *C:\foo\bar
2    [] file.txt
5            *C:\foo\bar\quick\brown\fox
6               [] jumped.txt

Or, not include the full path in each folder
1 *C:\foo\bar
2    [] file.txt
3     *quick
4        *brown
5            *fox
6               [] jumped.txt


#3: As a sortable list with columns: Name, Path, Size, Time
#4: Same as #3, but show only the most recent modification for each file.



jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Backup History Browser
« Reply #1 on: August 18, 2016, 11:59:17 PM »
Should the entries in SaveLog be strictly in ascending date/time order?


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Backup History Browser
« Reply #2 on: August 19, 2016, 01:48:18 PM »
What you see in the bottom, should essentially be a compressed/organized version of what you see in the top, from the current line in the top up.  So it looks like something has gone wrong here.  Can you reproduce it?

With regard to the folders, we were trying to emulate what we do for version control (Compare Workspace with X).  It looks like we can do a little better here, I'm not sure if we'll be able to do it for this version though.

There are a couple of reasons why the top list isn't sortable.  First, we think you generally want something recent, and to go backwards from there.  Second, this makes it really easy (and really fast) to generate the bottom list.  If we allow sorting of this list, generating the bottom list becomes a lot more complicated.
« Last Edit: August 19, 2016, 03:03:11 PM by Dan »

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Backup History Browser
« Reply #3 on: August 19, 2016, 02:42:09 PM »
Should the entries in SaveLog be strictly in ascending date/time order?

savelog.xml?  It's not guaranteed to be in a particular order.  If you never rebuild it, it probably will be in order, but if you rebuild it it will not be in date order.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Backup History Browser
« Reply #4 on: August 19, 2016, 06:53:57 PM »
Repro: Yes, mostly.


Today when I click on the top item in "Monday"  see 7 files ... All but 1 of which are files I've edited so far today.
The odd man out is a file I last saved yesterday. (In diff it shows as "Created by auto-reload").






WRT top && Bottom:
The top can only be filtered by "Filespecs", while the bottom can only be filtered by "<= DateOfSelectedItemInTop".


This could be simplified and generalized.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Backup History Browser
« Reply #5 on: August 19, 2016, 07:46:32 PM »
In savelog, what are the "d" vs the "f" entries?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Backup History Browser
« Reply #6 on: August 19, 2016, 08:31:45 PM »
'f' is for save entries made to backup history, 'd' is for entries that are removed from backup history.  There's a limit to how many versions are in a backup history archive, so as the versions "fall off the end", it adds a 'd' entry for them.