changeset 34:0e03db65c1fe

listBase -> lists for symmetry project-revision turned into a string so you can dev on repo
author John@Yosemite-PC
date Sun, 11 Mar 2012 23:27:02 -0400
parents 84f56de22631
children ecd37523ae04
files Core.lua Lists.lua
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Sun Mar 11 23:20:29 2012 -0400
+++ b/Core.lua	Sun Mar 11 23:27:02 2012 -0400
@@ -19,7 +19,7 @@
 -- ( ) alt tracking
 -- (_) reserves
 
-local pkgrev = @project-revision@
+local pkgrev = " @project-revision@ "
 
 -- important things to remember:
 -- 1) ipairs iterates from 1 until the first missing int index -> no gaps if int
@@ -188,7 +188,7 @@
     profile = {
         persons = {},
         changes = {},
-        listBase = {}
+        lists = {}
     }
 }
 
--- a/Lists.lua	Sun Mar 11 23:20:29 2012 -0400
+++ b/Lists.lua	Sun Mar 11 23:27:02 2012 -0400
@@ -82,7 +82,7 @@
     bsk.persons = {}
     bsk.db.profile.persons = {}
     bsk.db.profile.changes = {}
-    bsk.db.profile.listBase = {}
+    bsk.db.profile.lists = {}
     raidNameP = {}
     raidIdP = {}
     reserveIdP = {}
@@ -168,14 +168,14 @@
 -- Change processing {{{
 function bsk:CreateWorkingStateFromChanges(changes)
     local personsBase = self.db.profile.persons
-    local listBase = self.db.profile.listBase
+    local lists = self.db.profile.lists
 
     -- copy the base to the working state
     wipe(bsk.lists)
     wipe(bsk.persons)
     wipe(personName2id)
 
-    bsk:tcopy(bsk.lists,listBase)
+    bsk:tcopy(bsk.lists,lists)
     bsk:tcopy(bsk.persons,personsBase)
 
     -- now just go through the changes list applying each
@@ -549,7 +549,7 @@
 
     -- save this state permanently; trim the changes permanently
     bsk:tcopy(bsk.db.profile.persons,bsk.persons)
-    bsk:tcopy(bsk.db.profile.listBase,bsk.lists)
+    bsk:tcopy(bsk.db.profile.lists,bsk.lists)
     while bsk.db.profile.changes ~= nil and bsk.db.profile.changes[1] ~= nil and bsk.db.profile.changes[1].time <= time do
         table.remove(bsk.db.profile.changes,1)
     end