1258
}
1259
1261
>
ctx,
1262
>
wfCtx,
1263
>
localMutableState,
1264
>
sourceVersionHistory,
1265
>
isNewMutableState)
1266
>
if err != nil {
1267
return nil, err
1268
}
1270
>
var newBranchToken []byte
1271
>
if isNewBranch {
1272
newBranchToken = localVersionHistories.Histories[index].BranchToken
1273
}
1275
>
if err != nil {
1276
return newBranchToken, err
1277
}
1279
>
if isNewMutableState {
1280
localLastItem = &historyspb.VersionHistoryItem{
1281
EventId: 0,
1282
Version: 0,
1283
}
1285
localLastItem, err = versionhistory.GetLastVersionHistoryItem(versionHistoryToAppend)
1286
if err != nil {