# HG changeset patch # User John@Yosemite-PC # Date 1331522822 14400 # Node ID 0e03db65c1fedf4ac7d92add77f016d7ec1e8f7d # Parent 84f56de2263118aa257b46f52a89046c1e598351 listBase -> lists for symmetry project-revision turned into a string so you can dev on repo diff -r 84f56de22631 -r 0e03db65c1fe Core.lua --- 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 = {} } } diff -r 84f56de22631 -r 0e03db65c1fe Lists.lua --- 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