mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-25 04:54:07 +00:00
syncback
This commit is contained in:
parent
5f91a0777a
commit
3e6a50ce4b
5 changed files with 7 additions and 22 deletions
|
|
@ -272,12 +272,7 @@ encodeInstance = function(instance, parentId, _skipPathCheck)
|
||||||
for _ in pairs(properties) do
|
for _ in pairs(properties) do
|
||||||
propCount += 1
|
propCount += 1
|
||||||
end
|
end
|
||||||
Log.trace(
|
Log.trace(" Encoded {} with {} properties, {} children", instance.Name, propCount, #children)
|
||||||
" Encoded {} with {} properties, {} children",
|
|
||||||
instance.Name,
|
|
||||||
propCount,
|
|
||||||
#children
|
|
||||||
)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
parent = parentId,
|
parent = parentId,
|
||||||
|
|
|
||||||
|
|
@ -112,12 +112,7 @@ function ChangeBatcher:__flush()
|
||||||
for _ in pairs(patch.added) do
|
for _ in pairs(patch.added) do
|
||||||
addedCount += 1
|
addedCount += 1
|
||||||
end
|
end
|
||||||
Log.debug(
|
Log.debug("Two-way sync: {} updates, {} additions, {} removals", #patch.updated, addedCount, #patch.removed)
|
||||||
"Two-way sync: {} updates, {} additions, {} removals",
|
|
||||||
#patch.updated,
|
|
||||||
addedCount,
|
|
||||||
#patch.removed
|
|
||||||
)
|
|
||||||
|
|
||||||
return patch
|
return patch
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -680,12 +680,7 @@ function ServeSession:__confirmAndApplyInitialPatch(catchUpPatch, serverInfo)
|
||||||
ignoreCount += 1
|
ignoreCount += 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Log.debug(
|
Log.debug("User selections: {} push, {} pull, {} ignored", pushCount, pullCount, ignoreCount)
|
||||||
"User selections: {} push, {} pull, {} ignored",
|
|
||||||
pushCount,
|
|
||||||
pullCount,
|
|
||||||
ignoreCount
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Build partial patches based on selections
|
-- Build partial patches based on selections
|
||||||
local pushPatch = PatchSet.newEmpty() -- Items to apply to Studio
|
local pushPatch = PatchSet.newEmpty() -- Items to apply to Studio
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue